farte Posted August 24, 2004 Share Posted August 24, 2004 Hi Tried removing shortcuts from desktop and start menu/programs etcThese are my shortcutsECHO.ECHO Removing useless shortcuts from Program Menu...DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Yahoo! Messenger.lnk"DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Windows Media Player.lnk"DEL "%ALLUSERSPROFILE%\Start Menu\Programs\MSN Messenger 6.2.lnk"DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\Windows ExplorerDEL "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\Program Compatibility Wizard.Ink"DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\Address Book.Ink"DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\System ToolsDEL "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\CommunicationsDEL "%ALLUSERSPROFILE%\Start Menu\New Office Document.lnk"DEL "%ALLUSERSPROFILE%\Start Menu\Open Office Document.lnk"DEL "%ALLUSERSPROFILE%\Start Menu\Programs\WinRAR.lnk"DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Winamp.lnk"could someone help me please Link to comment Share on other sites More sharing options...
Vann Posted August 24, 2004 Share Posted August 24, 2004 DEL without any additional arguments will ask for confirmation before deleting something. Run del /? from the command line to see additional options. Link to comment Share on other sites More sharing options...
oioldman Posted August 24, 2004 Share Posted August 24, 2004 What exactly is your problem, i'm guessing that the shortcuts are not removed?!?It looks ok, from here, but the quickest way to know if it works is to run it manually at the end and if it does work then place at of you GuiRunOnce command or at end of you RunOnceEx.cmd file as i and many others do. Link to comment Share on other sites More sharing options...
bucketbuster Posted August 24, 2004 Share Posted August 24, 2004 I always use these arguments: /f /qe.g.:DEL /f /q "%ALLUSERSPROFILE%\Start Menu\Programs\Yahoo! Messenger.lnk" Link to comment Share on other sites More sharing options...
farte Posted August 24, 2004 Author Share Posted August 24, 2004 @oildmanyes there not removing did in sp1 but not with sp2!!yes have placed it with the GuiRunOnce commandDone changes to the clean up cmd but seems to not remove any of my shortcuts i am not sure what could be wrong everything else is working except the clean up... Link to comment Share on other sites More sharing options...
farte Posted August 24, 2004 Author Share Posted August 24, 2004 Heres my clean up i may have been confused with RunOnceEx.cmd and my start.cmdcleanup.txt Link to comment Share on other sites More sharing options...
glent Posted August 24, 2004 Share Posted August 24, 2004 ECHO.ECHO Restarting the PC in 1 minute...shutdown.exe -r -f -t 300 -c "Windows XP will now restart in 1 minute, this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!"I think this should be at the end not the begging Link to comment Share on other sites More sharing options...
oioldman Posted August 24, 2004 Share Posted August 24, 2004 Try this link, because i notice your using literal paths and you don't need to be:Delete shortcutsAlso, t 300 isn't 1 minute, i use t 60 for one minute which is 60 seconds.Your doing 300 seconds which is 5 mins. Link to comment Share on other sites More sharing options...
Aaron Posted August 24, 2004 Share Posted August 24, 2004 ECHO.ECHO Restarting the PC in 1 minute...shutdown.exe -r -f -t 300 -c "Windows XP will now restart in 1 minute, this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!"I think this should be at the end not the begging No, Windows will still allow anything to run when a shutdown is executed, for a time span of 300 seconds. Link to comment Share on other sites More sharing options...
mazin Posted August 24, 2004 Share Posted August 24, 2004 DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Yahoo! Messenger.lnk"DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Windows Media Player.lnk"DEL "%ALLUSERSPROFILE%\Start Menu\Programs\MSN Messenger 6.2.lnk"DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\Windows ExplorerDEL "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\Program Compatibility Wizard.Ink"DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\Address Book.Ink"DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\System ToolsDEL "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\CommunicationsDEL "%ALLUSERSPROFILE%\Start Menu\New Office Document.lnk"DEL "%ALLUSERSPROFILE%\Start Menu\Open Office Document.lnk"DEL "%ALLUSERSPROFILE%\Start Menu\Programs\WinRAR.lnk"DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Winamp.lnk"Please check your work carefully. Most of it is wrong. Sorry!WinRAR isn't a link.Winamp isn't a link.Program Compatibility Wizard.InkAddress Book.InkSome shortcuts are in %USERSPROFILE% not in %ALLUSERSPROFILE%Windows Explorer isn't a folder.And so on....Plus, a bare DEL can delete a single file(s) but not a folder! Link to comment Share on other sites More sharing options...
farte Posted August 24, 2004 Author Share Posted August 24, 2004 Mange to filter most of the shortcuts now Thanks!!@Aaron yes tried both at begining and end no difference @mazinSo its possible to rid the folders .....not using the DEL....what statement do i need to rid folders cheers Link to comment Share on other sites More sharing options...
creopard Posted August 24, 2004 Share Posted August 24, 2004 to delete a folder, e.g.RD /S /Q "%systemroot%\Web\Wallpaper\"to delete files within a folder, e.g.DEL %systemroot%\system32\L3codeca.acm /Q"/Q" does not ask for confirmation!-------------------------Remember "Q"? Link to comment Share on other sites More sharing options...
mazin Posted August 24, 2004 Share Posted August 24, 2004 Try this link, because i notice your using literal paths and you don't need to be:Delete shortcuts@farteFollow that link. Link to comment Share on other sites More sharing options...
codeblue Posted August 24, 2004 Share Posted August 24, 2004 Try Remove Directory:RD /S /Q "%systemdrive%\Program Files\Online Services"This Ms DOS site became my 2nd best friend (MSFN the 1st ) Link to comment Share on other sites More sharing options...
farte Posted August 24, 2004 Author Share Posted August 24, 2004 Would this remove the folders i dont needRD /S /Q "%USERSPROFILE%\Start Menu\Programs\WinampRD /S /Q "%USERSPROFILE%\Start Menu\Programs\WinRARWould this delete explorer in Accessories or would it cause more problems RD /S /Q"%SystemRoot\explorer.exethanks for the help guys im greatful for your help cheers 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