Skip to Content
Former Member
Mar 01, 2005 at 11:07 AM

External command not working.



I have written a batch program which copies files from SAP Application Server(4.6B) to external machine in LAN. This machine is mapped on SAP App Server. The contents of this file are:-


FOR /f "delims=" %%a in ('date /t') do set DATE=%%a


XCOPY H:\source
ust-ght3dxp0097\fullc /D:%CUR-DATE%

XCOPY H:\source Z:\ /D:%CUR-DATE%

where ust-ght3dxp0097 is the external machine and Z is the mapped drive on SAP App server.

Now this batch file works fine when executed from commandline. I want to execute this from my ABAP program.

Hence I created an external command from SM69 as follows:

Operating system command


This batch file is place in C drive of SAP Application Server.

When I try to execute this external command from SM49 it gives the following error.

Invalid Drive Specification

0 files copied

Invalid Drive Specification

0 files copied

Can somebody help me with this error.