Jump to content

Recommended Posts

Posted (edited)

I'm trying to use this in my cleanup.cmd

DEL "%allUsersProfile%\Desktop\*.*"
DEL "%UserProfile%\Desktop\*.*"

(I like a nice clean desktop)

but it asks me if i want to delete the files, How do you automaticly tell it to say yes, or get it to not ask at all?

Edited by ender341

Posted (edited)
DEL "%allUsersProfile%\Desktop\*.*"
DEL "%UserProfile%\Desktop\*.*"

but it asks me if i want to delete the files, How do you automaticly tell it to say yes, or get it to not ask at all?

Simple:

DEL /q "%allUsersProfile%\Desktop\*.*"
DEL /q "%UserProfile%\Desktop\*.*"

/q(uiet)

HTH

Senax

Edited by Senax

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...