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.
currentScriptPath = Replace(WScript.ScriptFullName, WScript.ScriptName, "")
strLogFile = currentScriptPath & "log.txt"
wscript.echo strLogFile
strLogFile = currentScriptPath & "log.txt"
wscript.echo strLogFile
- Add new comment
- 96 reads
VBS Script to export the file properties of all files in a folder and its sub folders
Submitted by webmaster on Thu, 07/01/2010 - 16:44
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
- 250 reads
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.
- Add new comment
- Read more
- 232 reads
