Jump to content

I'm little confused here.


Recommended Posts


haven't heard of %profiles%, perhaps remanment of previous incarnations of Windows.

%Username% is the name of the current logged in user.

%UserProfile% is the path to the profile of the current logged in user

%Alluserprofile% is the path to the All Users profile

ex..

say my username is Test

%Username% = Test

%UserProfile% = %systemdrive%\Documents and Settings\Test

%AllUsersProfile% = %systemdrive%\Documents and Settings\All Users

Link to comment
Share on other sites

Thanks for clearing this up, one more thing will this work for cleanup.cmd?

DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"

DEL "%AllUsersProfile%\Desktop\Adobe Reader 6.0.lnk"

DEL "%AllUsersProfile%\Desktop\Nero StartSmart.lnk"

DEL "%AllUsersProfile%\Desktop\Java Web Start.lnk"

DEL "%UserProfile%\Desktop\Spybot - Search & Destroy.lnk"

RD /S /Q "%AllUsersProfile%\Start Menu\Programs\PrintMe Internet Printing"

RD /S /Q "%AllUsersProfile%\Start Menu\Programs\Java Web Start"

RD /S /Q "%systemdrive%\Drivers"

RD /S /Q "%systemdrive%\Install"

Link to comment
Share on other sites

Thanks for clearing this up, one more thing will this work for cleanup.cmd?

DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"

DEL "%AllUsersProfile%\Desktop\Adobe Reader 6.0.lnk"

DEL "%AllUsersProfile%\Desktop\Nero StartSmart.lnk"

DEL "%AllUsersProfile%\Desktop\Java Web Start.lnk"

DEL "%UserProfile%\Desktop\Spybot - Search & Destroy.lnk"

RD /S /Q "%AllUsersProfile%\Start Menu\Programs\PrintMe Internet Printing"

RD /S /Q "%AllUsersProfile%\Start Menu\Programs\Java Web Start"

RD /S /Q "%systemdrive%\Drivers"

RD /S /Q "%systemdrive%\Install"

if it dont work, try my example which works for me

DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Programmatoegang en -instellingen.lnk" 
DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Windows-Catalogus.lnk"
DEL "%systemdrive%\Documents and Settings\All Users\Bureaublad\Adobe Reader 6.0.lnk"
DEL "%systemdrive%\Documents and Settings\All Users\Bureaublad\Nero StartSmart.lnk"
DEL "%systemdrive%\Documents and Settings\Administrator\Bureaublad\BSPlayer.lnk"
DEL "%systemdrive%\Documents and Settings\Administrator\Bureaublad\Ad-aware 6.0.lnk"
RMDIR /S /Q "%systemdrive%\drivers"
RMDIR /S /Q "%systemdrive%\install"

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