Visual Basic Vb Executable called from Command Line by objWShshell not terminating
Account Home | Help | Blog | Contact us | Log Out


Welcome to Kbytes > Articles

Visual Basic Vb Executable called from Command Line by objWShshell not terminating

Posted By: siteadmin on 05/06/2012 11:32:00

Visual Basic Vb Executable called from Command Line by objWShshell not terminating

 

We were using 

 

Set objWShell = server.CreateObject("WScript.Shell") 
Set objCmd = objWShell.Exec("c:\inetpub\wwwroot\website\myprog.exe params") 
strPResult = objCmd.StdOut.Readall() 
set objCmd = nothing: Set objWShell = nothing 
 
To run a Vb6 executable on the command line and return the result to the calling asp page, and it was working fine.
However when running it via the asp script it was not terminating and you could see it in Task Manager.
 
This was solved by using a setting when building the exe in Vb6
 
 
Make sure the 'Unattended Execution' box is ticked.
 

blog comments powered by Disqus

Kbytes Home | Privacy Policy | Contact us | Testing Area

© 2004 - 2024 1 Oak Hill Grove Surbiton Surrey KT6 6DS Phone: +44(020) 8123 1321