Guest User

Untitled

a guest
Dec 11th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. Set wshShell = CreateObject( "WScript.Shell" )
  2.  
  3. ' get the directory that script resides in
  4. Set fso = CreateObject("Scripting.FileSystemObject")
  5. OctavePath = fso.GetParentFolderName(WScript.ScriptFullName)
  6. msgbox WScript.ScriptFullName
  7. MsgBox OctavePath
  8.  
  9. ' get path as a 8.3 path
  10. Set fo = fso.GetFolder(OctavePath)
  11. OctavePath = fo.ShortPath
  12. MsgBox OctavePath
  13.  
  14. Set fo = Nothing
Add Comment
Please, Sign In to add comment