Note that there are some explanatory texts on larger screens.

plurals
  1. USuser2433754
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COOk I understand the deep directories. But the entire directory is in file.bat.txt: temp.tmp=c:\list\12345\complete.txt c:\list\12345Copy\complete.txt (as expected) while file.bat.txt = if exist "c:\list\67891" rd /s /q "c:\list\67891" if exist "c:\list\12345\1" rd /s /q "c:\list\12345\1" if exist "c:\list\12345Copy\1" rd /s /q "c:\list\12345Copy\1" if exist "c:\list\67891\1" rd /s /q "c:\list\67891\1". IE 67891 should not be in this file. I really appreciate this site and your help -thank you
      singulars
    2. COI've spent about 3 hours trying to put my mind around this and trying different things... the output file.bat.txt contains the entire directory list. I need it to contain what is NOT IN temp.tmp, and rd at the root level (there are entries like rd c:\list\12345\1 where I am wanting to delete at the root - rd c:\list\12345). Also, can you recommend a good site for the use of cmd, variables, switches, etc (all the stuff you are using here)? I find snippets but it would be nice to have (short of buying "cmd for dummies") if there was a comprehensive site dedicated to cmd. Thanks for the help!
      singulars
    3. COwow - awesome! Thanks for a great start! Its not creating the rd command file. I cant figure out (and I'm googling) why I am getting "not expected at this time" at || or >> (nul || >>file.bat.txt echo rd /s /q "%%a"). I've tried removing one at a time but I'm sure something is required here.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload