Consider two batch files Main.bat and second.bat
Now suppose u run main.bat and u want that second.bat is also executed by main.bat. so here is the code or algo to do so. Code of Main.bat :-
@echo off
echo Main running
echo @echo off > second.bat
echo echo second running >> second.bat
call second.bat
del second.bat
echo Main ending
the above code will create/run the second.bat :
@echo off
echo second running
Source: Internet
No comments:
Post a Comment