Guest gianler Posted April 1, 2004 Share Posted April 1, 2004 Hello guys.. the first time I use this incredible program.. Only a simply (for you..) question, I take a search but I didn't find it: I'll do every night a backup of my hard-disk (only few directories) in one usb temporary hard disk.. I find the "dircopy" command, it is ok; than I do the "shutdown(13)" command to power down the PC. How can I do to have a log (text file) of all file copied and if the copy is ok? Thank you. PS excuse for my english Link to comment Share on other sites More sharing options...
trids Posted April 1, 2004 Share Posted April 1, 2004 (edited) How about ..;Create log of backed up files, including date and folder.. RunWait(@COMSPEC & ' /c dir /s "U:\Backups\*.*">"C:\Backups.LOG"','',@SW_HIDE) ;Now C:\Backups.LOG is the log you want;o) .. Assumes that "U:" is your USB drive, and you have copied stuff to the folder "U:\Backups\". Hope this helps Edited April 1, 2004 by trids Link to comment Share on other sites More sharing options...
Guest gianler Posted April 1, 2004 Share Posted April 1, 2004 Thank you Trids.. I test it Ciao Link to comment Share on other sites More sharing options...
Guest gianler Posted April 1, 2004 Share Posted April 1, 2004 I tested it.. but it isn't I wanted it.. In Dos mode there is the xcopy command that make a list (in real time) of copied files and than at the end of the operation tell me that the operation is ok with n.. copied files. How can I have the list of copied files in a log files? Thx Link to comment Share on other sites More sharing options...
GrahamS Posted April 1, 2004 Share Posted April 1, 2004 TryRunWait(@COMSPEC & ' /c xcopy /s /y C:\MyDir\*.* U:\Backups > D:\Projects\Backups.txt"','',@SW_HIDE)(assumes c:\MyDir is the directory that you want to back up)The RunWait command can run any dos command GrahamS Link to comment Share on other sites More sharing options...
Guest gianler Posted April 1, 2004 Share Posted April 1, 2004 thank you.. 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