I'd like to use a batch file to call a different batch file that is in a sub directory. For instance, if my file system look as follows:
MainFolder
main.bat
FirstDirectory
SecondDirectory
foo.bat
Then main.bat might look something like this:
echo on
REM This lines tells the user what this bat file is doing
call ant
call \SecondDirectory\foo.bat
I'm looking for a one line solution which I think does not exist. Unfortunately I don't always want to do this with a batch file and want to do it directly from the command line.
call SecondDirectory\foo.bat