I am backing up a file in a batch file but when I run the batch it stops in the middle asking whether the path is a directory or a file? How can I declare that it is a file so that it will not stop in the middle of executing?
[PHP]@echo off
:: variables
set drive=M:\Field Ops\DailyOurVoi ce_BackUps
set backupcmd=xcopy /f /s
%backupcmd% "C:\Database\Da ily_Ourvoice\Da ta\181\Fri.xls" "%drive%\Fri(18 1).xls"[/PHP]
[PHP]@echo off
:: variables
set drive=M:\Field Ops\DailyOurVoi ce_BackUps
set backupcmd=xcopy /f /s
%backupcmd% "C:\Database\Da ily_Ourvoice\Da ta\181\Fri.xls" "%drive%\Fri(18 1).xls"[/PHP]
Comment