/p when used with DEL

ron

Aug 19, 2008
151
0
del /p /s /x /a:d f:\test\*.*

Was testing a command to remove all the empty folders in a path. Had a question about /p. I was expecting a prompt but didn't get one. It did remove all the empty folders and left files alone though. Just curious what the expectation should be using /p.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,469
88
Albuquerque, NM
prospero.unm.edu
DEL /P prompts before deleting each file. If you also specify /A:D, no files will match, so you won't get any prompts. /P also overrides the default prompt you get when you specify a wildspec of * or equivalent.
 
  • Like
Reactions: ron
Similar threads
Thread starter Title Forum Replies Date
M Backquoted parameters used in GoSub don't pass string as a single parameter Support 2
M ANSI is used to show files instead of OEM in version 17 to 19 ! Support 5
R ffind not setting %_ffind_ vars if /f is used Support 7
D Can ANSI escape sequences be used in keystroke aliases? Support 8
Jay Sage How to Determine INI File Used by TCMD Support 6
I most used commands Support 2
C Does removing a registered TCMD lower the number registrations used? Support 5
D TCC can't start app if @shfolder[42] used for path Support 1
T Fixed free reports negative used amount Support 8
Q TCC: (Sys) The process cannot access the file because it is being used by another process. Support 0
Ville BUG: 'dig' of bind 9.6.0 P1 crashes when used with TC10 Support 6
S Wrong .INI file used by TCC Support 2
Joe Caverly MKLINK and Streams and DEL Support 4
S CMDebug 22 issue with del command Support 1
I Puzzling Behavior of TDRV and DEL Support 2
vefatica File system update after DEL? Support 4
vefatica DEL /R on a SUBST'd drive? Support 1
C Del /W999 2gbFile.ext / latest build / Win7 x64 / MSE / Everything Support 5
nickles WAD del unable to delete files ending in "." Support 18
D del /s /q /f asks Are you sure (Y/N)? Support 7
Steve Pitts WAD Strange output from DEL of a non-existent directory Support 7
C DEL, connected Web folder, report Support 1
M A possibly stupid question about the "del" command... Support 7
Peter Murschall DEL /Y prompts always ? Support 3
vefatica Files disappear in Explorer when DEL fails Support 6
S WAD DEL /E suppresses fatal ERROR messages Support 2
nickles WAD del behaves inconsistenly# Support 7
David McClelland Why the prompt to del c:\* Support 7
Steve Pitts Are you sure prompt from DEL command Support 5
Steve Pitts Problem with DEL /S+n Support 11
vefatica DEL /Q not fixed Support 7
vefatica DEL /Q? Support 10
A del /w [minor documentation fix] Support 0
S DEL /L question Support 3
krischik WAD DEL *.htm Support 7
Phileosophos What could be slowing a "del /sxz" command? Support 19
S DEL on FTP site : complaint about missing DESCRIPT.ION Support 1
vefatica del, attributes, et c. Support 0
S SELECT DEL (*D.DLL) - output curious Support 8
T DEL disregards switch when using regular expressions Support 2
S DEL unhides directories Support 9

Similar threads