|
-
Mar 23rd, 2000, 06:26 AM
#1
Thread Starter
Lively Member
Hello everyone,
I made a simple little app to start me off making a program to get rid of Happy99.exe from some of my friends' PCs. One of the little functions I wanted this program to perform was to check the liste.ska file that stores the e-mail addresses for all of the people that the trojan has been sent to. It's just a text file, and I used "C:\users\webs.txt" to test. So in the little app I made I added a richtextbox, made a referrence to "Microsoft Scripting Runtime" and wrote the code, and it worked. I tried it later and it didn't. I rewrote it and it still didn't work - the reason being some bizarre Runtime error - 91 - object variable or with block variable not set...here's the code:-
Dim FSys As FileSystemObject
Dim InStream As TextStream
Private Sub cmdRead_onClick()
Set InStream = FSys.OpenTextFile("C:\users\webs.txt")
rtbText.Text = InStream
End Sub
Now I'm probably totally missing the plot here and someone's going to come along and tell me so, but it's the
"Set InStream = FSys.OpenTextFile("C:\users\webs.txt")" line that's causing the problems and I don't know why.
Any help would be greatly appreciated :-)
Thanx
Sam
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|