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
- 90 reads
VBS Script to delete all file over a certain age in a folder and its sub folders
The below script will delete all file in a folder over a certain ago and repeat the task for the folders sub folders
Change the varibles startFolder and OlderThanDate as needed.
- Add new comment
- Read more
- 297 reads
VBS Script to Install a Font
The below script will install a Font, you will need to change the string "path_to_font\font_file_name.ttf" to the location and file name of the font
- Add new comment
- Read more
- 150 reads
VBS Script to disable Adobe Shockwave Auto Apdate
The below script will disable the auto update feature of Adobe Shockwave, I have tested this script on version 11.5 but it should also work on other versions.
- Add new comment
- Read more
- 260 reads
VBS Script to disable Sun Java Auto Apdate
The below script will disable the auto update feature of Sun Java, I have tested is on JRE 6 update 16 but it should also work with other versions.
- Add new comment
- Read more
- 268 reads
VBS Script to disable Adobe Reader 9.x Auto Apdate
The below script will disable the auto update feature of Adobe Reader 9.x and also stop the Adobe Reader Speed Launcher from launching at startup
- Add new comment
- Read more
- 393 reads
Using a VBS Script to Create a Shortcut and a Shorcut to a URL
The below will show you how to use a VBS script to create a standard Windows shortcut and also a URL shortcut to a webpage.
Creating a Standard Windows Shorcut
In the below example script I am simply creating a shortcut to Notepad using the properties .TargetPath and . Description however there are a few other propertiesyou can make use of.
- Add new comment
- Read more
- 738 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
Citrix: Return the VIrtual IP address of the current users Citrix session
For a long time I have been tring to find or write a vbs script that will return the VIrtual IP address of the current users Citrix session.
I have managed to finally find a way of doing it, please comment if you have a better way!!!!!!
The big problem with the script is the user running the script needs to be a Citrix administrator.
I will continue to work on this problem and will post new versions.
- Add new comment
- Read more
- 950 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
