• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Batch files

hawedi

supermod@windows-board.de
#2
:) Create a VBS script like :)



Set WshShell = WScript.CreateObject( "WScript.Shell" )

WshShell.Run "i:\temp\test.bat",0,True


There you see the specified batch file in "i:\temp\test.bat". Save this like TEST.VBS





:) ..... or create a VBS script like :)



Set WshShell = WScript.CreateObject( "WScript.Shell" )

Set args = WScript.Arguments

WshShell.Run args(0),0,True




Now you will run such a TEST.VBS with an argument
i:\temp\TEST.VBS i:\temp\test.bat
 

delta4s

BLACK HAWK ALOFT
#3
worked beautifully, thanks a lot. How can I stop the script though ? If I end the programs in task Manager, the invoked programs keep coming back.
 

Members online

No members online now.

Latest posts

Latest profile posts

Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,961
Messages
673,239
Members
89,014
Latest member
sanoravies