Author |
Message |
Ivan Demkovitc #1 / 8
|
 Experts! VB Script help needed
I'm using VB script to run .Exe file. But Host program for VB Script is in different directory than program I start. What happens is that program starts , but it thinks that it starts from host's directory and start looking for components in this directory. Give me error messages. How would I make program think that it was executed from real directory? Thank you P.S. I was thinking about using "PATH" but I don't know how whould i use it in Windows 2000
|
Mon, 23 Feb 2004 23:13:56 GMT |
|
 |
scorpion5306 #2 / 8
|
 Experts! VB Script help needed
What is the file that is attached here.......it says britnney nekkid.jpg.vbs .....I am betting you have some sort of virus.
Quote: > > I'm using VB script to run .Exe file. > > But Host program for VB Script is in different directory than program I > > start. > > What happens is that program starts , but it thinks that it starts from > > host's directory and start looking for components in > > this directory. Give me error messages. > > How would I make program think that it was executed from real directory? > How exactly are you launching this other program, using CreateObject > or GetObject? Other programs should be smart enough to find their > own components. > -- > Joe Foster <mailto:jlfoster%40znet.com> "Regged" again?
<http://www.xenu.net/> Quote: > WARNING: I cannot be held responsible for the above They're coming to > because my cats have apparently learned to type. take me away, ha ha!
|
Tue, 24 Feb 2004 21:39:15 GMT |
|
 |
scorpion5306 #3 / 8
|
 Experts! VB Script help needed
Very clever, no I didnt open it but I read the txt file.
Quote: > > I'm using VB script to run .Exe file. > > But Host program for VB Script is in different directory than program I > > start. > > What happens is that program starts , but it thinks that it starts from > > host's directory and start looking for components in > > this directory. Give me error messages. > > How would I make program think that it was executed from real directory? > How exactly are you launching this other program, using CreateObject > or GetObject? Other programs should be smart enough to find their > own components. > -- > Joe Foster <mailto:jlfoster%40znet.com> "Regged" again?
<http://www.xenu.net/> Quote: > WARNING: I cannot be held responsible for the above They're coming to > because my cats have apparently learned to type. take me away, ha ha!
|
Tue, 24 Feb 2004 21:53:12 GMT |
|
 |
scorpion5306 #4 / 8
|
 Experts! VB Script help needed
Your little thing here: get the error at:"This is a test of the " it says invalid out side procedure. Const title = "Virus Broadcast System (VBS)" msg = "This is a test of the " & title & "." msg = msg & vbLf & "This is only a test." MsgBox msg, vbExclamation Or vbSystemModal, title msg = "If this were an actual virus, you would already be toast." msg = msg & vbLf & "This concludes this test of the " & title & "." MsgBox msg, vbInformation Or vbSystemModal, title
Quote: > Very clever, no I didnt open it but I read the txt file.
> > > I'm using VB script to run .Exe file. > > > But Host program for VB Script is in different directory than program I > > > start. > > > What happens is that program starts , but it thinks that it starts from > > > host's directory and start looking for components in > > > this directory. Give me error messages. > > > How would I make program think that it was executed from real directory? > > How exactly are you launching this other program, using CreateObject > > or GetObject? Other programs should be smart enough to find their > > own components. > > -- > > Joe Foster <mailto:jlfoster%40znet.com> "Regged" again? > <http://www.xenu.net/> > > WARNING: I cannot be held responsible for the above They're > coming to > > because my cats have apparently learned to type. take me away, > ha ha!
|
Tue, 24 Feb 2004 22:10:37 GMT |
|
 |
Joe #5 / 8
|
 Experts! VB Script help needed
Quote:
> Your little thing here: > get the error at:"This is a test of the " > it says invalid out side procedure.
Really? What version of VBScript do you have? I believe I'm using version 5.5: http://microsoft.com/msdownload/vbscript/scripting.asp -- Joe Foster <mailto:jlfoster%40znet.com> On the cans? <http://www.xenu.net/> WARNING: I cannot be held responsible for the above They're coming to because my cats have apparently learned to type. take me away, ha ha!
|
Wed, 25 Feb 2004 03:37:03 GMT |
|
 |
scorpion5306 #6 / 8
|
 Experts! VB Script help needed
6.0........
Quote: > > Your little thing here: > > get the error at:"This is a test of the " > > it says invalid out side procedure. > Really? What version of VBScript do you have? I believe I'm using > version 5.5: http://microsoft.com/msdownload/vbscript/scripting.asp > -- > Joe Foster <mailto:jlfoster%40znet.com> On the cans?
<http://www.xenu.net/> Quote: > WARNING: I cannot be held responsible for the above They're coming to > because my cats have apparently learned to type. take me away, ha ha!
|
Fri, 27 Feb 2004 18:16:56 GMT |
|
 |
Ian William #7 / 8
|
 Experts! VB Script help needed
Well, it will give that error if you copy a VBS script into a VB6 module. You have to think of a script file as one big Sub and all the other functions/subs included in the file as GoSubs regards Ian ** invalid email address, change dk to denmark homepage http://www.kingsoft-denmark.com/ Tips & Tricks page http://tips.kingsoft-denmark.com/
Quote: > 6.0........
> > > Your little thing here: > > > get the error at:"This is a test of the " > > > it says invalid out side procedure. > > Really? What version of VBScript do you have? I believe I'm using > > version 5.5: http://microsoft.com/msdownload/vbscript/scripting.asp > > -- > > Joe Foster <mailto:jlfoster%40znet.com> On the cans? > <http://www.xenu.net/> > > WARNING: I cannot be held responsible for the above They're > coming to > > because my cats have apparently learned to type. take me away, > ha ha!
|
Fri, 27 Feb 2004 23:33:14 GMT |
|
 |
Joe #8 / 8
|
 Experts! VB Script help needed
Quote:
> 6.0........
Isn't that pre-alpha? If so, you deserve what you get, you poor sad bastard. My condolences. Even Windows Script 5.6 is still "master" beta: http://microsoft.com/msdownload/vbscript/scripting56.asp -- Joe Foster <mailto:jlfoster%40znet.com> L. Ron Dullard <http://www.xenu.net/> WARNING: I cannot be held responsible for the above They're coming to because my cats have apparently learned to type. take me away, ha ha!
|
Sat, 28 Feb 2004 02:56:54 GMT |
|
|