#!perl
@driveletters = (C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z);
for (@driveletters) {
s#$#:\\#;
print "$_\n" if ! -e;
print "$_ found\n" if -e;
}
If you need to do different things based on different versions of Windows, one
way to find the particular version is to do a stat on win.com and/or
kernel32.dll.
/g
> -----Original Message-----
> From: Ryan Guy [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 25, 2002 10:07 AM
> To: '[EMAIL PROTECTED]'
> Subject: How do I check to see if a drive (i.e. C: or D:) exists??
>
>
> How do I check to see if a drive (i.e. C: or D:) exists??
>
> I am writing a script to couple start menu files to the all users directory
> of different windows configurations and I need to know this to edit the
> shortcuts on some machines (forget about why). Any help would be greatly
> appreciated.
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]