Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIS 5.1 crash, but don't know why!

Status
Not open for further replies.

JeroenDortmans

Technical User
Aug 7, 2001
56
NL
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. It goes wrong at the "CreateObject("Scripting.FileSystemObject")". Who can help me???

<%
DIM Path_BAT, DrawingNrVar, ComplPath, ServerPath
Path_BAT = &quot;\\IS0001\Shared_Apps\DAF_Progs\Trace2\TraceDirectView&quot;
DrawingNrVar = &quot;Drawing_number&quot;
ComplPath = Path_BAT + &quot; &quot; + DrawingNrVar
ServerPath = Server.MapPath(&quot;Temp_BAT_file\View_VOG.BAT&quot;)
Response.write ServerPath

DIM filesys, filetxt, getname, path
Set filesys = CreateObject(&quot;Scripting.FileSystemObject&quot;)
Set filetxt = filesys.CreateTextFile (ServerPath)
path = filesys.GetAbsolutePathName (ServerPath)
getname = filesys.GetFileName(path)
filetxt.WriteLine (&quot;echo off&quot;)
filetxt.WriteLine (ComplPath)
filetxt.WriteLine (&quot;exit&quot;)
filetxt.Close
%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top