Would there be a reason why when executing a PSEXEC script on my source server, it fails on the XCOPY portion of a script it executes on the target server?
Source server syntax:
Code: Select all
echo ********************************************************>>%logfiles%
echo LOAD starts at %TIME% >>%logfiles%
echo ********************************************************>>%logfiles%
echo Executing PSExec...
SET HYPPLAN_FCST_SCRIPT=Process_HypPlan_Fcst_ENHANCEMENT.cmd
%MAINPATH%%PSToolsPATH%PSexec.exe %ESS_SERVER% %HFM_EXTRACT_PATH%%HYPPLAN_FCST_SCRIPT% -u %PSUSer% -p %PSPass% -w %HFM_EXTRACT_PATH% /accepteula>>%logfiles%
Portion of code in the target server script it fails on:
Code: Select all
ECHO ***************************************************************
ECHO COPY DATA FILE ON %ESS_SERVER% TO %FDMEE_SERVER% AND RENAME
ECHO ***************************************************************
ECHO.
ECHO f | XCOPY /f /y "%HFM_EXTRACT_PATH%HypPlan_Fcst.txt" "%FDMEE_SERVER%\F$\FDMEE_PROJ\inbox\HypPlan_Fcst.txt">>%logfile%
The error I get fromt he source script is:
Invalid drive specification.
The syntax of the command is incorrect.
However, if I execute the remote script manually, it runs with success. Scratching my head here. I've tried the regular COPY command and I get an "access denied error" but again, if I execute the target script manually even with the COPY command it finishes fine.
Also, all piece of code PRIOR to this XCOPY portion execute fine. It's just this piece.
Any ideas?