diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-05-26 12:50:06 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-05-26 12:50:06 +0000 |
commit | 92d6c53da043091982045518c738625116aece0c (patch) | |
tree | 4380c5e1f23034fd4ffb156c5514603ea0d6f50d /Create `Midipix mintty shell' shortcut.vbs | |
parent | c688c1004bf3c6df2147bdceb9da5d9a52ba3f3a (diff) | |
download | midipix_build-92d6c53da043091982045518c738625116aece0c.tar.bz2 midipix_build-92d6c53da043091982045518c738625116aece0c.tar.xz |
Copy `midipix.sh' and `Create `Midipix mintty shell' shortcut.vbs' into $PREFIX.
Diffstat (limited to 'Create `Midipix mintty shell' shortcut.vbs')
-rw-r--r-- | Create `Midipix mintty shell' shortcut.vbs | 18 |
1 files changed, 18 insertions, 0 deletions
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
|