Quotes are especially important if the name of the folder/directory you want t create contains spaces within it. If you want to learn how it works, lets break it down: To make this command work for you replace “My New Folder” with the name of the directory you want to create within quotes. Here is what that would look like: If Exist “My New Folder” (echo Already Exists) else (echo Doesn’t exist) You don’t need to worry however, all we have to do is use a simple if statement that checks whether a folder with a specified name already exists, and prints an appropriate message. This is especially important with folders that contain files within them, because you might accidentally overwrite all of them and lose important data.
Before creating a new directory its always a clever idea to check if a folder with the same name already exists in your target directory.