Visual Basic Script to Open File


This visual basic script can be used to open any file on your PC. Just enter the file path in space shown in blue below:

Set WshShell = CreateObject("WScript.Shell")

WshShell.Run """\\pbwt.local\nyc01\UserShares\MyHome\osheas\Documents\B_Obama_2013.pdf"""

Put this script in a text file, save, and then change the extension to 'vbs' and double-click it. The file will open.