@CWDS[d:] : Returns the current working directory of the specified disk drive in the format d:\pathname\. The drive letter must be followed by a colon.

 

If the argument is a partial filename without a drive, @CWDS will expand the filename to get the drive.

 

Examples:

 

echo %@cwds[C:]

c:\Windows\

 

echo %@cwds[%_disk:]

D:\release\version17\

 

See also: @CWD.