hi all:
when i run the .bat file by using window application, it always pop out cmd.exe window. (i use (process.start() and it works, ). but i don't want everytime the cmd.exe pop out, so how can i make it run at background?
Printable View
hi all:
when i run the .bat file by using window application, it always pop out cmd.exe window. (i use (process.start() and it works, ). but i don't want everytime the cmd.exe pop out, so how can i make it run at background?
any suggestion and ideas will be great helpful!
many thanks....
You would use a ProcessStartInfo object and set its CreateNoWindow property to True. You should read about the Process.Start method. It is overloaded and it will explain the different ways you can start a process and how you can use a ProcessStartInfo object to control it.
i try to set the process.startinfo.createnowindow=true, but the cmd.exe window still come out? can you tell me how to write the code please?
i got one bat file called test.bat...and stored in c:\transspec\
thanks