Batch File help - XCOPY command
Posted: 04 Jun 2007 08:10
Hi,
My work is trying to run a batch file and is having problems getting it to work properly.
It is supposed to go to the D:\ drive - then to the fkormos\files\ directory.
Once there, it should copy all the files in fkormos\files into all the directories in the 5 commands below.
It should then delete all the files in the original directory and close.
Attached is a screen shot of what it does.
This batch file is stored in fkormos\files and a user logs in VIA ftp, then uploads the files to that directory, then runs the batch file. We are testing it on a machine where the user has full privileges on everything.
The drives X and F are networked drives.
Any help is greatly appreciated.
Thanks - Alan
d:
cd\fkormos\files
xcopy d:\fkormos\files\*.* d:\fkormos\files\bk\
xcopy d:\fkormos\files\*.* x:\bk\faye\
xcopy d:\fkormos\files\*.* x:\files\
xcopy d:\fkormos\files\*.* d:\archive\
xcopy d:\fkormos\files\*.* f:\Backup\
echo Y | del d:\fkormos\files\
exit
My work is trying to run a batch file and is having problems getting it to work properly.
It is supposed to go to the D:\ drive - then to the fkormos\files\ directory.
Once there, it should copy all the files in fkormos\files into all the directories in the 5 commands below.
It should then delete all the files in the original directory and close.
Attached is a screen shot of what it does.
This batch file is stored in fkormos\files and a user logs in VIA ftp, then uploads the files to that directory, then runs the batch file. We are testing it on a machine where the user has full privileges on everything.
The drives X and F are networked drives.
Any help is greatly appreciated.
Thanks - Alan
d:
cd\fkormos\files
xcopy d:\fkormos\files\*.* d:\fkormos\files\bk\
xcopy d:\fkormos\files\*.* x:\bk\faye\
xcopy d:\fkormos\files\*.* x:\files\
xcopy d:\fkormos\files\*.* d:\archive\
xcopy d:\fkormos\files\*.* f:\Backup\
echo Y | del d:\fkormos\files\
exit