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 to retrieve the Path to the Current Users Profile

The below basic script is an example of how to retrieve the path to the current users local profile.

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