Diabolical82 Posted July 19, 2004 Share Posted July 19, 2004 what's the different betweens these?%profiles%\%username%\%userprofile%\%alluserprofile%\Thanks Link to comment Share on other sites More sharing options...
Alanoll Posted July 19, 2004 Share Posted July 19, 2004 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 profileex..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 More sharing options...
Diabolical82 Posted July 19, 2004 Author Share Posted July 19, 2004 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 More sharing options...
Alanoll Posted July 19, 2004 Share Posted July 19, 2004 looks like they should....you may wish to add a /F to your del commands ( DEL /F FILE ) incase the files are read-only.Other than that, looks like it will work. Link to comment Share on other sites More sharing options...
Solid as a rock Posted July 19, 2004 Share Posted July 19, 2004 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 meDEL "%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 More sharing options...
Diabolical82 Posted July 19, 2004 Author Share Posted July 19, 2004 whoo-hoo it worked... thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now