Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: set volume name SetVolumeLabelA
>label c: mydrivewould set the label of c: to "mydrive", e.g.,
cmd=Environment("COMSPEC") Run(cmd, "/c LABEL C:CANDY")
Kernel32=strcat(dirwindows(1),"Kernel32.DLL") RetVal = DLLCall(Kernel32,long:"SetVolumeLabelA",lpstr:"C:\",lpstr:"NewVolumeName") ; ; RetVal will be 0 if there is an error ; or Non-Zero if the call succeeded. ;
Article ID: W14860
File Created: 2001:11:08:12:40:34
Last Updated: 2001:11:08:12:40:34