Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri Aug 18, 2017 6:58 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: TimeOut Shell
PostPosted: Wed Feb 15, 2012 6:02 am 
Offline

Joined: Thu Aug 10, 2006 6:04 am
Posts: 72
I have a problem when running a dos application using shell, being that the application dos is very laborious as timing, the program times out. I tried to set the Timeout to -1, but in doing so the Dialog window is blocked while the application does not end the calculation.

I would like some suggestions, kind regards

my code:

Dim path as string
Dim bash as New Shell
path = "cmd.exe /c Appdos.exe"
bash.TimeOut = -1
bash.Mode = 0
App.DoEvents(500)
bash.Execute path
msgbox "done"


If instead imposed timeout 5000 the bash variable returns immediately timeout


Top
 Profile  
Reply with quote  
 Post subject: Re: TimeOut Shell
PostPosted: Wed Feb 15, 2012 7:09 am 
Offline

Joined: Wed Dec 14, 2011 4:20 am
Posts: 84
sberla wrote:
I have a problem when running a dos application using shell, being that the application dos is very laborious as timing, the program times out. I tried to set the Timeout to -1, but in doing so the Dialog window is blocked while the application does not end the calculation.

I would like some suggestions, kind regards

my code:

Dim path as string
Dim bash as New Shell
path = "cmd.exe /c Appdos.exe"
bash.TimeOut = -1
bash.Mode = 0
App.DoEvents(500)
bash.Execute path
msgbox "done"


If instead imposed timeout 5000 the bash variable returns immediately timeout


The option /c will terminate shell after the command has been executed. Try to use /k instead (Windows 7 environment)
path = "cmd.exe /k Appdos.exe"


For more options enter: cmd.exe /? in a dos window


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group