I need to run a batch file stored in a shared drive, this batch file needs a path of a different file as an argument.
How can I specify the path of this batch file and the path of the other file in c# asp.net
?
I tried to write the path of the batch file as a string, and I got the other file from UploadFile control
string srcPath = @"network/...../file.bat";
string scanFile = Uploadfile1.PostedFile.FileName;
It worked correctly when the batch file in my local drive, but it is not working when the batch file and the uploaded file stored in a shared drive.