Archives for: December 2007
12/15/07
Displaying File Information using VBS and the FileSystemObject
While working on a script that enumerates the files in the startup folder, I wanted to list certain information about a file, create time, last access time, last modified time, and the file's attributes. This can be done fairly easily using the Scripting.FileSystemObject. Here is a function that will list the basic information about a file.
12/14/07
Show Shortcut Target Paths with VBS
I was working on a script to
enumerate what files were being executed in the startup folder. To do this, I needed to determine what executables were pointed to from the shortcut (.lnk) files that were in the startup folder. Here is a function that wraps everything up and will return the target path for the shortcut.
Expanding environmental variables using vbs
Recently I was messing around with some registry enumeration scripts to show the paths of executables that were being referenced in the registry. To do this properly, I needed to expand the system variables that were stored in the registry. I figured that there might be some other folks that needed to do the same thing, so here is a little function that will handle it for you.
Scripts
This is somewhere I can post interesting snippets as I come across them. Hopefully some folks out there will find this helpful.
Search
Follow Me:
Categories
- All
- Web Technologies (2)
- PHP (1)
- Windows Scripting (37)
- Batch Scripts (13)
- Wsh Scripts (23)
Archives
- December 2009 (2)
- March 2009 (2)
- February 2009 (3)
- January 2009 (2)
- December 2008 (4)
- November 2008 (1)
- October 2008 (1)
- February 2008 (1)
- December 2007 (3)
- July 2007 (1)
- April 2007 (1)
- February 2007 (2)
- More...
Misc
Who's Online?
- Guest Users: 6




