DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27148>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27148

Windows 98 compatibility





------- Additional Comments From [EMAIL PROTECTED]  2004-02-23 17:27 -------
Well... first we should have to deal with a syntax like this :

if     "%OS%" == "Windows_NT" do_something
if not "%OS%" == "Windows_NT" do_another_thing

A quick solution would be :
if not "%OS%" == "Windows_NT" set DEFAULT_ANT_HOME=..

But, if you want to get the current directory under Win 98, this batch file 
does the trick :

setpwd.bat :

@echo off
echo @prompt set PWD=$p$_ > _temp_A.bat
%comspec% /e:2048 /c _temp_A.bat > _temp_B.bat
call _temp_B.bat
del _temp_?.bat

Also remember that %0 is the current program's name, i.e.

setpwf.bat :

@echo off
lfnfor on
set PWF=%0
lfnfor off

Hope this helps,

Cheers,

p.b.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to