I use to always work on Windows and at times it seemed that certain files just didn’t want to go to the recycling bin. For that reason I would always write a JScript which had the following code:
When a file was dragged onto that script, the file would be de-referenced (deleted permanently). A friend recently called me and asked for a similar solution so I decided to post it for everyone:
Download the File & Folder Chomper
The above script works the same way (on Windows only): drag the files and folders onto the script’s icon in order to have all of the permanently deleted. Have fun!!!
Recently, the IT department was under a bit of pressure to to eliminate a Trojan Virus which was replacing folders with applications that had folder icons and hiding the folders in such a way that they couldn’t be hidden by just going to the properties dialog box. Fortunately, one member of our development team was quickly able to find a solution for removing the virus from any infected systems. Unfortunately, we still needed a way to unhide the folders.
The following is an example of how the folder’s properties were setup after the virus wreaked havoc on the shared folders:
I had remembered playing around with the FileSystemObject in JScript and modifying file and folder attributes to achieve the same effect. Therefore, after doing a bit of research, I wrote this JScript to unhide the selected files, folders, and subfolders. This script works by you simply dragging the files and folders over the script. The script doesn’t have to be in the same place as the files and folders. The one requirement that I know about is the fact that you must have administrator rights to the files and folders that you are trying to change back to normal. Please feel free to modify the script as you desire. Have fun! 8)