Jump to content

Script Help


Recommended Posts

Can someone please help me with this?

Say I have a folder named "Stupid Folder" on my D drive.

Can you show me how me to change this to that?

cd %UserProfile%

rd /s/q "Local Settings"\"Temporary Internet Files"

This was once written for me by Tony Klein when I had a hard to delete file in a folder, and it worked. But I don't know how to change the path to "Stupid File" on D drive.

Thanks.

Tony's full explaination...

-------------------------------------------------------------------------------------------

Make a batch file that you have executed by having it run from the

HKLM\RunOnce key.

Paste the following into a blank text document:

cd %UserProfile%

rd /s/q "Local Settings"\"Temporary Internet Files"

Save for example in C: as Clean.cmd.

--------------------------------------------------------------------------------------------

Open Regedit, navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\

Runonce

Rightclick somewhere in the RIGHT hand pane, and choose new > String Value

Doubleclick it, call it DelTemps and hit Enter.

Doubleclick it to bring up the Edit box, and type this in the Edit data: C:\Clean.cmd.

Click OK.

Of course make sure the path to the location where you saved the batch file is correct.

Reboot, and your TIF folder will be deleted and recreated automatically once.

Link to comment
Share on other sites


I use a similar method in my Cache Killer which deletes all those folder's then re-create's

1 example

rd /s/q "Local Settings"\"Temporary Internet Files"

md "Local Settings"\"Temporary Internet Files"

Strange but it work's good.

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