rgj_time Posted July 13, 2004 Share Posted July 13, 2004 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? Link to comment Share on other sites More sharing options...
emmanuel Posted July 13, 2004 Share Posted July 13, 2004 (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 July 13, 2004 by emmanuel "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
rgj_time Posted July 13, 2004 Author Share Posted July 13, 2004 It works!! Thanks for the info... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now