Batch calls vbscript and needs return 
Author Message
 Batch calls vbscript and needs return


Maybe someone could help me with my problem.

I need to write a batchfile with NT4, that calls a VBScript.
The vbscript should return a string variable to the batchfile.
Can that be done somehow? AFAIK the CALL command
only gives parameters to the invoked procedure, but not
vice versa?

The batchfile looks like:

call x.vbs                  
rem vbscript computes a string variable (ret=inputbox(....))
rem that should be returned to the batchfile
echo %ret%

or like that.

But this example doesn't work.
(Vbscript runs fine, no errors there)

Some ideas or proposals?

Thanks a lot!!!


f'up2 alt.msdos.batch.nt

Wed, 22 Jan 2003 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

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

2. Calling Batch Files from VBSCRIPT ?

3. Needing help in calling batch files

4. Call javascript function from vbscript and return value...

5. New in VBScript - I need to intercept a SQL Stored Proc Return value

6. Returning a Batch file's results to ActiveDocument

7. Pass VB return code to batch script.

8. Batch-programming->returning a value (VBX/OCX?)

9. Returning a value from one vbscript to another vbscript

10. Return value from VB executable to DOS batch file

11. HELP! Call Script from a batch file

12. Call VBScribt with parameter from DOS Batch file


Powered by phpBB® Forum Software