cmdcommand-lineabapsap-basis

How to directly run CMD command in ABAP?


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

Solution

  • I already got the answer

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