Page 1 of 1
.Bat that runs .VBS
Posted: 23 Oct 2013 03:55
by Batch Artist
Hello guys, I just needed a little bit of help. I was wondering if it was possible that a Batch file could start a .VBS file when I give the command to in the batch. I'm just experimenting with my knowledge of batch and seeing where I can improve on my coding skills.
Thanks in advance to all!
Re: .Bat that runs .VBS
Posted: 23 Oct 2013 06:09
by foxidrive
Here are two methods. The second one requires that the .VBS filespec is associated already.
Code: Select all
@echo off
cscript /nologo "c:\folder\filename.vbs"
Code: Select all
@echo off
start "" "c:\folder\filename.vbs"
Re: .Bat that runs .VBS
Posted: 23 Oct 2013 07:08
by Batch Artist
foxidrive wrote:Here are two methods. The second one requires that the .VBS filespec is associated already.
Code: Select all
@echo off
cscript /nologo "c:\folder\filename.vbs"
Code: Select all
@echo off
start "" "c:\folder\filename.vbs"
Thanks again Foxidrive! Like usual your codes worked like charms! Thank you very much!