About Batch Files

  • Thread starter Thread starter Vgr
  • Start date Start date
Status
Not open for further replies.
Thanks kranmer this is AWESOME! I'll study that and I could do my other release to my mod :)
 
hey now I am curious again. I have not much experience with batch files but I am wondering if it is possible to write a batch that would rename my hard drive to whatever i want automatically when i run it?
 
haha its okay. Would it be complicated or really simple? I am trying to google it but I haven't found what I am looking for yet
 
If you can wait for about some minutes (I want to finish the reading of this awful document first) I'll make it for you. I already told you, it's my pleasure, not a joke.
 
okay sure sounds great. I can be patient, I am just working on my field enhancement project right now. I'll check back in a while
 
hey now I am curious again. I have not much experience with batch files but I am wondering if it is possible to write a batch that would rename my hard drive to whatever i want automatically when i run it?
to create a batch file to rename your drive is fairly simple, all you need to do is use the command LABEL and set which drive you want to change and what you want to change it to, so for example to change your C Drive to FF7DISC1 to write
label c: FF7DISC1
in a BAT file (just open notepad copy and paste that line, then save it as a .BAT) then everytime you run it, it will rename your C Drive to that
 
yarLson here is a slightly more advanced .BAT, copy this into notepad and save as .BAT
Code: [Select]
Code:
:inputset DRIVE=set /P DRIVE=Type drive letter: %=%set INPUT=set /P INPUT=Type drive name: %=%if "%INPUT%"=="" goto inputlabel %DRIVE%: %INPUT%
that is a BAT file that will ask for your input for which drive you want to change the name of and what you want to name it (so for the first question just put the drive letter like "C" and for the second question type the name of the drive like "FF7DISC1" and hey presto it will rename that drive.
 
Last edited:
thank this is all very helpful. You guys wouldn't happen to know a good website for noobs to learn how to write batch files?
 
Yes. It is called n00b Batch-Guide and some tutorials will pop up soon. There is also 'MSN Messenger' which we could use to talk together without putting up 50 pages of dual-discussion.

EDIT : :P
 
well i dont know about guides on .BAT files but i use http://www.computerhope.com when i need to find a DOS command to use in a .BAT file (although i know a lot of the commands already since i used to do a fair amount of stuff in DOS) (i only use .BAT files now for when i make installers or when i run mods),

Also on a side note this is the most complicated BAT file i have ever seen is this
http://schnaader.info/sickbat.php
he actually made a game out of .BAT files which to me is amazing.
 
haha thanks for all the help guys. Now if you take a look at the projects thread you'll see the reason behind all my questions :p
 
Status
Not open for further replies.
Back
Top