Hi Everyone,
I am trying to figure out how to close the single instance of the cmd.exe process that is started when I run the below line of code.
Each time I run my program, another instance of the cmd.exe process is left running in my processes. I do not wish to kill every instance cmd.exe because I may be working on something in another cmd.exe process that I do not want to loose.
Is there anyway for my to run the below code then have the process end as soon as it finishes?
Thanks!
VB Code:
Shell Environ$("comspec") & " /k net view > C:\view.txt", vbHide