Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SM49 Executing Windows bat script hidden folder in path

Former Member
0 Likes
475

Hello,

I have been trying all sorts of things to get this to work and I have been un-successful

I am trying to run the Windows script using SM49. the command line that I am using is

\\images\gestion$\SAP\INT\Scripts\testscript.bat

The script testscript.bat looks like :

echo hello

pause

When i'm trying to execute the command i have this error :

Can't exec external program (No such file or directory)                                                                                                                                               WaitForSingleObject failedwith %d (No such device or address)

I have this error because in my command line i have "gestion$" (an hidden folder)

How can i use an hidden folder in my command ?

Thx

1 REPLY 1
Read only

kiran_k8
Active Contributor
0 Likes
396

Simon,

Did you tried using the FM "GUI_EXEC" or "CL_GUI_FRONTEND_SERVICES=>EXECUTE".

I remember using this FM to trigger a .bat script to encrypt a .txt file that got downloaded to a location on the shared folder.

K.Kiran.