Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Set wshShell = CreateObject( "WScript.Shell" )
- ' get the directory that script resides in
- Set fso = CreateObject("Scripting.FileSystemObject")
- OctavePath = fso.GetParentFolderName(WScript.ScriptFullName)
- msgbox WScript.ScriptFullName
- MsgBox OctavePath
- ' get path as a 8.3 path
- Set fo = fso.GetFolder(OctavePath)
- OctavePath = fo.ShortPath
- MsgBox OctavePath
- Set fo = Nothing
Add Comment
Please, Sign In to add comment