Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calling a Windows batch file from a GNUMakeFile

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".

like image 516
P45 Imminent Avatar asked Apr 15 '15 14:04

P45 Imminent


People also ask

How do I run a batch file from any location?

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.

How do you call a batch file?

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.


1 Answers

cmd /C run.bat will do it.

For more help on cmd, type cmd /? in the cygwin terminal.

like image 73
Bathsheba Avatar answered Sep 30 '22 01:09

Bathsheba