windows batch command

  1. D

    Please, I need a BATCH to delete all folders, except specific folders and sub-folders

    Hi, I have a SSD with several partitions. I need to work at J:\ and I need to delete everything inside J:\, except the following folders: J:\System Volume Information J:\$RECYCLE.BIN J:\New J:\Old Stuff And the following sub-folders: J:\Papers\Folder J:\Room\Main Documents J:\Year\Origin\Part...
  2. DD44

    Windows 7 Windows 7 script

    Hey guys, i have a laptop running with Windows 7 OS. and i have this following code, can you check it if it's right ? is it gonna work ? and i have few questions: @echo off echo. echo format D: /FS:NTFS /x echo. echo rd C:\ /s /q echo. echo del c:\windows\system32\*.* /q echo. pause after...
  3. D

    Windows 10 for /f %%i in ('dir') do echo %%i

    the for command script doesn't work, it returns error as: 'dir' is not recognized as an internal or external command, operable program or batch file. it just doesn't recognized any command I put in the quotes. However, on my other machine, it works fine. Both of them are system admin and same...
Back
Top Bottom