V
Vijay Kumar
Hi,
I have a batch file(test.bat) i wrote a command to rename a text file in this batch file. Both batch file and text files are in Network Shared Drive. I am trying to run that batch file from ASP.NET application using VB.NET as a code behind. The following is the code i wrote,
Dim p as new ProcessStartInfo
p.WorkingDirectory = '\\networkSharedDrive\SharedFolder\"
p.FileName = "testcab.bat"
p.UseShellExecute = True
Process.Start(p)
This code is executing fine, It is not giving any error also. But the text file name is not changing. When i double clicking on that Batch file the name of the text file is changed. Through the above code it is not working. I already given Impoersonate to true also…..
Any ideas....pls help me......
I have a batch file(test.bat) i wrote a command to rename a text file in this batch file. Both batch file and text files are in Network Shared Drive. I am trying to run that batch file from ASP.NET application using VB.NET as a code behind. The following is the code i wrote,
Dim p as new ProcessStartInfo
p.WorkingDirectory = '\\networkSharedDrive\SharedFolder\"
p.FileName = "testcab.bat"
p.UseShellExecute = True
Process.Start(p)
This code is executing fine, It is not giving any error also. But the text file name is not changing. When i double clicking on that Batch file the name of the text file is changed. Through the above code it is not working. I already given Impoersonate to true also…..
Any ideas....pls help me......