use command prompt from c:

dfrimmel

New member
Joined
Dec 17, 2013
Messages
1
Programming Experience
5-10
Hi,
On button click I execute:

VB.NET:
System.Diagnostics.Process.Start("c:\file.bat")
Call Thread.Sleep(CInt(12000 * Rnd()))

Batch file run XCOPY command, but instead of start command prompt from c: I got
C:\Documents and Setting\user\Local Settings\Apps\2.0\6J0K5G0H.D0P\....>XCOPY path

How can I on button click run command prompt and execute batch from c:\ what do to and what to change?

Thanks.
 
Back
Top