In Windows Explorer you can rename mapped network drives (right click -> rename, double click -> edit label field).
 
Is it possible to do this from a Delphi App using the windows API?
 
you can call the SetVolumeLabel API function
 
function SetVolumeLabel(lpRootPathName: PChar; lpVolumeName: PAnsiChar): BOOL; stdcall;
{$EXTERNALSYM SetVolumeLabel}
 
 
or you could call WinExec and pass it an appropriate Label command
 
 
-ns

Reply via email to