I am facing a predicament with running a bat file using the system.diagnostics.process object. I have the code for running a bat file in a class library which I compiled to a dll. I made the dll com interoperable by registering it using compile time. I signed it using strong key, exported the type library and put the dll into GAC using regasm and gacutil commands. I then created the object of the specific class in the dll that has the method for the bat file execution using the server.createobject method in vbscript. I then called the method for the bat execution. Method gets invoked alright but the cmd prompt is not popping up nor is the bat file being executed. I checked to see if its a problem with the interop dll but the dll worked fine with VB6 code. Can someone help me with this issue? I am not sure if its some permission issue on the IIS server. Or is cmd executions not possible via vbscript on ASP for dlls?
Thanks, Geo.
cmd.exe? I think, it should be something likecmd.exe /C yourscript.bat. - Andriy M