Then how do we change directories under cmd.exe shell?
On Mon, 19 Jan 2009 Tor Lillqvist wrote :
> > I have a simple makefile and unable to change directory, the makefile is as
> > below. Kindly help to proceed
>Note that in your sample, where you explicitly use the GNU Make
>"shell" function, you pass each command to a separate shell
>invokation. The current directory is per-process state both on Unix
From: Tor Lillqvist <tml@ik...> - 2009-01-19 12:45:59
> Then how do we change directories under cmd.exe shell?
Is there a way to put multiple commands on a single line for cmd.exe?
(In Unix-style shells, you simply separate the commands with a
semicolon.) If not, maybe something like this is needed? Assuming you
want to run the command "prog arg1 arg2" in \where\ever:
echo cd \where\ever >foo.bat
echo prog arg1 arg2 >>foo.bat
If you were using a Unix-style shell, you could use this (assuming
/where/ever maps to the \where\ever directory throug a MSYS mount or
cd /where/ever; prog arg1 arg2
From: Роман Донченко <DXD<ragon@ya...> - 2009-01-19 14:16:19
> Is there a way to put multiple commands on a single line for cmd.exe?
> (In Unix-style shells, you simply separate the commands with a
There is; you separate the commands with an ampresand.