Question

Locked

Automatic file removal

By mmauer ·
Hi Every one

Im looking for a application that removes files or applications automatic. Like whne antivirus finds a file it delets it automatic.

In my case its users and thier crap applications that i want them preventing from using within the network. So when the program detects it on their USB or home drive it delets it or move it to somewhere they dont have access.

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
Thread display: Collapse - | Expand +

All Answers

Collapse -

Just a few that you can try out..

start -> run -> cmd -> regedit -> search for USB -> set write/read value to 0 from 1 or from blank which reads "object is set USB to write mode."

http://diaryproducts.net/about/operating_systems/windows/disable_usb_sticks

http://support.microsoft.com/kb/813878

http://www.intelliadmin.com/blog/2007/01/disable-usb-flash-drives.html

Please post back if you have any more problems or questions.

Collapse -

They still need to access USB

by mmauer In reply to Just a few that you can t ...

I wish I could ban USB sticks would save me a lot of time. Thats why i want some sort of program control system where I can deny them from applications.

Collapse -

Some codes to try out or some software of which is below.

'-------------- CleanUp.vbs --------------------
Option Explicit
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
DeleteFiles fso.GetFolder("C:\Test") '<----- Change this folder name to match with your case.
Sub DeleteFiles(srcFolder)
Dim srcFile
If srcFolder.Files.Count = 0 Then
Wscript.Echo "No File to Delete"
Exit Sub
End If
For Each srcFile in srcFolder.Files
If DateDiff("d", Now, srcFile.DateCreated) < -7 Then
fso.DeleteFile srcFile, True
End If
Next
Wscript.Echo "Files Deleted successful"
End Sub
'-----------------------------------------------
To delete files that are more than 2 hours old:

Code:
...
For Each srcFile in srcFolder.Files
If DateDiff("h", Now, srcFile.DateCreated) < -2 Then
fso.DeleteFile srcFile, True
End If
Next
...

https://secure.reg.net/Product.asp?ID=11557&r=y&sessID=%7B213AEEF4-9BC0-4899-A682-8F3F5ACACF49%7D&TemplateID=-1
http://www.watchdirectory.net/wdhelp/plugins/wdopAutoDelete.html?src=godelete

Please post back if you have any more problems or questions.

Back to Hardware Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums