Tagged: ms dos


Batch – Rename files in MS Dos

RenameFiles.cmd ::input    “C# dan – 3 – test.txt” ::output    “C# – 3 – test.txt” @echo off setlocal EnableDelayedExpansion for %%a in (*.txt) do ( set name=%%~Na ::from left to right set newName=!name:~0,3!!name:~7!...


Find files in windows using Ms-Dos Command

Run -> cmd cd\ FIND FILES (recursively) dir /s/b/l;find  “*.txt” SAVE TO FILE dir /s/b/l;find  “*.txt” > “c:\files.txt” NOW DELETE FILE IN files.txt for /F “tokens=*” %a in (files.txt) do del “%a” OR USING...