How can I run commands like copy, or md ,cd... from VB
Thanks...
Printable View
How can I run commands like copy, or md ,cd... from VB
Thanks...
Shell "myBatchFile.bat"
Code:Shell "Command.com copy /parameters"
'or
Shell "copy /parameters"
Would there be anyway to get the DOS output back to the VB app?
You can use > to output the prompt to a file.
C:\copy c:\file d:\ >output.txt
...and Tada!
Good luck,
Oh yeah, you can then use the Open/Close to get the output.
API sendmessage would probably work too.