basic dos batch file

Status
Not open for further replies.

stonecutter

Beta member
Messages
1
hello-
i'm a dos moron. i tried to create a batch file to run as a scheduled task to backup some files from one pc to another. there's a mapped "T" drive as the path for the backup. what i need is to just back up the files, not all the other folders within the directory and i can't figure out the right command.
here's what i have:

set weekday=%date:~0,3%
rd /s /q t:\Automanager_Backups\last_%weekday%
xcopy /q /s /h /r /y /i c:\auto.ims t:\Automanager_Backups\last_%weekday%


the c:\auto.ims directory has a ton of directories that i don't need backed up. i only need the files.
thanks for any help.
 
Status
Not open for further replies.
Back
Top Bottom