This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

launch a command line from a workflow step

Hello,

I am trying to launch a command line from a workflow step but without success for a while.
This is my actual script :
*********************
option explicit
Dim oShell: Set oShell = CreateObject("WScript.Shell")
Dim szCmd
szCmd = "cmd D:\_APPLIS\..."
oShell.Run(szCmd)
Set oShell = Nothing
*********************

No error message when entering in the workflow step but nothing happens.
If run my command line in a cmd window it works.

I have been stopping on this topic for a while if anyone has an idea I would be happy to.

Best regards.

Thomas
Parents
  • if it helps, this script works on a workflow step and allows you to launch a .bat

    Dim oShell: Set oShell = CreateObject("WScript.Shell")
    Dim szCmd
    szCmd = "D:\EXPORT_DA_MFILES\IMPORT_CDE_PMI.bat"
    oShell.Run(szCmd)
    Set oShell = Nothing

Reply
  • if it helps, this script works on a workflow step and allows you to launch a .bat

    Dim oShell: Set oShell = CreateObject("WScript.Shell")
    Dim szCmd
    szCmd = "D:\EXPORT_DA_MFILES\IMPORT_CDE_PMI.bat"
    oShell.Run(szCmd)
    Set oShell = Nothing

Children
No Data