Calling Command Prompt with Visual COBOL

I have a program that runs from the command prompt from my program.  This is the command: 

cmd.exe /C cscript //nologo D:\NEW_MSI\MSI_DATA\MakeGuid.vbs > D:\NEW_MSI\MSI_DATA\myguid.txt

I am using CALL "SYSTEM" USING WS-CMD-LINE to run the command. (the command above is placed in WS-CMD-LINE before the call to "SYSTEM".

The command works great from a dos prompt, but when I use it in my program - it does not work at all. The myguid.txt file is never generated. 

Does anybody have any suggestions on how I can get this to work? 

Parents Reply
  • 0   in reply to 

    Remove the //nologo option and see if it displays the cscript banner: On my system this is:

    Microsoft (R) Windows Script Host Version 5.812
    Copyright (C) Microsoft Corporation. All rights reserved.

    Chris Glazier
    Rocket Software - Principal Technical Support Specialist
    If you found this post useful, give it a “Like” or click on "Verify Answer" under the "More" button

Children