# HG changeset patch # User mb # Date 1389262839 -3600 # Node ID eb36e1b4a2e13fe0cf90504e571ad4d6c035587d # Parent f659d8fb57a8276481d03bf128c2d7c9b4507902 merge diff -r f659d8fb57a8 -r eb36e1b4a2e1 OpenSecurity/cygwin/Cygwin.vbs --- a/OpenSecurity/cygwin/Cygwin.vbs Thu Jan 09 10:44:42 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,50 +0,0 @@ -Option Explicit - -' ------------------------------------------------------------ -' start a cygwin shell -' -' Autor: Oliver Maurhart, -' -' Copyright (C) 2013 AIT Austrian Institute of Technology -' AIT Austrian Institute of Technology GmbH -' Donau-City-Strasse 1 | 1220 Vienna | Austria -' http://www.ait.ac.at -' ------------------------------------------------------------ - -' ------------------------------------------------------------ -' This starts a cygwin shell within a relocatable cygwin -' folder but without a DOS shell window prior. The idea is -' to do it like in this BAT snippet below: -' -' @echo off -' SET INSTALL_DRIVE=%~d0 -' SET INSTALL_FOLDER=%~p0 -' SET CYGWIN_BIN="%INSTALL_DRIVE%%INSTALL_FOLDER%bin" -' SET CYGWIN_BASH="%INSTALL_DRIVE%%INSTALL_FOLDER%bin\bash" -' %INSTALL_DRIVE% -' chdir "%CYGWIN_BIN%" -' start mintty.exe %CYGWIN_BASH% --login -i -' -' ------------------------------------------------------------ - -' setup the basic objects -Dim cFSO -Dim cShell -Set cShell = CreateObject("WScript.Shell") -Set cFSO = CreateObject("Scripting.FileSystemObject") - -' parse script location and cd into folder -Dim sPath -sPath = Wscript.ScriptFullName -sPath = cFSO.GetAbsolutePathName(sPath) -sPath = cFSO.GetParentFolderName(sPath) -cShell.CurrentDirectory = sPath - -' locations of mintty and bash -Dim sMinTTYPath -Dim sBashPath -sMinTTYPath = """" & sPath & "\bin\mintty" & """" -sBashPath = """" & sPath & "\bin\bash" & """" - -' start a cygwin shell -cShell.Run sMinTTYPath & " " & sBashPath & " --login -i", 1, false