mIRC Home    About    Download    Register    News    Help

Print Thread
#65654 28/12/03 06:44 AM
Joined: Jul 2003
Posts: 655
Om3n Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
$disk(path|N)
Returns information about the specified hard disk, where N = 0 for total available drives, and N > 0 to access each drive.

Properties: type, free, label, size, unc, path, fsys

Property .fsys will return the file system type for the disk... FAT32, NTFS or any other file system type that the disk may be using.


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby
#65655 28/12/03 02:21 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
and with this you want to say?


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#65656 28/12/03 02:58 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
He's suggesting a property to $disk that returns the filesystem in use.

Could be useful I guess...


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#65657 28/12/03 03:47 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
It could be useful indeed: $findfile() in an NTFS (and I think CDFS) drive returns the filenames in a sorted way, this is not the case with FAT though. So, a script that wants a sorted list of files could check .fsys and do no extra work (like hidden sorted windows) if the file system is NTFS.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#65658 28/12/03 10:06 PM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
yep- great idea.

of course in the mean time (if you can), dll's are great for file io.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
#65659 28/12/03 10:38 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Is that based on the drive format or the OS, i just did a findfile on a ntfs and a fat drive, and both came out sorted, i even mad a folder with unsorted files in it. (well then again i assume unsorted, i made a x.txt then a z.txt then a a.txt then a b.txt and they came out sorted?) I was using w2ks as the OS tho.

#65660 30/12/03 03:24 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#65661 03/01/04 11:26 AM
Joined: Jul 2003
Posts: 655
Om3n Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
The idea came to mind for 2 reasons. Firstly as you mentioned, different file systems use different sorting and listing procedures/patterns. Secondly for use with virtual drives that are often mounted or un-mounted on the run... some digital cameras for example do this.


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby

Link Copied to Clipboard