Information générale
Titre:
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
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement