CD environment variable (Users)
> FreeDOS' FreeCOM (and also 4DOS, I think) have "%_CWD%" for this purpose.
>
> > if "%CD%"=="" if not "%_CWD%"=="" set CD=%_CWD%
> if "%CD%"=="" goto error
>
Thanks for sharing this knowledge, rugxulo!
Complete thread:
- CD environment variable - bencollver, 10.03.2026, 02:29 (Users)
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- CD environment variable - roytam, 10.03.2026, 08:03
- CD environment variable - bencollver, 10.03.2026, 14:53
- CD environment variable - Rugxulo, 10.03.2026, 08:21
- CD environment variable - bencollver, 10.03.2026, 14:51
- CD environment variable - roytam, 10.03.2026, 08:03
Mix view