cancel
Showing results for 
Search instead for 
Did you mean: 

Launch application

julie_jamieson2
Active Contributor
0 Kudos

Hi,

I am trying to set up a batch file to be run from the launch application icon. When the user selects run, she gets a success message from SAP but the batch file does not run.

If the code inside the batch file is run from the command prompt by the user it runs.

Does anyone have experience with this?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

frank_wang6
Active Contributor
0 Kudos

In your batch, if u try to run an exe, u will need to use cd /F to switch that directory.

Frank

julie_jamieson2
Active Contributor
0 Kudos

Hi Frank,

I am using the batch file to trigger a scheduled task, copy & paste of the code into the cmd prompt on the users PC does trigger the task, so I know the code is working, but Launch Application does not seem to trigger the batch file to run?

frank_wang6
Active Contributor
0 Kudos

Ok, then use cmd.exe /K YouBatch.bat

Maybe give the full path of cmd. it should be c:\windows\system32\cmd.exe

julie_jamieson2
Active Contributor
0 Kudos

Issue resolved by calling the schtasks application, then adding the /run /s "servername" /tn "jobname" into the parameters section.

Answers (0)