MSFN Forum: deleting stuff in the application data folder - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

deleting stuff in the application data folder Rate Topic: -----

#1 User is offline   Brando569 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 408
  • Joined: 28-April 04

  Posted 23 May 2005 - 05:35 PM

hey im tryin to delete shortcuts off of the quicklaunch through a batch file but for some odd reason windows cant get to it! ive tried atleast 3 or 4 different ways to get to it and it still doesnt work. these are the things ive tried:

del %homepath%\applic~1\Microsoft\Interne~1\QuickL~1\ad-wat~1.lnk
del %appdata%\Microsoft\Interne~1\QuickL~1\ad-wat~1.lnk
del %systemdrive%\profiles\bran\applic~1\micros~1\interne~1\quickl~1\adwatc~1.lnk

and a few others, even when i try to go to just %systemdrive%\profiles\bran\applic~1 it says it cant find the path, but yet %systemdrive%\profiles\bran\ and %appdata% work (well %appdata% works at the run box but not in a cmd prompt). whats wrong?


#2 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 23 May 2005 - 09:39 PM

I do not think you can mix variables with 8.3 format. If you cannot do it from a cmd prompt, then it will not work in a batch file. They use the same interpreter.

Use this:
Del "%APPDATA%\Microsoft\Internet Explorer\Quick Launch\Ad-watch.lnk"


#3 User is offline   Brando569 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 408
  • Joined: 28-April 04

  Posted 26 May 2005 - 02:08 AM

good job, you solved the mystery :D i guess ill just have to rely on my system drive being c: :}

edit

i just realized something you CAN use vars with 8.3 above the lines with %appdata% i have these lines and they work perfectly!

del %systemdrive%\Profiles\AllUse~1\Desktop\nerost~1.lnk

i guess %appdata% and 8.3 dont play well together....

#4 User is offline   DonDamm 

  • Member
  • PipPip
  • Group: Members
  • Posts: 284
  • Joined: 24-May 05

Posted 29 May 2005 - 01:53 PM

If you put your original ones in quotes, they should work. %Appdata% expands to seveeral directories which have spaces in them. %systemdrive% does't, so you don't have the problem there. Don't bother using the 8.3 names. Just put the whole thing in quotes and Bob's your uncle!

#5 User is offline   Brando569 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 408
  • Joined: 28-April 04

Posted 30 May 2005 - 12:44 AM

DonDamm, on May 29 2005, 02:53 PM, said:

If you put your original ones in quotes, they should work. %Appdata% expands to seveeral directories which have spaces in them. %systemdrive% does't, so you don't have the problem there. Don't bother using the 8.3 names. Just put the whole thing in quotes and Bob's your uncle!
<{POST_SNAPBACK}>


good thinkin! will try it out. and is bob really my uncle?i was wonderin who my uncle was.... thanks now i can sleep peacefully..

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy