JScript – Unhide Selected Files, Folders, & Subfolders

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)

Leave a Reply

Your email address will not be published. Required fields are marked *

six × = 36

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="">