find file with command prompt

G

Guest

Hi,

I am writing a script to do some routine maintenance and I need to find
files with the command prompt. I was reading the help page for the "find"
command and I am a little confused. If I need to find a file on my Unix
machine I type:

find . -name filename

What would be the equivalent in a command prompt in Windows XP? How about
searching with other properties (creation date, size, etc?) Thank you.
 
W

Will Denny

Hi

You can use the 'dir' cammand to find files from a command prompt. Type

dir /?

at the command prompt for list of the switches available.
 
G

Guest

Thank you for your advice, but dir is not recursive, is it? If I type "find"
in Unix it will look in all directories and subdirectories in the path
specified. Can dir do the same?

Thanks
 
G

Guest

That works, I missed it! Many thanks.

Will Denny said:
Hi

Does the /S switch do what you want?

--

Will Denny
MS-MVP - Windows Shell/User
Please reply to the News Groups
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top