Windows 10

Batch File To Create a Folder

In this tutorial, we are going to see how to create a folder by using IF condition and mkdir command. The batch file contains a series of DOS (Disk Operating System) instructions. It allows triggering the execution of commands found in this file.
 

Batch File To Create a Folder

The following example create a folder called “Folder” only if it doesn’t already exist:

@echo off

if not exist "C:\Folder\" mkdir C:\Folder

Leave a Reply

Your email address will not be published. Required fields are marked *