JeroenDortmans
Technical User
Hi,
I am having problems with my IIS 5.1 server on one particular asp script.
The servers runs fine until I try to run this script. Then the page won’t load and after that the server doesn’t respond until I shut it down and start it again. The script does run on a IIS 4 server, so what can this be. Here is the code of the script.
<%
DIM Path_BAT, DrawingNrVar, ComplPath, ServerPath
Path_BAT = "\\IS0001\Shared_Apps\DAF_Progs\Trace2\TraceDirectView"
DrawingNrVar = "Drawing_number"
ComplPath = Path_BAT + " " + DrawingNrVar
ServerPath = Server.MapPath("Temp_BAT_file\View_VOG.BAT"
Response.write ServerPath
DIM filesys, filetxt, getname, path
Set filesys = CreateObject("Scripting.FileSystemObject"
Set filetxt = filesys.CreateTextFile (ServerPath)
path = filesys.GetAbsolutePathName (ServerPath)
getname = filesys.GetFileName(path)
filetxt.WriteLine ("echo off"
filetxt.WriteLine (ComplPath)
filetxt.WriteLine ("exit"
filetxt.Close
%>
I am having problems with my IIS 5.1 server on one particular asp script.
The servers runs fine until I try to run this script. Then the page won’t load and after that the server doesn’t respond until I shut it down and start it again. The script does run on a IIS 4 server, so what can this be. Here is the code of the script.
<%
DIM Path_BAT, DrawingNrVar, ComplPath, ServerPath
Path_BAT = "\\IS0001\Shared_Apps\DAF_Progs\Trace2\TraceDirectView"
DrawingNrVar = "Drawing_number"
ComplPath = Path_BAT + " " + DrawingNrVar
ServerPath = Server.MapPath("Temp_BAT_file\View_VOG.BAT"
Response.write ServerPath
DIM filesys, filetxt, getname, path
Set filesys = CreateObject("Scripting.FileSystemObject"
Set filetxt = filesys.CreateTextFile (ServerPath)
path = filesys.GetAbsolutePathName (ServerPath)
getname = filesys.GetFileName(path)
filetxt.WriteLine ("echo off"
filetxt.WriteLine (ComplPath)
filetxt.WriteLine ("exit"
filetxt.Close
%>