call a labled line of batch file scriptin VB?

danagol1990

Baseband Member
Messages
31
hello,
recently i just found out of the
" Call shell("filename.bat,exe") "
code, which i have almost fallen in love with! as i can save space with the exe, and have easier coding to do for important tasks!

however i wish to know is it possible i can call a specific, or labled line of the the batch file script?

eg if the batch contained;

:1
shutdown -t 00 -s -f
goto 4
:2
shutdown -t 60 -s -f
goto 4
:4
exit

could i make it so that insted of going through the whole lot, i could start from 2?

Many thanks, dan
 
Back
Top Bottom