:createFolder
set /p folderName=Folder Name:
if exist %folderName% goto :error else :yes
md %folderName% (I just have to take this command line out in the :Yes command, strange isn't it?)
:yes
echo The folder %folderName% created successfully!
pause > nul
goto :1
exit
:error
echo The folder %folderName% already exist!
Pause > nul
goto :1
exit