I am a bit of a novice at scripting.
I saw your "delete contents of a directory" script on a help site which seemed the safest option offered, but cant get it working from within my batch file:
Can you advise please? I don't think I have the directory entry syntax correct.
@echo off
setlocal enableextensions
if {%1}=={} goto :HELP
pause
if {%1}=={/?} goto :HELP
goto :START
:HELP
echo Usage: %~n0 E:\test1\testL2\testL3
echo.
echo Empties the contents of the specified directory,
echo WITHOUT CONFIRMATION. USE EXTREME CAUTION!
goto :DONE
:START
pushd %1 || goto :DONE
rd /q /s . 2> NUL
popd
:DONE
endlocal