2 ms·
It was % to indicate environment variables. echo %PATH% Should work, as long as that variable is in scope, which it should be on an old MSDOS platform with a
by jimmyswimmy 6y ago
It was % to indicate environment variables.
echo %PATH%
Should work, as long as that variable is in scope, which it should be on an old MSDOS platform with a single thread.
- TeMPOraL 6y agoEnvironmental variables have scopes?
- pan69 6y agoIts probably that variables defined in AUTOEXEC are "global" scope, i.e. can be referenced in any other batch file, but variables defined within a batch file other than AUTOEXEC only exist within the scope (context) of that batch file. But, I haven't tested this...
- 4cao 6y agoI think in DOS they were all global in scope. SETLOCAL appeared with Windows NT (cmd.exe), not sure which version (I didn't use the early ones).