summaryrefslogtreecommitdiffhomepage
path: root/etc/midipix_shortcut.vbs
diff options
context:
space:
mode:
Diffstat (limited to 'etc/midipix_shortcut.vbs')
-rw-r--r--etc/midipix_shortcut.vbs14
1 files changed, 14 insertions, 0 deletions
diff --git a/etc/midipix_shortcut.vbs b/etc/midipix_shortcut.vbs
new file mode 100644
index 00000000..ce8e10d4
--- /dev/null
+++ b/etc/midipix_shortcut.vbs
@@ -0,0 +1,14 @@
+Set WshShell = CreateObject("WScript.Shell")
+If WScript.Arguments.Count = 0 Then
+ CygwinPath = "C:\cygwin64"
+Else
+ CygwinPath = WScript.Arguments(0)
+End If
+Set fso = CreateObject("Scripting.FileSystemObject")
+Set oMyShortCut = WshShell.CreateShortcut(WshShell.CurrentDirectory + "\Midipix shell.lnk")
+oMyShortCut.Arguments = "midipix.sh"
+oMyShortcut.IconLocation = CygwinPath + "\Cygwin-Terminal.ico"
+oMyShortCut.TargetPath = CygwinPath + "\bin\sh.exe"
+oMyShortCut.WindowStyle = 4
+oMyShortCut.WorkingDirectory = WshShell.CurrentDirectory
+oMyShortCut.Save