![]() Loading |
| VBScript |
| JavaScript |
| Powershell |
Search Options: Determine the Path to the Folder Where a Script is Running
|
||
|
Set objShell = CreateObject("Wscript.Shell")
strPath = Wscript.ScriptFullName Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.GetFile(strPath) strFolder = objFSO.GetParentFolderName(objFile) strPath = "explorer.exe /e," & strFolder objShell.Run strPath | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: | ||