Welcome! Log In Create A New Profile

Advanced

Change Volume name

Posted by Jimbo 
Jimbo
Change Volume name
November 21, 2008 05:06PM
Hi friends,

is there a way to change the volume name of a drive ?

Getting the volume name is easy by use of
DriveName is string = fDriveInfo("X:", fdVolumeName)

But how to write a new volume name back to disk?

Kind regards,
Guenter

P.S. Of course FORMAT /V:MYVOLNAME /Q /U would format the disk volume and set the new volume name. Bad: it's interactive, it's DOS, all data of disk is lost ..



Edited 1 time(s). Last edit at 11/21/2008 05:36PM by Jimbo.
Jimbo
Re: Change Volume name: Solution!
November 21, 2008 06:09PM
Hi,

there is a Console command LABEL - exists / works in Vista*64 too - that changes the Volume name ! Correctly: the 'volume label' - it's of 11 characters maximum.


IF NOT ExeRun("LABEL "+DriveLetter+":"+NewVolumeName) THEN
     Error(ErrorInfo(errFullDetails))
END


Kind regards,
Guenter



Edited 1 time(s). Last edit at 11/21/2008 09:31PM by Jimbo.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: