devil270975 Posted August 17, 2003 Share Posted August 17, 2003 Hi everyone here is a little bit of code for removing files and shortcuts with ease that can be reused with little editingput this in a cmd scriptfor removing the screensavers except logonECHO.ECHO Removing Screensavers...REN %systemroot%\System32\dllcache\logon.scr logon.oldREN %systemroot%\System32\logon.scr logon.oldfor %%t in (scr) do del "%systemroot%\system32\*.scr"for %%t in (scr) do del "%systemroot%\system32\dllcache\*.scr"REN %systemroot%\System32\dllcache\logon.old logon.scrREN %systemroot%\System32\logon.old logon.scrECHO.for removing all shortcuts on desktopECHO.ECHO Removing Shortcuts from desktop...for %%t in (lnk) do del "%systemdrive%\Documents and Settings\All Users\Desktop\*.lnk"ECHO.all you have to do is replace the file type inside the parenthesis and the file extension at the endCAUTION!!!!!!!!do not experiment with exe inside your windows directory or dll's in system32-IT WILL DELETE THEM ALL use at your own risk, if you are carefull it is very usefull and cuts the margin for error and the amount of typing needed 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