By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,903 Members | 1,104 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,903 IT Pros & Developers. It's quick & easy.

How to search for a particular Directory in all the Drives in windows

P: 1
Hi all,

I'm new to perl,
In one of my requirement, I need to find a particular directory. this directory may be in any drive.

-> How to get the list of Drives in Windows( C:/ , D:/ etc..)
-> After this My Perl script need to get into each drive and search a particular dir.
-> If it is found, then the script need to print the whole path of the dir.


Input : "Logfile\testfindDir" # this is the dir the script need to find.

output: "D:\\desktop\Logfile\testfindDir"

May 10 '10 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 100+
P: 589
Win32::DriveInfo - drives on Win32 systems
May 11 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.