brenden0309 1 Posted April 2, 2016 Hello all I've recently made a P Drive manager to help keep me organized and not have a million bat files for each P Drive.So that being said here is a code you can insert into a .bat file and edit accordingly to the instructions in the code.Hope this helps you out a little bit! ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: :: :: Author: brenden0309 :: :: Description: use this to sort out your P Drives for working on many different projects. :: :: Notes: Throughout the code their are notes telling you what to change to configure this to your likings.:: :: :: ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: cls @echo off SetLocal EnableDelayedExpansion title Arma P Drive Manger ::Enter The Names You Desire You P Drives To be. set name1=Kelleys Island set name2=Unnasigned set name3=Unnasigned set name4=Unnasigned set name5=Unnasigned set name6=Unnasigned set name7=Unnasigned set name8=Unnasigned set name9=Unnasigned set name10=Unnasigned ::Enter Paths Corresponding To The Given Names Above Below. set path1="B:\Map Development\P Drives\Kelleys Island" set path2= set path3= set path4= set path5= set path6= set path7= set path8= set path9= set path10= :start set usr= cls ::For Looks Add/Remove /'s and \'s to your likings to make the program look cleaner.(Do The Math) echo _____________________________________________________________________________________________ echo / \ echo / \ echo / P Drives 1.%name1% 2.%name2% 3.%name3% 4.%name4% 5.%name5% \ echo \ 6.%name6% 7.%name7% 8.%name8% 9.%name9% 10.%name10% / echo \ Tasks: (R)emove P Drive or (E)xit. / echo \_____________________________________________________________________________________________/ set /p usr= Please Select a P Drive or a Task: if /i "!usr!"=="1" goto P1 if /i "!usr!"=="2" goto P2 if /i "!usr!"=="3" goto P3 if /i "!usr!"=="4" goto P4 if /i "!usr!"=="5" goto P5 if /i "!usr!"=="6" goto P6 if /i "!usr!"=="7" goto P7 if /i "!usr!"=="8" goto P8 if /i "!usr!"=="9" goto P9 if /i "!usr!"=="10" goto P10 if /i "!usr!"=="r" goto Remove if /i "!usr!"=="e" goto Endof ) else ( goto start ) :P1 subst p: /d subst P: %path1% echo P Drive %name1% loaded. pause @goto start :P2 subst p: /d subst P: %path2% echo P Drive %name2% loaded. pause @goto start :P3 subst p: /d subst P: %path3% echo P Drive %name3% loaded. pause @goto start :P4 subst p: /d subst P: %path4% echo P Drive %name4% loaded. pause @goto start :P5 subst p: /d subst P: %path5% echo P Drive %name5% loaded. pause @goto start :P6 subst p: /d subst P: %path6% echo P Drive %name6% loaded. pause @goto start :P7 subst p: /d subst P: %path7% echo P Drive %name7% loaded. pause @goto start :P8 subst p: /d subst P: %path8% echo P Drive %name8% loaded. pause @goto start :P9 subst p: /d subst P: %path9% echo P Drive %name9% loaded. pause @goto start :P10 subst p: /d subst P: %path10% echo P Drive %name10% loaded. pause @goto start :RemoveNOp echo no P:\ Drive pause goto start :Remove subst p: /d echo Removed P Drive pause goto start :EndOf Exit Share this post Link to post Share on other sites