Click here to Skip to main content
15,893,722 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
System.Diagnostics.Process.Start("C:\\Project\\emgscan.exe","G:\\");

Above statement run successfully but i want to execute it according me like this.

1. it create a new process for scanning the drive and other statement is executing with parallel process. I don't want to execute next statement until my scan process is completed.

2. I don't want to show the command prompt to user.
Posted

1 solution

Create an object of Process class. Then use StartInfo.WindowStyle property and Process.WaitForExit method.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900