Sign in to follow this  
Followers 0
Guest gianler

Help Me

6 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 :whistle:

Edited by trids

Share this post


Link to post
Share on other sites

Thank you Trids.. I test it

Ciao

Share this post


Link to post
Share on other sites

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 :whistle:

Share this post


Link to post
Share on other sites

Try

RunWait(@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

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