Hello-
I'm extremely new to DOS and Batch files, so please bear with me.
I'm using windows XP and have created a batch file to move files and directories from one directory to another. I am using the command "
XCOPY".
My file works, but I'm wondering if there is some way to let "
XCOPY" know in advance that I wish to copy a File or a Directory, so I don't get prompted with
"
Is "c:/somedir" a File [F] or a Directory [D]?"
Here is my code..
:: Resets Test
cd ../..
cd Test2
rmdir c:\Test2\views /s
del AppointmentsMap.xml
del ContactsMap.xml
del FileExtMap.xml
del init.xml
xcopy c:\Test1\views c:\Test2\views /e
xcopy c:\Test1\AppointmentsMap.xml c:\Test2\AppointmentsMap.xml /f
xcopy c:\Test1\ContactsMap.xml c:\Test2\ContactsMap.xml /f
xcopy c:\Test1\FileExtMap.xml c:\Test2\FileExtMap.xml /f
xcopy c:\Test1\init.xml c:\Test2\init.xml /f
Thanking anyone for a clue as to how this might be done..