Jump to content

Command For Cleanup In Wpi.cmd


Recommended Posts

I'm trying to delete a shortcut that i put in $Docs\all users\desktop of my UA CD 'IF' the program isn't installed .

i know IF EXIST command works fine, but could anyone tell me opposite of that?

IF not exist "$Progs\emule" DEL /S /Q "$docs\all users\desktop\emule.lnk"
IF not exist "$Progs\emule" DEL /S /Q "$docs\all users\desktop\Uninstall emule.lnk"

i tried this and i think i got it wrong..

btw, would the .cmd handle spaces between path fine??

tia.

Link to comment
Share on other sites


I'm trying to delete a shortcut that i put in $Docs\all users\desktop of my UA CD 'IF' the program isn't installed .

i know IF EXIST command works fine, but could anyone tell me opposite of that?

IF not exist "$Progs\emule" DEL /S /Q "$docs\all users\desktop\emule.lnk"
IF not exist "$Progs\emule" DEL /S /Q "$docs\all users\desktop\Uninstall emule.lnk"

i tried this and i think i got it wrong..

btw, would the .cmd handle spaces between path fine??

tia.

It is DEL /F /Q ;)

Link to comment
Share on other sites

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...