Jump to content

Recommended Posts

Posted

I need to search the hard drive for outlook .pst files. I also need to capture the path when a script finds the .pst. Can I use FileFindFirstFile () to accomplish this, or even autoit?

Posted (edited)

I think the quickest and dirtiest way of doing just that is piping a dir command to a text file. something like this should do the trick.

runwait(@comspec & ' /c dir c:\*.pst /s/b >pstlist.txt')

(the /b makes it output just the filenames, quite handy.)

You could then have autoit perform operations with For...Next commands on the text file's contents... though for that, I'll leave it up to you to do some research and get started a bit on your own...

Edited by emmanuel

"I'm not even supposed to be here today!" -Dante (Hicks)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...