Please enable JavaScript to view this site.

Take Command / TCC Help v. 28

@DRIVE[filename]:  Returns the drive of filename. If the filename parameter doesn't contain a drive specification, @DRIVE will expand filename before the drive is extracted.


filename must be in quotes if it contains white space or special characters.


If the path is a UNC, @DRIVE will return the computer name + sharename.




echo @drive["c:\program files\"]



echo "%@drive[\\system1\d_drive\myfile]"