> 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]