View Single Post
Old 03-11-2006   #80 (permalink)
Krenath
Registered Member
 
Join Date: Nov 2004
Posts: 2
Trying to use the new (20060228) Master Script on my machine, but whenever I start NetStumbler, it complains with the following message:
Code:
An Error was reported in your script.

Microsoft VBScript runtime error
File not found
Line: 198: Char: 9
SCode: 800A0035
Then, immediately after that message is the following:
Code:
An Error was reported in your script.

Microsoft VBScript runtime error
Type mismatch: 'Discardable'
Line: 269 Char: 2
SCode: 800A000D
The first error appears to be flagging the following line:

Code:
Private Sub IncludeFile(FileName)
' Includes a file in the global namespace of the current script.
' The file can contain any VBScript source code.
	Const ForReading = 1
	Dim f: set f = FSO.OpenTextFile(FileName,ForReading)	
	ExecuteGlobal f.ReadAll()
	f.Close
End Sub
If I wedge in a messagebox to tell me what the value of FileName is, it returns "ns04settings.vbs" yet the file does indeed exist.

I've installed the script in a trackNS subdirectory under C:\Program Files\NetStumbler, and the WAV and CIcons folders do exist as well.

The error occurs whether or not I customize the ns04settings.vbs file. I have touched no other files from the .zip so far.

I'll keep banging on it to see what I can learn. Back in my ASP days, I used to program in VBscript for money so I should eventually be able to get this going, but it'd be nice if someone could just pop in and say something like "Hey! Stupid! You forgot to change line <x>!" and save me a few hours.
Krenath is offline   Reply With Quote