VBS Script to get the location of the current script Files attached

Here is just a quick example of how to get the location of the currently running script.

 

 

currentScriptPath = Replace(WScript.ScriptFullName, WScript.ScriptName, "")

strLogFile = currentScriptPath & "log.txt"

wscript.echo strLogFile

VBS Script to export the file properties of all files in a folder and its sub folders Files attached

The below scripts allows you to select a folder and generate a CSV report detailing the below file properties of all of the file in that folder and the folders sub folders.

 

  • Path
  • Name
  • Size
  • File Type
  • Date Created
  • Date Last Access
  • Date Last Modified

How to use:

1) Download the attached script or copy and save the below as something like report_file_properties.vbs

2) Run the script

VBS Script: Enumerating Drive Properties Using FSO Files attached

The below script is a sample of how to retrieve a drives properties via a VBS script

 

 

Compare a Text Document against a List of Words and Highlight the Results Files attached

This script will allow you to browse to a text document and find all of the words that exist in another dictionary text file.

If any matches are found an html report is created showing the matches and highlighting the matches in the scanned file.

An example of the report can be found here.

The dictionary text file must contain a list of words, with each word being on a new line also the dictionary.txt file must in the same directory as the script 

Printing all Images in a Folder Files attached

Here is just a little Visual Basic script I had to put together the other day. The whole thing or parts may be useful to people so I thought I would post it.

The script looks at each file in a specified folder and checks if it is a "Tiff image", if it is then an application is called to print the file and then the file is moved so another folder.

The script could easily be adapted for other file types or different tasks other than printing.

Design by
ThemeShark.com - Drupal Themes with Bite!
Drupal Themes
with bite!