Sgt_Strider Posted December 24, 2006 Share Posted December 24, 2006 How can I use my cleanup.cmd file to delete the Online Services folder inside the Program Files folder. Does anyone here know? Thanks. Link to comment Share on other sites More sharing options...
benners Posted December 24, 2006 Share Posted December 24, 2006 Have you tried rd /s /q "C:\Program Files\Online Services" Link to comment Share on other sites More sharing options...
Sgt_Strider Posted February 14, 2007 Author Share Posted February 14, 2007 Have you tried rd /s /q "C:\Program Files\Online Services"Is this command the same as the one that you posted above?RD /S /Q %systemdrive%\Online Services\ Link to comment Share on other sites More sharing options...
Gee Posted February 14, 2007 Share Posted February 14, 2007 (edited) Have you tried rd /s /q "C:\Program Files\Online Services"Is this command the same as the one that you posted above?RD /S /Q %systemdrive%\Online Services\No, your command will yeild this resultrd /s /q c:\Online Services\Where c: is your install drive.More accurately, it will yeild thisrd /s /q c:\OnlineBecause you forgot to wrap quotes around the command, DOS will assume the space is the end of the command andServices\ is a switch. Edited February 14, 2007 by Gee Link to comment Share on other sites More sharing options...
phkninja Posted February 14, 2007 Share Posted February 14, 2007 (edited) Also should beRD /S /Q "%ProgramFiles%\Online Services\"not RD /S /Q %systemdrive%\Online Services\Unless the folder is actually c:\Online Servicesand not C:/Program Files\Online Services\ as originally stated Edited February 14, 2007 by phkninja Link to comment Share on other sites More sharing options...
Sgt_Strider Posted February 24, 2007 Author Share Posted February 24, 2007 Thanks for the help guys! I have one final set of questions here. How do I remove the sample music and sample pictures folders in the My Music and My Pictures folder with cleanup.cmd? Thanks! Link to comment Share on other sites More sharing options...
iTwins Posted February 24, 2007 Share Posted February 24, 2007 Thanks for the help guys! I have one final set of questions here. How do I remove the sample music and sample pictures folders in the My Music and My Pictures folder with cleanup.cmd? Thanks!heh, are you sure you want to do that!?I believe even after you deleted it, the system re-creates this directory eventually - pointless! Link to comment Share on other sites More sharing options...
Sgt_Strider Posted February 25, 2007 Author Share Posted February 25, 2007 Thanks for the help guys! I have one final set of questions here. How do I remove the sample music and sample pictures folders in the My Music and My Pictures folder with cleanup.cmd? Thanks!heh, are you sure you want to do that!?I believe even after you deleted it, the system re-creates this directory eventually - pointless!If I delete it manually, the folders never return. Link to comment Share on other sites More sharing options...
Sgt_Strider Posted March 15, 2007 Author Share Posted March 15, 2007 bump! Link to comment Share on other sites More sharing options...
nitroshift Posted March 15, 2007 Share Posted March 15, 2007 Basically use the command as stated in the previous posts and give the path to the folders.RD /S /Q "%systemdrive%\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures"RD /S /Q "%systemdrive%\Documents and Settings\All Users\Documents\My Music\Sample Music" Link to comment Share on other sites More sharing options...
Sgt_Strider Posted May 18, 2009 Author Share Posted May 18, 2009 Basically use the command as stated in the previous posts and give the path to the folders.RD /S /Q "%systemdrive%\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures"RD /S /Q "%systemdrive%\Documents and Settings\All Users\Documents\My Music\Sample Music"Sorry for bumping up an old thread, but I just want to let you know that it no longer works under Windows XP SP3. Do you happen to know why it won't work anymore? Link to comment Share on other sites More sharing options...
krose Posted May 19, 2009 Share Posted May 19, 2009 Here is what I use in my cleanup.cmd to remove the shortcuts from my documents and the actual samples from all users. This is with XP SP3.DEL /Q "%userprofile%\My Documents\My Music\Sample Music.lnk"DEL /Q "%userprofile%\My Documents\My Pictures\sample pictures.lnk"RD /S /Q "%AllusersProfile%\Documents\My Pictures\Sample Pictures"RD /S /Q "%allusersprofile%\Documents\My Music\Sample Music"RD /S /Q "%allusersprofile%\Documents\My Music\Sample Playlists" Link to comment Share on other sites More sharing options...
Sgt_Strider Posted May 20, 2009 Author Share Posted May 20, 2009 Here is what I use in my cleanup.cmd to remove the shortcuts from my documents and the actual samples from all users. This is with XP SP3.DEL /Q "%userprofile%\My Documents\My Music\Sample Music.lnk"DEL /Q "%userprofile%\My Documents\My Pictures\sample pictures.lnk"RD /S /Q "%AllusersProfile%\Documents\My Pictures\Sample Pictures"RD /S /Q "%allusersprofile%\Documents\My Music\Sample Music"RD /S /Q "%allusersprofile%\Documents\My Music\Sample Playlists"What's the difference between DEL and RD? I tried to copy and paste the RD commands, but it didn't work. Link to comment Share on other sites More sharing options...
krose Posted May 25, 2009 Share Posted May 25, 2009 RD is the remove directory command to remove an entire directory such as the sample picture folder. The /S switch is required to remove a directory that is not empty, the /Q switch does it silently. DEL is the delete command to delete a single file such as the shortcut to the sample picture folder. When are you running your cleanup.cmd? I run mine with RunOnceEx and it works fine. Link to comment Share on other sites More sharing options...
chyronn Posted August 9, 2010 Share Posted August 9, 2010 hello, apologies for resurrecting an old thread but i searched and this came up which might be suited to my needs.i'd like to know what commands/pathways to delete shortcuts from the start menu of a specific user and or all users.would it be DEL /Q "%userprofile%\start menu\set menu program and defaults.lnk"or DEL /Q "%allusersprofile%\start menu\set menu program and defaults.lnk"and what if i want to delete a shortcut in the start menu/programs menu?would that be? DEL /Q "%allusersprofile%\start menu\programs\shortcut.lnk" 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