johnmahugu

vbs reative path

Mar 30th, 2015
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. Set WshShell = WScript.CreateObject("WScript.Shell")
  2. currentDirectory = left(WScript.ScriptFullName,(Len(WScript.ScriptFullName))-(len(WScript.ScriptName)))
  3. Return = WshShell.Run("iexplore.exe -k file://" & currentDirectory & "website\index.html", 1)
Advertisement
Add Comment
Please, Sign In to add comment