VBS Script to get the location of the current script
Here is just a quick example of how to get the location of the currently running script.
strLogFile = currentScriptPath & "log.txt"
wscript.echo strLogFile
- Add new comment
- 89 reads
VBS Script to export the file properties of all files in a folder and its sub folders
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
- Add new comment
- Read more
- 239 reads
VBS Script: Enumerating Drive Properties Using FSO
The below script is a sample of how to retrieve a drives properties via a VBS script
- Add new comment
- Read more
- 295 reads
Compare a Text Document against a List of Words and Highlight the Results
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
- Add new comment
- Read more
- 345 reads
Printing all Images in a Folder
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.
- Read more
- 338 reads
