General information
Title:
How to run SHELL command syncronously in VB
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only