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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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