Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 03-09-2005, 11:35 AM   #1 (permalink)
 
Newb Techie

Join Date: Mar 2005

Posts: 1

stonecutter

Default basic dos batch file

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.
stonecutter is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On