Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have multiple batch files and vbs files , when i try to create a batch to call them it stop after the last batch file and dont execute the vbs.

without giving any error

if i put the vbs at the start it execute it alone.

any advice ?

@echo off 
call batch1.bat 
call batch2.bat 
cscript //nologo test.vbs 
share|improve this question
    
Try to post your batch file (the one that calls) all of the others –  Mathias R. Jessen Jan 11 '12 at 18:15
    
@echo off call batch1.bat call batch2.bat cscript //nologo test.vbs –  Eddy Jan 11 '12 at 18:18
add comment

1 Answer

Try dropping the call commands and moving the //nologo to after the test.vbs so it will look like this. That is mostly a personal taste change but I have a couple of Batch files that call multiple batch and vbs files and have never had an issue. If that doesn't work, my only guess is that something is wrong with the environment.

@echo off 

batch1.bat

batch2.bat

cscript test.vbs  //nologo
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.