|
-
Jul 4th, 2006, 01:44 PM
#1
Thread Starter
Lively Member
about .bat file run
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?
-
Jul 4th, 2006, 04:42 PM
#2
Thread Starter
Lively Member
Re: about .bat file run
any suggestion and ideas will be great helpful!
many thanks....
-
Jul 4th, 2006, 04:43 PM
#3
Re: about .bat file run
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.
-
Jul 5th, 2006, 06:05 AM
#4
Thread Starter
Lively Member
Re: about .bat file run
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|