CALL command prompt in SAP ABAP with command line

98 Views Asked by At

is it possible to instead of opening a batchfile instead, it will go straight to command prompt with the command line "cmd /c start "" http://www.stackoverflow.com".

My current code still opens a batchfile locally instead:

DATA: lv_cmd TYPE string.
lv_cmd = 'C:\Users\James Francis\Desktop\TrackURL.bat'.

call function 'GUI_EXEC'
  exporting
    command          = lv_cmd.

batch file contains this:

start "" http://www.stackoverflow.com
1

There are 1 best solutions below

0
gwapo On BEST ANSWER

I already got the answer

call function 'GUI_EXEC'
  exporting
    command          = 'cmd /c start "" http://www.stackoverflow.com'.