1.

Solve : BACK UP IN Batch?

Answer»

I need to write a batch file. When you drag & drop a directory in the batchfile, it will automatic backup the directory iclude the files and the subdirectories in it. How to let the batchfile recognise this directory and backup fot it. could any one help me? thanks very much!Batch files do not support drag & drop. You can include commands in a batch file that will backup files. You can even prompt for file names (SET /P).

Checkout COPY, XCOPY, or BACKUP/NTBACKUP

BACKUP is on DOS and Win9x machines; NTBACKUP is on NT machines. These backup programs can be run in batch or interactively.

XP Home: Install NTBACKUP from the ValueAdd directory on the XP CD.

Hope this helps. Thanks! I will TRY I use xcopy for just such a thing - here is an EXAMPLE of what i use. It will backup a directory and it's contents if they have changed since last BACKED up. You can search the NET for the meaning of the various switches and thier functions. Good luck. The example will back from C: Drive to H: Drive

xcopy "C:\Documents and Settings\Administrator\My Documents" "h:\Backups\My Documents" /h /k /E /r /c /i /y /d /f



Discussion

No Comment Found