in vbscript i have WshShell.Run "cmd.exe /c c:\run.bat"
how can i pass %1 and %2 from vbscript to run.bat?
thanks
WshShell.Run "cmd.exe /c c:\run.bat Param1 Param2"
WshShell.Run "cmd.exe /c c:\run.bat AAA BBB"
or
p0="cmd.exe /c c:\util\test8.bat"
p1="XYZ"
p2="ABC"
runit=p0 & " " & p1 & " " & p2
WshShell.Run runit
C:\>echo [object] [object]
[object] [object]
"Jerold Schulman" <Je...@jsiinc.com> wrote in message
news:cgdpe152fh5pgt13q...@4ax.com...
Make sure the batch starts with
@echo off
Search.bat
-------------------------------------------------------------
@color 0B
@set /p userin=Please enter the INPUT file name and path:
cscript UML_SearchScript_EID_DoesExist.VBS %userin%
cscript UML_SearchScript_SAM_DoesExist.VBS %userin%
cscript UML_SearchScript_SID_DoesExist.VBS %userin%
cscript UML_SearchScript_UPN_DoesExist.VBS %userin%
Exit
--------------------------------------------------------------
--
Sean M. Loftus
Enterprise Architect
Loftus Consulting, Inc.
www.LoftusConsulting.com
sean(removeme)@loftus.org
"Lynn" <Marr...@yah00.c0m> wrote in message
news:u74lS$blFH...@TK2MSFTNGP15.phx.gbl...