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 delete all file over a certain age in a folder and its sub folders Files attached

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.

VBS Script to Install a Font Files attached

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

  

VBS Script to disable Adobe Shockwave Auto Apdate Files attached

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.

VBS Script to disable Sun Java Auto Apdate Files attached

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.

VBS Script to disable Adobe Reader 9.x Auto Apdate Files attached

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

Using a VBS Script to Create a Shortcut and a Shorcut to a URL Files attached

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.

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.

Citrix: Return the VIrtual IP address of the current users Citrix session Files attached

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.

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!