Path: csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Greg Newsgroups: it.comp.lang.visual-basic Subject: Re: funzione Dir Date: Sun, 11 Oct 2015 00:10:43 +0200 Organization: news.solani.org Lines: 33 Message-ID: References: <4cbc1bla3674309egh2l25i74tbvfiiqm8@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15"; format=flowed Content-Transfer-Encoding: 8bit X-Trace: solani.org 1444514998 10241 eJwNyskBwCAMA7CVMCQmjJNz/xFavaWHYF6hUnR0qglDQF60sWtF3V0h+cBZ5u5nhFmt2/IvHyvnEfM= (10 Oct 2015 22:09:58 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sat, 10 Oct 2015 22:09:58 +0000 (UTC) X-User-ID: eJwNy8kBwDAIA7CVIFxmHeKw/wit/gpLzVuekR4bK4vujizSqvwqMXjyTtg8TgnUDv6CXdLtAxHXEOw= X-Newsreader: MesNews/1.08.03.00-it Cancel-Lock: sha1:RUiei7tMRwnyQAkPr4GZWLYlSpY= X-NNTP-Posting-Host: eJwFwYkBgDAIA8CV5EvoOBXJ/iN4VwHDMFHIUqnN6bXnQM8GMoV7lyFTv8OgZr91d8mm1T8VjBF8 Xref: csiph.com it.comp.lang.visual-basic:18541 Il 09/10/15 16.38.46 SB ha scritto: > Il giorno Fri, 09 Oct 2015 16:19:34 +0200, Greg 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. Grazie per la delucidazione :) -- Greg