Guest Posted November 14, 2006 Share Posted November 14, 2006 Currently I have a backup script that uses a batch file and robocopy to copy data from one drive (on a laptop) to another drive (on a server). I used autoit to make it into a single exe. Now our network engineers have changed some things around and I need to split up the backup. All files except for PST files need to go to location 1. And only PST files need to go to location 2. I know how to do the backup for location 1 in robocopy with no problems. However, I'm not sure how to use robocopy only on PST files for location 2. Would there be any way to search a drive for PST files and copy them to another drive using autoit? **Is it possible to have it compress it to a zip file while its copying it to the server? Thanks in advance. Paul Link to comment Share on other sites More sharing options...
/dev/null Posted November 14, 2006 Share Posted November 14, 2006 Would there be any way to search a drive for PST files and copy them to another drive using autoit?**Is it possible to have it compress it to a zip file while its copying it to the server?use FileFindFirstFile () and FileFindNextFile() to search the drive for *.PST files. See help file samples. Then use the 7zip DLL (and the UDF) to compress the PST file. http://www.autoitscript.com/forum/index.ph...984&hl=7zipAfter that use FileCopy() to copy the file to the server.CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * 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