‎2007 Feb 09 12:50 PM
Hi,
I need to call a VBS program from an abap program. This abap will run on both 4.6 and 4.0.
I would be very grateful for any suggestions on how this can be done.
Thanks and Kindest Regards
Danielle
‎2007 Feb 10 8:10 AM
data: commandline(1000).
commandline = v_vbs_filename. "complete path of vbs file
call function 'WS_EXECUTE'
exporting
commandline = commandline
program = 'WSCRIPT.EXE'
exceptions
frontend_error = 1
no_batch = 2
prog_not_found = 3
illegal_option = 4
others = 5.
if sy-subrc <> 0.
raise execution_failed.
endif.
Raja
‎2007 Feb 10 8:10 AM
data: commandline(1000).
commandline = v_vbs_filename. "complete path of vbs file
call function 'WS_EXECUTE'
exporting
commandline = commandline
program = 'WSCRIPT.EXE'
exceptions
frontend_error = 1
no_batch = 2
prog_not_found = 3
illegal_option = 4
others = 5.
if sy-subrc <> 0.
raise execution_failed.
endif.
Raja
‎2009 Aug 28 8:12 AM
Hi Raja,
Please can you tell me how a VB script can be called on a different server ?
Regards,
Shantanu R. Godbole
‎2007 Feb 12 1:00 PM