How to Suppress "Removing Directory" Messages

Sep 14, 2010
2
0
I recently upgraded from Take Command v9 to v11 (Build 52). I notice there's a new behavior that creates a problem for me.

I have several batch files that delete all files and directories within a subdirectory. The delete statements uses the /T flag to suppress the listing of individual FILES being deleted. In v9, this also resulted in the suppression of the listing of individual DIRECTORIES being deleted. However, in v11, a line appears for every directory deleted regardless of the flag. Hundreds of "removing <directory name>" lines appear in my console window, hiding information I need to see or forcing it to scroll off beyond the end of my scrollback buffer.

In v11, how do I suppress the listing of each individual DIRECTORY that gets deleted?

My full delete statement is:

del /e /k /s /t /x /y /z <subdirectory name>

Thanks.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,461
88
Albuquerque, NM
prospero.unm.edu
<directory name="">In v11, how do I suppress the listing of each individual DIRECTORY that gets deleted?
<subdirectory name="">

/Q will suppress the "Removing" lines. (It will also suppress the final summary. If you want to see the summary but not the subdirectories removed, I think you'll need to filter the output through FIND or similar.)

</subdirectory></directory>
 
<directory name="">

In v11, how do I suppress the listing of each individual DIRECTORY that gets deleted?

My full delete statement is:

del /e /k /s /t /x /y /z <subdirectory name="">

Thanks.

I would use </subdirectory></directory>
Code:
del /e /k /s /t /x /y /z > nul
<directory name=""><subdirectory name=""> after the command to not see any console output. If, in your case, you want to see certain output, this would not be a solution for you.

Joe

</subdirectory></directory>
 
Sep 14, 2010
2
0
/Q will suppress the "Removing" lines. (It will also suppress the final summary. If you want to see the summary but not the subdirectories removed, I think you'll need to filter the output through FIND or similar.)
Filtering it through FIND worked great. Thanks!
 
Similar threads
Thread starter Title Forum Replies Date
vefatica Can't suppress MAPM warnings Support 6
vefatica DO /S ... suppress error? Support 1
R SYNC /T /W does not suppress "deleting" messages Support 0
D How to? Suppress error message with dir /h and no files? Support 2
vefatica Stop TPIPE /EOL removing bad EOLs (and TPIPE changine EOLs)? Support 2
D How to? Skip removing directory (RMDIR) without error message Support 2
C Fixed V25 crashes when adding and then removing in the tabbed toolbar Support 3
C v23 Everything still referenced after removing v23 and installing v24 Support 7
vefatica Fixed Crash removing toolbar tab Support 1
D Fixed Removing the mail password causes GPF Support 2
C Does removing a registered TCMD lower the number registrations used? Support 5
D Removing text with TPIPE Support 2
thorntonpg removing directory with space at the end Support 3
fishman@panix.com HELP!! I just updated to Version 28 and as usual I cannot make extended directory search work. Support 2
D How to use multi-line DO to loop through first level directory names Support 5
D ParentDirectory does not update directory history Support 6
samintz CDD to non-existent directory hangs Support 2
gworley rd (Remove Directory) gives interesting error: Support 2
D Directory History Window with wildcard search Support 3
gentzel Directory stack empty when running TCEXIT? Support 9
vefatica Disable extended directory searches (completely)? Support 8
M WAD "Pictures" directory is empty in TCC but not in CMD or Explorer Support 4
G Local Directory Corruption Support 11
Jay Sage Directory Alias Access to FTP Servers Support 2
Joe Caverly DIRectory Colorization in v25 Help File Support 0
K copy changing destination current directory Support 1
thorntonpg option /u not working The directory name is invalid Support 5
J built in file explorer - how do i go back "up" the directory? Support 2
vefatica Extended directory searches? Support 6
Joe Caverly Using a Directory Alias with @iniwrite fails Support 14
A Installer /extract: extracts into current directory if target not exists Support 12
Charles Dye Ctrl-Shift-Up doesn't update directory history Support 1
G Extended directory search not working Support 4
CWBillow Editing in the root directory of windows 10 Support 6
D Directory stack empty Support 1
J directory or folder to start in Support 2
M How to unlock a directory Support 1
Alpengreis Fixed TCMD FileExplorer Start-Directory problem Support 4
R V19 - At startup, TCC save directory in the directory history list Support 2
C Touch command — I Need to touch matching files in another directory. Support 5
nickles Move takecommand.18.0.key location to installation directory Support 4
fishman@panix.com Extended Directory Searches are not working for me in CDD Support 9
vefatica TCMD's current directory? Support 4
J How to set working directory Support 10
nickles How to? Follow a JUNCTION type directory link Support 9
Steve Pitts WAD Strange output from DEL of a non-existent directory Support 7
I tab completion with directory commands Support 7
vefatica Start-up directory for new tabs? Support 7
cgunhouse Problem with CALL and Directory Aliases in V17 Support 9
vefatica FFIND /S, find directory with specified name? Support 7

Similar threads