Thursday, May 29, 2014

Folder Generator

Today I have coded a pretty useful program that will make a folder where you want it with the name you want it to have.  It can create folders in someone else's account if you are admin.  Just copy it into notepad and save it as folder.bat

@echo off
@echo Which drive do you want the folder to go to?
@echo If you do not know what to do type what.
@echo  If you know what to do type next.
set /p choice=
If %choice% EQU what goto what
If %choice% EQU next goto enter
:WHAT
@echo put the drive directory like this.
@echo Example
@echo ===============================================================================
@echo C:\Users\Bob\Desktop
@echo ===============================================================================
:ENTER
@echo Enter the name of the directory where you want to create your folder.
set /p choice2=
cd %choice2%
@echo Now enter the name of the folder you will create.
set /p choice3=
md "%choice3%"
pause
:RESTART
@echo Would you like to make another folder?  (yes or no)
set /p choice4=
If %choice4% EQU yes goto enter
If %choice4% EQU no goto bye
:BYE
@echo Bye I hope this was a useful program for you.
pause

No comments:

Post a Comment