1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/p when used with DEL

Discussion in 'Support' started by ron, Jul 30, 2014.

  1. ron

    ron

    Joined:
    Aug 19, 2008
    Messages:
    140
    Likes Received:
    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.
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,299
    Likes Received:
    39
    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.
     
    ron likes this.

Share This Page