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

External command not working.

423 Views

Hi,

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:-

@ECHO OFF

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

SET CUR-DATE=%DATE:~4,10%

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

C:\CopyFilesCreatedToday.bat

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.