Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.lang.visual-basic > #18540
| From | SB <stNOOObenevSPAM@tin.it> |
|---|---|
| Newsgroups | it.comp.lang.visual-basic |
| Subject | Re: funzione Dir |
| Date | 2015-10-09 16:38 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <vujf1b1on3cvs148tki6k8681cjnmjfn3e@4ax.com> (permalink) |
| References | <mv3mui$grg$1@solani.org> <4cbc1bla3674309egh2l25i74tbvfiiqm8@4ax.com> <mv8idn$eb5$1@solani.org> |
Il giorno Fri, 09 Oct 2015 16:19:34 +0200, Greg <greg@alicie.com> ha scritto:
>Ciao SB,
>sto provando l'api che mi hai suggerito su due diversi pc, xp e seven
>tutti a 32 bit.
>Per testare l'esitenza di un file va benissimo, sempre, ma se voglio
>testare anche gli attibuti del file (ed evitare cosi anche GetAttr) mi
>da risultati diversi:
>Dim k as Long
>k = GetFileAttributes ("G:\miofile.txt")
>su XP mi restituisce 8224 e su Seven 32. Come mai?
Dunque 32 in esadecimale è 20H o 0x20 a seconda del dialetto preferito, mentre
8224 è 2020H o 0x2020
Guardando MSDN
https://msdn.microsoft.com/en-us/library/windows/desktop/gg258117%28v=vs.85%29.aspx
il 20H è il flag archive in tutti due i casi
mentre il 0x2000 significa FILE_ATTRIBUTE_NOT_CONTENT_INDEXED, cioè
evidentemente xp non ha indicizzato il file mentre W7 si, oppure non hai attivo
quel servizio su 7.
In ogni caso è tutto ok.
--
ciao
Stefano
Back to it.comp.lang.visual-basic | Previous | Next — Previous in thread | Next in thread | Find similar
funzione Dir Greg <greg@alicie.com> - 2015-10-07 20:05 +0200
Re: funzione Dir "Freccia (VegetaSSj)" <NIENTESPAMfreccia_vegetassj@hotmail.invalid> - 2015-10-07 22:14 +0200
Re: funzione Dir Luca D <antaniserse@yahoo.it> - 2015-10-07 13:21 -0700
Re: funzione Dir "salclem2" <salclem2@yahoo.it> - 2015-10-07 23:27 +0200
Re: funzione Dir SB <stNOOObenevSPAM@tin.it> - 2015-10-08 10:56 +0200
Re: funzione Dir Greg <greg@alicie.com> - 2015-10-08 21:29 +0200
Re: funzione Dir "salclem2" <salclem2@yahoo.it> - 2015-10-08 23:23 +0200
Re: funzione Dir "salclem2" <salclem2@yahoo.it> - 2015-10-08 23:26 +0200
Re: funzione Dir Greg <greg@alicie.com> - 2015-10-08 23:48 +0200
Re: funzione Dir Greg <greg@alicie.com> - 2015-10-09 16:19 +0200
Re: funzione Dir SB <stNOOObenevSPAM@tin.it> - 2015-10-09 16:38 +0200
Re: funzione Dir Greg <greg@alicie.com> - 2015-10-11 00:10 +0200
Re: funzione Dir Greg <greg@alicie.com> - 2015-10-08 13:05 +0200
csiph-web