Jump to content

Help Me


Guest gianler
 Share

Recommended Posts

Guest gianler

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

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
Link to comment
Share on other sites

Guest gianler

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:

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...