Copy the script below and save as *.cmd
@echo off
setlocal EnableDelayedExpansion
if not exist "C:\Drivers\" (
mkdir "C:\Drivers\"
if "!errorlevel!" EQU "0" (
echo Folder created successfully
) else (
echo Error while creating folder
)
) else (
echo Folder already exists
)
exit
No comments:
Post a Comment