Run batch file as command without calling it
Posted: 24 Dec 2015 10:15
Can I run batch file as command without calling it for example
File1.bat
In this code hello would be a command that calls a file in the same directory named hello.bat here is hello.bat's code
When I try to do this the code exits rather that pausing why and how can I fix this?
File1.bat
Code: Select all
@echo off
Cls
Hello
Pause
In this code hello would be a command that calls a file in the same directory named hello.bat here is hello.bat's code
Code: Select all
@echo off
Cls
Echo hello
When I try to do this the code exits rather that pausing why and how can I fix this?