Jump to content

A little code i hope helps


Recommended Posts

Hi everyone here is a little bit of code for removing files and shortcuts with ease that can be reused with little editing

put this in a cmd script

for removing the screensavers except logon

ECHO.
ECHO Removing Screensavers...
REN %systemroot%\System32\dllcache\logon.scr logon.old
REN %systemroot%\System32\logon.scr logon.old
for %%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.scr
REN %systemroot%\System32\logon.old logon.scr
ECHO.

for removing all shortcuts on desktop

ECHO.
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 end

CAUTION!!!!!!!!

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


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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...