Execute batch file?!?!

evad4682

Well-known member
Joined
Nov 7, 2005
Messages
55
Programming Experience
Beginner
How do I execute a batch file in ASP.NET 2.0? When I debug this code in the compiler (VWD 2005) all is well.
VB.NET:
 system.diagnostics.process.start("\\server\share\file.bat")
When I move the page up to my webserver nothing happens. Its like that line of code does not exist. What gives?

Thanks in advance
 
Probably the user that the site is running under doesn't have permissions to access the bat file. Check the user in the Directory Security tab in IIS for that site and check the permissions for that file and folder.
 
Back
Top