#1
|
||||
|
||||
Batch File
Hello, I have really tried on this and I still dont think I have it, if someone could roughly tell me where I am going wrong I would be so thankful...
This is the requirements: A batch file that... • It will backup all contents of a folder called 'myFiles' to a folder called 'myFilesBackup'. • If 'myFilesBackup' doesn't exist, the batch file should create it. • If 'myFilesBackup' is empty the batch file should copy all files including subdirectories. • If 'myFilesBackup' is not empty it should copy only newer files, without prompting. • Don't use absolute paths, only relative folder names. • You will need to use command line Help to find the best command to use and what parameters to use. The Copy command won't work; you will need a command that does eXtra. MY ANSWER: REM stuff here......... xcopy C:\myFiles C:\myFilesBackup /E /Y Am I on the right track? Cheers |
Bookmarks |
«
Previous Topic
|
Next Topic
»
Topic Tools | |
|
|
Similar Topics | ||||
Topic | Topic Starter | Forum | Replies | Last Post |
Batch File to change file associations | Comprox | Windows XP | 0 | April 4th, 2009 07:48 PM |
Copy file to another computer - batch file (Moved from Vista) | canastahotel | Applications | 1 | February 18th, 2008 10:23 AM |
batch file | philmetz | Windows XP | 13 | December 8th, 2006 05:17 AM |
Help plz with batch file cmd... | Ghio | Windows NT, 2000, 2003, 2008, 2012 | 5 | October 30th, 2001 10:31 PM |
All times are GMT +1. The time now is 02:08 PM.