Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

CD environment variable (Users)

posted by Rugxulo Homepage, Usono, 10.03.2026, 08:21

> Windows has a CD environment variable for the current working directory.
>
> Do you know of a better way?

FreeDOS' FreeCOM (and also 4DOS, I think) have "%_CWD%" for this purpose.


if "%CD%"=="" if not "%_CWD%"=="" set CD=%_CWD%
if "%CD%"=="" goto error

 

Complete thread:

Back to the forum
Board view  Mix view
23359 Postings in 2199 Threads, 406 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum