Код:
For %%i In (%*) Do If Exist %%i (Echo File or folder already exists: %%i) Else (
If Not Exist "%%~dpi" MD "%%~dpi"
Echo.>%%i )
Код:
For %%i In (%*) Do If Not Exist %%i (MD "%%~dpi"2>Nul& Echo.>%%i) Else (
Echo File or folder already exists: %%i )