ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Cheng <J...@LOBBY7.com>
Subject RE: pushd and popd
Date Thu, 13 Dec 2001 14:26:24 GMT
Don't know if this will help you, but are you aware that you can use "&" to
string together commands onto one line... this is at least true on Windows
2000, not sure about NT.

>From the command reference:

The ampersand (&) separates multiple commands on one command line. 
The parentheses groups multiple commands. 
The semicolon or comma (; ,) separate command parameters. 
The caret (^) cancels a subsequent command symbol's special meaning so you
can use a command symbol as text. 
The double ampersand (&&) causes the command following this symbol to run
only if the command preceding the symbol is successful. 
The double pipe (||) causes the command following this symbol to run only if
the command preceding the symbol fails. 

In other words, "pushd \\server\testdir\ & cd & popd" should work...

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message