Jump to content
Sign in to follow this  
rgj_time

help with FileFindFirstFile ()

Recommended Posts

rgj_time

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?

Share this post


Link to post
Share on other sites
emmanuel

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)

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.