You can always use the Win32::Lanman module and include a line like this:
Win32::Lanman::NetServerDiskEnum("\\\\$client",\@drives); to check across the network. -----Original Message----- From: Jonathan E. Paton [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 11:09 AM To: [EMAIL PROTECTED] Subject: Re: How do I check to see if a drive (i.e. C: or D:) exists?? > If you don't mind you'll miss CDs you can use -e : > > print "C: exists\n" if -e 'c:\\'; > ... > > If you do mind try : > > use Win32::FileOp qw(Substed); > print "C: exists\n" if Substed 'c:'; > ... > > and if you want to get all drives use > > @drives = sort keys %{Substed()}; > > [Shorthand for] > %drives = Substed(); > @drives = keys %drives; > @drives = sort @drives; > [/Shorthand] Obviously I don't code that much in Windows/MSDOS... ;) I'm kinda reeling from the fact there is no way to capture output from fdisk, and the realisation that drive letters are more prohibitive/annoying than I previously understood. Jonathan Paton __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -------------------------------------------------------------------------------- This email may contain confidential and privileged material for the sole use of the intended recipient. If you are not the intended recipient, please contact the sender and delete all copies. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]