Sponsored Links

Login Form






Lost Password?

Syndicate

Home
Delete Recent Items PDF Print E-mail
User Rating: / 2
PoorBest 
Written by LazyNetworkAdmin   

Here is just a script that I came across that deletes items in your recent folder. Simple yes, but the goal is to make things easier on network admins.

Copy and paste the text below into notepad and save as DelRecent.vbs

 

----------COPY EVERYTHING BELOW THIS LINE----------

Dim Act    : Set Act = CreateObject("Wscript.shell")
Dim Fso    : Set Fso = CreateObject("Scripting.FileSystemObject")
Dim User   : User = Act.ExpandEnvironmentStrings("%userProfile%\recent\")
Dim Folder : Set Folder = Fso.GetFolder(User)
Dim Files  : Set Files = Folder.Files
Dim objFile
  For Each objFile in Files
   Fso.DeleteFile(objFile.Path), True
  Next
   Act.Popup "Completed Script",5,"Finished",0 + 32 + 0

----------COPY EVERYTHING ABOVE THIS LINE----------

 If you don't want the popup at the end, just comment out the last line using a '

The user who posted this script goes under the name gunsmokingman

THIS INFORMATION IS PROVIDED "AS IS" WITH NO WARRANTIES EXPRESSED OR IMPLIED.

Comments
Add NewSearch
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
 
Security Image
Please input the anti-spam code that you can read in the image.

Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved.

 
Tag it:
Delicious
Furl it!
Spurl
digg
YahooMyWeb
< Prev   Next >
 

Google Search

Google