codeHermit
12-10-2007, 03:01 PM
I'm trying to write a batch script that copies a list of files from one server to another but I keep on getting this message during runtime.
specify a file name
or directory name on the target
(F = file, D = directory)?
I want to force it to assume that everything is a File. Below is a copy of the script I'm running
************************************************
rem set vars
@echo off
SET rawdate=%DATE%
SET myyear=%DATE:~6%
SET mymonth=%DATE:~0,-8%
SET myday=%DATE:~3,-5%
SET finaldate=%myyear%-%mymonth%-%myday%
SET mydatetime=%finaldate%
@echo on
xcopy y:\www.theweb.com\catalog\013_BRC_4-7-replyInstruction.pdf q:\catalog\013_BRC_4-7-replyInstruction.pdf /Y /K /I >c:\temp\logs\%mydatetime%_stlap423001_pin.log
xcopy y:\www.theweb.com\catalog\013_BRC_4-7-replyInstruction.pdf t:\catalog\013_BRC_4-7-replyInstruction.pdf /Y /K /I >c:\temp\logs\%mydatetime%_stlap423001_pin.log
************************************************
thanks!
codeHermit
specify a file name
or directory name on the target
(F = file, D = directory)?
I want to force it to assume that everything is a File. Below is a copy of the script I'm running
************************************************
rem set vars
@echo off
SET rawdate=%DATE%
SET myyear=%DATE:~6%
SET mymonth=%DATE:~0,-8%
SET myday=%DATE:~3,-5%
SET finaldate=%myyear%-%mymonth%-%myday%
SET mydatetime=%finaldate%
@echo on
xcopy y:\www.theweb.com\catalog\013_BRC_4-7-replyInstruction.pdf q:\catalog\013_BRC_4-7-replyInstruction.pdf /Y /K /I >c:\temp\logs\%mydatetime%_stlap423001_pin.log
xcopy y:\www.theweb.com\catalog\013_BRC_4-7-replyInstruction.pdf t:\catalog\013_BRC_4-7-replyInstruction.pdf /Y /K /I >c:\temp\logs\%mydatetime%_stlap423001_pin.log
************************************************
thanks!
codeHermit