AA,
My project is to:
- copy a file which is an .exe (like zip to extract files inside) from one network drive to our working drive on network.
- Create necessary folders in the working drive.
- Open/run the .exe file to expand the files.
- Delete the .exe from the working directory.
- Open the working directory folder in windows explorer.
All of the above steps are done (or i know how to do them) except for #3. What happens is when i try to execute/run the .exe programmatically, it saves the extracted files in “C:\Documents and Settings...\My Documents\Visual Studio 2005\Projects......\bin\Debug” folder. However, i would like to extract the files in my working directory which is in "D:".
Does anyone know what i need to change the path to D:\ from C:.…?
snippet:
String myFolder = “D:”;
String myFile = “test.exe”;
Process proc = new Process();
proc.StartInfo.FileName = myFolder+ @"" + myFile;
proc.Start();
Any help is much appreciated…
Guppie