Hi All,
Im a writing a simple aps and here I want to execute a command and get the status of the command I spawned.
Say, I want to delete a file
The problem here is the Msgbox will appear/executed in parallel with
the command I have just executed from Shell. What I want is the Msgbox will wait until the del command finishes and if possible, get the status of that command after it is executed (OK / NotOK). Is this possible? Or is there any other way around to get this done? Thanks in advance.
Im a writing a simple aps and here I want to execute a command and get the status of the command I spawned.
Say, I want to delete a file
Code:
Shell "del somefile.txt", vbNormalFocus
msgbox "Status is OK"
The problem here is the Msgbox will appear/executed in parallel with
the command I have just executed from Shell. What I want is the Msgbox will wait until the del command finishes and if possible, get the status of that command after it is executed (OK / NotOK). Is this possible? Or is there any other way around to get this done? Thanks in advance.