ib-shell-verb 0.1.0

A library for handling of custom Windows Shell verbs (actions like `open`) and injecting them.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
' OpenFileInWorkspace
' Description: Given a file path, open its parent folder (or Git root) and show the file in VS Code.
' Version: 240727
' Author: @Chaoses-Ib
' Homepage: https://github.com/Chaoses-Ib/ib-shell

Set WshShell = CreateObject("WScript.Shell")
strVbsPath = WScript.ScriptFullName
strVbsDir = CreateObject("Scripting.FileSystemObject").GetParentFolderName(strVbsPath)
strBatFile = strVbsDir & "\OpenFileInWorkspace.bat"

WshShell.Run chr(34) & strBatFile & chr(34) & " " & chr(34) & WScript.Arguments(0) & chr(34), 0

Set WshShell = Nothing