Re: Floppy_Is_Blank Function Request
- Posted by Andy Cranston <Andy.Cranston at EUPHONY.CO.UK> Aug 30, 2000
- 465 views
Another take on this... How about running a CHKDSK A: and saving the output to a file. Then look in the file for the two lines similar to: 1457664 bytes total disk space. 1457664 bytes available on disk. Extract the byte counts and compare. If equal then the disk is blank. If not then one or more files/directories are present (even hidden and system ones). Regards, Andy Cranston. -----Original Message----- From: Hawke' [mailto:mikedeland at NETZERO.NET] Sent: 30 August 2000 10:25 To: EUPHORIA at LISTSERV.MUOHIO.EDU Subject: Re: Floppy_Is_Blank Function Request errrrr............. will that take into account, assuredly, hidden/system files being present on that floppy???? im thinking it won't actually :/ --Hawke' > Hello ck, > Use the function > if atom(dir("a:*.*")) then > If the disk is empty, even if there is no disk in the 'a' drive, dir() > returns -1. This is an atom; otherwise the dir() function returns a > sequence. > > Hope this helps, Ad _______________________________________________ Why pay for something you could get for free? NetZero provides FREE Internet Access and Email http://www.netzero.net/download/index.html