gunsmokingman Posted June 10, 2005 Share Posted June 10, 2005 This is how my Cleanup.cmd file looks like@echo offRD /S /Q \"%systemdrive%\Documents and Settings\Administrator\Favorites\LinksRD /S /Q \"%systemdrive%\Documents and Settings\Administrator\Favorites\FavoritesRD /S /Q %systemdrive%\driversdel /f /q %systemdrive%\cleanup.cmdHere is one I corrected for youIt was missing some stuff.You Need To Have " These At The Begging And End"Changed The Cmd Screen To Be SmallerChange The Background To WhiteChange The Text To Dark BlueAdded A Title@echo offCLSMode 55,5Color F1Title Ua Clean UpRD /S /Q "%systemdrive%\Documents and Settings\Administrator\Favorites\Links"RD /S /Q "%systemdrive%\Documents and Settings\Administrator\Favorites\Favorites"RD /S /Q %systemdrive%\driversdel /f /q %systemdrive%\cleanup.cmd Link to comment Share on other sites More sharing options...
Sgt_Strider Posted June 10, 2005 Author Share Posted June 10, 2005 Are you joking or what? How will changing the colours fix my problem? Link to comment Share on other sites More sharing options...
gunsmokingman Posted June 10, 2005 Share Posted June 10, 2005 Changing colors is for apperance only or did you not know that.It just to make it look better than the standard black and white.If it not to hard you could take out this line Color F1 but that might require some thinking on your part.I am just in the habbit of adding it to my Cmd scripts. Link to comment Share on other sites More sharing options...
Sgt_Strider Posted June 10, 2005 Author Share Posted June 10, 2005 Changing colors is for apperance only or did you not know that.It just to make it look better than the standard black and white.If it not to hard you could take out this line Color F1 but that might require some thinking on your part.I am just in the habbit of adding it to my Cmd scripts.<{POST_SNAPBACK}>Not that I don't appreciate that, but my problem is not with asthetics right now. I'm trying to get my script working. Colours are the last thing that I need to worry about Link to comment Share on other sites More sharing options...
Yzöwl Posted June 10, 2005 Share Posted June 10, 2005 @ Sgt_StriderThe colourful reply from gunsmokingman has the correct syntax!Here is mine in monochrome format@echo offrd /s/q "%UserProfile%\Favorites\Links"rd /s/q "%UserProfile%\Favorites\Favorites"rd /s/q %systemdrive%\driversdel %0Hope this helps! Link to comment Share on other sites More sharing options...
Sgt_Strider Posted June 10, 2005 Author Share Posted June 10, 2005 @ Sgt_StriderThe colourful reply from gunsmokingman has the correct syntax!Here is mine in monochrome format@echo offrd /s/q "%UserProfile%\Favorites\Links"rd /s/q "%UserProfile%\Favorites\Favorites"rd /s/q %systemdrive%\driversdel %0Hope this helps!<{POST_SNAPBACK}>I see! I apologize if I seemed rude at all in my post.I copied and paste your syntax into my cleanup.cmd and it doesn't work. The favourites and link folder appears under the favourites tab in IE. I honestly don't know what is going on and I am becoming very frustrated. Link to comment Share on other sites More sharing options...
gunsmokingman Posted June 10, 2005 Share Posted June 10, 2005 It might have to do with the desktop top not being loaded up when the script runsthis is only a guess.Since this is a cleanup it might be better to do the install make sure the desktop isloaded up, reboot have the cleanup.cmd start after that reboot.Hope this helps. Link to comment Share on other sites More sharing options...
Sgt_Strider Posted June 11, 2005 Author Share Posted June 11, 2005 Would you care to explain this with more specific instructions? Link to comment Share on other sites More sharing options...
Sgt_Strider Posted June 12, 2005 Author Share Posted June 12, 2005 bump Link to comment Share on other sites More sharing options...
Sgt_Strider Posted June 13, 2005 Author Share Posted June 13, 2005 bump Link to comment Share on other sites More sharing options...
Alanoll Posted June 13, 2005 Share Posted June 13, 2005 stop bumping your thread!It's annoying.the lines that they gave you are not hard to figure out. The only tough one MIGHT be the del %0 which is deleting the current directory.Did you happen to think that maybe you have the paths screwed up, or that the files themselves don't get created untill the desktop loads? Link to comment Share on other sites More sharing options...
Sgt_Strider Posted June 15, 2005 Author Share Posted June 15, 2005 stop bumping your thread!It's annoying.the lines that they gave you are not hard to figure out. The only tough one MIGHT be the del %0 which is deleting the current directory.Did you happen to think that maybe you have the paths screwed up, or that the files themselves don't get created untill the desktop loads?<{POST_SNAPBACK}>To you it may not be hard, but to me it's like learning calculus. I've tried it again and again and I still can't get it to work. Yes it may be annoying to you, but if I don't bump it now, how am I going to get any answers? Link to comment Share on other sites More sharing options...
Yzöwl Posted June 15, 2005 Share Posted June 15, 2005 (edited) Can you post your current batch file,explain when you are running it, where you are running it from, (with example).Also where does the favorites sub-folder inside the favorites folder come from?<Edit>Note - the del %0 deletes the currently running batch file not the current directory</Edit> Edited June 15, 2005 by Yzöwl Link to comment Share on other sites More sharing options...
Sgt_Strider Posted June 17, 2005 Author Share Posted June 17, 2005 Can you post your current batch file,explain when you are running it, where you are running it from, (with example).Also where does the favorites sub-folder inside the favorites folder come from?<Edit>Note - the del %0 deletes the currently running batch file not the current directory</Edit><{POST_SNAPBACK}>This is how my RunOnceEx.cmd file@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY%\001 /VE /D "Removing Items" /fREG ADD %KEY%\001 /V 1 /D "%systemdrive%\cleanup.cmd" /fThis is how my Cleanup.cmd file looks like:@echo offRD /S /Q "%systemdrive%\Documents and Settings\Administrator\Favorites\Links"RD /S /Q "%systemdrive%\Documents and Settings\Administrator\Favorites\Favorites"RD /S /Q %systemdrive%\Driversdel /f /q %systemdrive%\Cleanup.cmdThe drivers within C:\ is deleted, but the favourites and links folder still appears. I think it actually does delete those folders, but maybe after a restart, Windows reinstall those folders? Is something missing? Am I not understanding this properly? Link to comment Share on other sites More sharing options...
BrandonS_Mil Posted June 17, 2005 Share Posted June 17, 2005 OK,OK,OKI think i understand your problem....When your command "delete favorites" runs there is no admin folder yet. but your code will work if your time it correctly...You have to wait until after your desktop profile is created. If you change the code to delete the default user "favorites" then no account with get those folders, it is all up to you...... 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