Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

batch delete folder

# NOTE: for cmd/batch/DOS only (not bash/Linux)

# EXAMPLE:
rmdir /s /q "C:UsersTomDickHarryDeletableStuff"

# SYNTAX
# rmdir /s /q "<your-folder-to-delete>"
Comment

Delete Remove File Folder Batch

@echo off
Mode 90,5 & color 0B 
Title Delete and Remove a File or a Folder by Drag and Drop with Batch File
if "?\%~1"=="?" goto error
echo(
RD /S "?\%~1" 2>nul
DEL /P "?\%~1" 2>nul
Timeout /T 2 /NoBreak>nul & exit /b
::------------------------------------------------------------
:Error
echo( & echo(
echo   You should drag and drop a folder or file over "%~nx0"
Timeout /T 10 /nobreak>nul & exit /b
::-------------------------------------------------------------
Comment

PREVIOUS NEXT
Code Example
Shell :: nmap os and version detection 
Shell :: check running process in linux 
Shell :: default field separator recognized by awk 
Shell :: Cria um dispositivo gerenciado de cores 
Shell :: bash adding to array 
Shell :: pyinstaller no console 
Shell :: ubuntu install latest node with nvm 
Shell :: set hostname on command line ec2 
Shell :: WSL 2 requires an update to its kernel component. 
Shell :: gdown Access denied with the following error 
Shell :: All matches were filtered out by modular filtering for argument 
Shell :: kill apache Failed to restart apache: [apache] 
Shell :: ver espacio en disco linux 
Shell :: enable docker at boot 
Shell :: check permissions for a folder in ubuntu 
Shell :: run tmux on startup 
Shell :: linux batch resize jpg 
Shell :: tensorflow python 3.9 
Shell :: add i386 architecture ubuntu 
Shell :: how delete all wine files in linux 
Shell :: open local files wsl 
Shell :: history-search-backward zsh mac 
Shell :: linux show which serial ports are in use 
Shell :: cara uninstall di centos 7 
Shell :: get ram of ubuntu 
Shell :: alpine linux list processes 
Shell :: ubuntu default phpmyadmin password 
Shell :: how to give permission to create files in directory linux 
Shell :: bash print lines that dont have a word 
Shell :: how to remove nvm 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =