Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to run SHELL command syncronously in VB
Message
From
10/11/2000 05:03:22
Santosh Patil
Kaizen Software Pvt Ltd.
Mumbai, India
 
 
To
All
General information
Forum:
Visual Basic
Category:
Other
Title:
How to run SHELL command syncronously in VB
Miscellaneous
Thread ID:
00440092
Message ID:
00440092
Views:
66
Hi,

In application I am executing a DOS command using SHELL command of VB. This DOS command creates one text file. The immediate next commands after SHELL command proceeds depending upon the content of "text file". But w ant to run DOS commands thru VB application.Here I can use SHELL command,but

I have a procedure which calls the SHELL command to carry out the DOS command. That DOS command creates a text file. But SHELL command runs an ansyncronously and this behaviour creates problem. Because My next statement after SHELL command in same procedure is to open that created text file. SHELL command's ansyncronous feature put it on other thread and next command get executed. We get an error message "File not found" because SHELL is in process.

Please help me out to solve the problem
Reply
Map
View

Click here to load this message in the networking platform