Sign in to follow this  
Followers 0
rgj_time

help with FileFindFirstFile ()

3 posts in this topic

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



#2 ·  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)

Share this post


Link to post
Share on other sites

It works!! Thanks for the info...

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  
Followers 0