MSFN Forum: Give the system drive a name - MSFN Forum

Jump to content



If you are having issues with Windows after removing components and have come to ask for help, please attach (not paste) your Last Session.ini file to your post to facilitate quicker assistance.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Give the system drive a name Rate Topic: -----

#1 User is offline   stevemet 

  • Group: Members
  • Posts: 5
  • Joined: 26-January 09

Posted 04 July 2009 - 06:16 AM

I have tried to find an answer in all forums but have failed...perhapes using the wrong search words !

My question is : How do I name the installation drive ?

For example : My installation dive is C: Its name (after install using Nlite) is :"" (yep nothing)

I would like to call it "My Disk" (obvisiously not but for the purpose of this excorsise)

How do I name the C: drive during installation ? Do I have to create a .bat file to do so from the runonce command ?
This seems to be me the only answer that I can come up with as I can not find an answer let alone the same question
I am asking anywhere...

Look forward to ANY advice offered.

regards Steve.


#2 User is online   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 9,106
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 04 July 2009 - 06:27 AM

Does the LABEL command ring any bell? :unsure:
http://www.ss64.com/nt/label.html

Possibly used in a batch in conjunction with the VOL command:
http://www.ss64.com/nt/vol.html

To make sure that the drive C: has no label before/has the given one after.

jaclaz

#3 User is offline   stevemet 

  • Group: Members
  • Posts: 5
  • Joined: 26-January 09

Posted 04 July 2009 - 06:38 AM

label c: mydisk
I know ... so it does look like runonce then ?
only solution ?
I can not see another but thought I woould ask

#4 User is offline   stevemet 

  • Group: Members
  • Posts: 5
  • Joined: 26-January 09

Posted 04 July 2009 - 07:22 AM

Done.

#5 User is offline   johnhc 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,246
  • Joined: 02-March 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 04 July 2009 - 09:24 AM

stevemet, great idea - have stuck a batch call into my RunOnce file. BTW, the label can be up to 32 characters for NTFS volumes and contain many special characters that the FATS restricts. Please see the Help and Support on Label. Thanks, John.

#6 User is online   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 9,106
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 04 July 2009 - 10:28 AM

View Postjohnhc, on Jul 4 2009, 05:24 PM, said:

stevemet, great idea - have stuck a batch call into my RunOnce file. BTW, the label can be up to 32 characters for NTFS volumes and contain many special characters that the FATS restricts. Please see the Help and Support on Label. Thanks, John.


Or here ;):
http://technet.micro...y/bb490925.aspx

Quote

Limitations on volume label names

A volume label can contain as many as 32 characters for NTFS volumes and as many as 11 characters for FAT volumes and can include spaces but no tabs.

FAT volume labels cannot contain any of the following characters:

* ? / \ | . , ; : + = [ ] < > "

This limitation does not apply to NTFS volumes.

For FAT volumes, volume labels are stored as uppercase regardless of whether they contain lowercase letters. NTFS volume labels retain and display the case used when the label was created.


Rather obviously using any of the "normally no-no" characters is generally speaking not a very good idea, as they will probably result as being incompatible with many batches/tools that only provide for "OLD" limited set of characters.

Particularly, in the batch assigning the name to the volume, if I am not mistaken, at least these:
 | < >

will need to be escaped with:
^


jaclaz

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy