Call VBScribt with parameter from DOS Batch file 
Author Message
 Call VBScribt with parameter from DOS Batch file

I want to call/start a VBScribt procedure/function from a DOS Batch file or
any .EXE file with one or more parameters. How is the calling syntax and how
can I use the parameter in the VBScribt?

Thanks

Berthold



Sun, 06 Mar 2005 21:45:25 GMT  
 Call VBScribt with parameter from DOS Batch file
They're called "arguments" in WScript, and you can read all about them here:
http://download.microsoft.com/download/winscript56/Install/5.6/W982KM...
US/scrdoc56en.exe

(watch for URL wrap in the above).


Quote:
> I want to call/start a VBScribt procedure/function from a DOS Batch file
or
> any .EXE file with one or more parameters. How is the calling syntax and
how
> can I use the parameter in the VBScribt?

> Thanks

> Berthold



Sun, 06 Mar 2005 22:02:08 GMT  
 Call VBScribt with parameter from DOS Batch file

Quote:

> I want to call/start a VBScribt procedure/function from a DOS Batch file or
> any .EXE file with one or more parameters. How is the calling syntax and how
> can I use the parameter in the VBScribt?

Hi

Take a look at the docs that Ned directed you to.

A quick note. Only WSH 5.6 supports named arguments, it was implemented in WSH
5.6:

http://msdn.microsoft.com/library/en-us/script56/html/wslrfNamedObjec...

An example on named arguments:


Subject: Re: Code for handling command args
Newsgroups: microsoft.public.scripting.wsh
Date: 2002-08-09 17:06:11 PST
http://groups.google.com/groups?selm=u1zx2EAQCHA.1636%40tkmsftngp13

Note that the arguments identificator is case insensitive for named arguments:


Subject: Re: Processing command-line arguments with VBScript.
Newsgroups: microsoft.public.scripting.vbscript
Date: 2002-01-31 13:32:22 PST
http://groups.google.com/groups?selm=eEpJo5pqBHA.2332%40tkmsftngp03

--
torgeir



Sun, 06 Mar 2005 22:31:07 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Pass a parameter to a DOS batch file?

2. How do I call a ms-dos batch file from VB

3. VB call to DOS Batch Files

4. Help: hiding a DOS window when executing a DOS batch file

5. question on hiding a DOS window when executing a DOS batch file

6. Logon Batch to call a VBS that calls another batch

7. DOS Batch File to Copy Files from an Access Application

8. Bad Command or File name when Shelling DOS Batch File

9. How do you pass parameters from a batch file to a VBS file

10. How to call an exe with VBScribt

11. ??? Is a DOS Batch File Better ???

12. How to open my local MS-DOS batch file

 

 
Powered by phpBB® Forum Software