Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


file suddenly does not work!

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,11
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> file suddenly does not work!
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 file suddenly does not work! - 5/23/2001 12:56:50 AM   
  rhl150

 

Posts: 29
Score: 0
Joined: 5/23/2001
From: New Zealand
Status: offline
I am using a vb script file to download a text file to a mainframe. It has been working like a charm for several weeks. It suddenly stopped working; we have been able to run the code in ftp mode. The file that the script creates seems to work under ftp also. But when I execute the script file as before, no file gets written.

My question is this. How can I set up my script file to capture the results of its execution?

Thanks for any help!
 
 
Post #: 1
 
 Re: file suddenly does not work! - 5/23/2001 1:01:02 AM   
  pagooda

 

Posts: 54
Score: 0
Joined: 5/23/2001
From: USA
Status: offline
you've got to give us more to work with here! show us some code; explain better what is/isn't happening. Is your question that you want to be able to find out where in the code it's not working? If so, try putting in some response.write's or msgbox's so you can see where you're getting or not getting.

(in reply to rhl150)
 
 
Post #: 2
 
 Re: file suddenly does not work! - 5/23/2001 1:02:36 AM   
  adminkoe

 

Posts: 117
Score: 0
Joined: 12/23/2000
From:
Status: offline
You could also try to trap the error(s) that occur.
This is one way to do it:

First, if this line exist:
On Error Resume Next
then comment it out.

Next, add the line:
On Error Goto ErrorHandler
(This should be added early in the code, preferably right after:
<%@ LANGUAGE = VBScript %>
(which should be the first line).)

Then make an ErrorHandler method, e.g. like this:

Sub Errorhandler()
Response.Clear
Response.Write("Error: " & Err.Source & "<br>")
Response.Write("Error number: " & Err.Source & "<br>")
Response.Write("Error description: " & Err.Description & "<br>")
Response.End
End Sub

(in reply to rhl150)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> file suddenly does not work! Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts