I have a GNUMakeFile (with that name) in a folder, also with a batch file run.bat
which writes to standard output.
How can I call that batch file from the GNUMakeFile?
I've tried @CALL run.bat
but the CALL command doesn't seem to be supported.
cmd run.bat
just puts the cwgwin terminal into a sort of "hybrid DOS state".
Open Start. Search for Command Prompt, right-click the top result, and select the Run as administrator option. Type the following command to run a Windows 10 batch file and press Enter: C:\PATH\TO\FOLDER\BATCH-NAME. bat.
Run a batch file from the Command Prompt To run a batch file, move to the directory containing the file and type the name of the batch file. For example, if the batch file is named "hope. bat," you'd type "hope" to execute the batch file.
cmd /C run.bat
will do it.
For more help on cmd
, type cmd /?
in the cygwin terminal.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With