From 92d6c53da043091982045518c738625116aece0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Thu, 26 May 2016 12:50:06 +0000 Subject: Copy `midipix.sh' and `Create `Midipix mintty shell' shortcut.vbs' into $PREFIX. --- Create `Midipix mintty shell' shortcut.vbs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Create `Midipix mintty shell' shortcut.vbs (limited to 'Create `Midipix mintty shell' shortcut.vbs') diff --git a/Create `Midipix mintty shell' shortcut.vbs b/Create `Midipix mintty shell' shortcut.vbs new file mode 100644 index 00000000..ab0d3bbd --- /dev/null +++ b/Create `Midipix mintty shell' shortcut.vbs @@ -0,0 +1,18 @@ +Set WshShell = CreateObject("WScript.Shell") +LinkPath = WshShell.CurrentDirectory + "\Midipix mintty shell.lnk" +If WScript.Arguments.Count = 0 Then + MinttyPath = "C:\cygwin64\bin\mintty.exe" +Else + MinttyPath = WScript.Arguments(0) +End If + +Set fso = CreateObject("Scripting.FileSystemObject") +If not (fso.FileExists(LinkPath)) Then + Set oMyShortCut = WshShell.CreateShortcut(LinkPath) + oMyShortCut.WindowStyle = 4 + oMyShortcut.IconLocation = MinttyPath + oMyShortCut.TargetPath = MinttyPath + oMyShortCut.Arguments = "-i /Cygwin-Terminal.ico -e sh midipix.sh" + oMyShortCut.WorkingDirectory = WshShell.CurrentDirectory + oMyShortCut.Save +End If -- cgit v1.2.3