Description
There are a lot of NT specifics in Forrest batch files (@setlocal, %~dp0...) that prevent them to be run on Windows 98.
It would be nice to have this compatibility :-)
The most difficult part may be to emulate the setpwdvar.bat for NT. Here is a code snippet that does the trick :
@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
Hope this helps.
Cheers,
p.b.
It would be nice to have this compatibility :-)
The most difficult part may be to emulate the setpwdvar.bat for NT. Here is a code snippet that does the trick :
@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
Hope this helps.
Cheers,
p.b.