Variables

USBDLM

 

Variables


 

Configuring AutoRun, Explorer Label and mounting into NTFS folders some variables can be used:

 

Variable           Description         Sample

 

%DriveLetter%      drive letter        X

%Drive%            drive               X:

%Root%             drive root          X:\

%BusType%          connection type     USB

%DevName%          device name         Corsair Flash Voyager

%FriendlyName%     device name         Corsair Flash Voyager

%DriveDeviceId%"   drive's device id   USBSTOR\DISK&VEN_CORSAIR&PROD_FLASH...

%CtrlDeviceId%"    controller' dev id  USB\VID_090C&PID_1000\...

%UsbSerial%"       USB serial number   123456789 or ---

%UsbPortName%      USB port name       3-1-1

%UsbSpeed%         USB speed           High-Speed

%UsbMaxSpeed%      USB dev max speed   Super Speed

%UsbVersion%       USB-Version         2.0

%Label%            drive name          My flash drive

%VolumeLabel%      drive name          My flash drive

%LetterFromLabel%  letter from label   X if the label is Drive_X

%DriveType%        drive type          REMOVABLE

%FsName%           file system         FAT

%Size%             volume size         2 GB

%VolumeSize%       volume size         2 GB

%DiskSize%         drive size          20 GB

%DriveSize%        drive size          20 GB

%KernelName%       kernel name         \Device\Harddisk3\DP(1)0-0+d

%PartitionName%    Partition name      \Device\Harddisk2\Partition1

%DeviceNumber%     device number       2

%PartitionNumber%  partition number    1

%DiskSignature%    disk signature      9810ABEF

%VolumeName%       volume name         \\?\Volume{GUID}\

%PureVolumeName%   pure volume name    Volume{GUID}

%VolumeNameGuid%   volume name's GUID  {GUID}

%Target%           subst/net target    \\MyServer\public

 

%Date%             Date (yymmdd)       090331

%Date4%            Date (yyyymmdd)     20120331

%DateISO%          Date (yyyy-mm-dd)   2013-03-31

%Time%             Time (hh:mm:ss)     12:00:00

%UserName%         user name           Administrator

%UsbdlmPath%       USBDLM folder       C:\Tools\USBDLM

 

 

These variables can also be made available as environment variables for processes started by USBDLM.

Which variables are required must be configured.

 

Sample:

 

[Settings]

UsbdlmVariablesToOpenEnvironment=DevName, FsName, VolumeLabel

 

 

UsbDriveInfo can show the variables (Options -> Show USBDLM Variables).