I kept all my code here for reference

Such as batch files, automation script, excel code for reference and related with software testing.

  • Command code to remove white space in the folder name

for %A in (“C:\Program Files (x86)\Test 123”) do @echo %~sA

Result: C:\PROGRA~2\TEST12~

  • Command prompt, batch script: using GOTO on IF statement

IF EXIST “C:\Program Files (x86)\Test 123 ABC” GOTO DEL
:DEL
echo DELETE FOLDER
rd /q /s “C:\Program Files (x86)\Test 123 ABC”
exit/b