Re: Easy enigma

"valery_vi" <[email protected]>
Newsgroups gmane.comp.windows.autoit.user
Message-ID <[email protected]>
The answer to second Q gives this script:

$i = 0
While 1
 $file = FileOpen('a:\' & Hex($i), 2)
 if $file = -1 then 
   MsgBox(0,'ZeroFile','#LastFile = ' & $i)
   exit
 endif
  FileClose($file)
 $i += 1
wend

Thus the number of files (zero in size) on floppy disk is constant 
value.

Regards,
Valery

--- In [email protected], "valery_vi" <shehrer1@...> wrote:
>
> No, Carsten!
> 
> Try this for valid and formated floppy
> 
> $i = 0
> While 1
>  $file = FileOpen('a:\' & $i, 2)
>  if $file = -1 then 
>    MsgBox(0,'ZeroFile','#LastFile = ' & $i)
>    exit
>  endif
>   FileClose($file)
>  $i += 1
> wend
> 
> :-)
> 
> BTW. Other Q. Depend the result on file names?
> 
> Valery
> 
> 
> --- In [email protected], "Lüth, Carsten" <c.lueth@> 
> wrote:
> >
> > Hello Valery,
> > 
> > 65536 files in the root directory (I believe).
> > 
> > Mit freundlichem Gruß / With kind regards 
> > 
> > Fielmann AG 
> > 
> > Carsten Lüth 
> > IT - Desktop Services
> > Weidestraße 118a 
> > 22083 Hamburg 
> > Telefon: +49 - (0) 40 - 2 70 76 - 199 
> > mailto:c.lueth@ 
> > 
> > 
> > 
> > -----Ursprüngliche Nachricht-----
> > Von: valery_vi [mailto:shehrer1@] 
> > Gesendet: Freitag, 20. Oktober 2006 09:36
> > An: [email protected]
> > Betreff: [AutoIt] Easy enigma
> > 
> > 
> > How much files can I create on floppy disk (1.44 Mb)? Every file 
> in 0 
> > bytes in size.
> > 
> > Any ideas?
> > 
> > Valery
> > 
> > 
> > 
> > 
> >  
> > Yahoo! Groups Links
> >
>





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AutoItList/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/AutoItList/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.