Experts! VB Script help needed 
Author Message
 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  
 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  
 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  
 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  
 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  
 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  
 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  
 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  
 
 [ 8 post ] 

 Relevant Pages 

1. I need help from a vb and vc++ expert

2. VB Expert HELP needed: Tricky function naming problem

3. Expert Help In VB Needed

4. Need help from VB Data Environment Expert ?

5. I NEED A VB EXPERT'S HELP!!

6. I need help from a vb and vc++ expert

7. I NEED A VB EXPERT'S HELP!

8. I NEED A VB EXPERT'S HELP!

9. Passing control from VB to VB Script -- need to access SetFocus in script

10. VB printingproblem needs solution from VB expert !?!

11. Beginner To VB Script - Need Help

12. Need a help to close a word document using VB script

 

 
Powered by phpBB® Forum Software