delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/03/04/21:10:42

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.1 required=5.0 tests=AWL,BAYES_20,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4D719B8C.9090904@cs.umass.edu>
Date: Fri, 04 Mar 2011 21:10:20 -0500
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Reply-To: moss AT cs DOT umass DOT edu
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.14) Gecko/20110221 Thunderbird/3.1.8
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Windows Shortcut That Runs Cygwin Command
References: <AANLkTi=NA6pjXtjo07GbNSyJQ8h_pGm9BuJEfY2NkWTM AT mail DOT gmail DOT com>
In-Reply-To: <AANLkTi=NA6pjXtjo07GbNSyJQ8h_pGm9BuJEfY2NkWTM@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 3/4/2011 7:38 PM, Panos Katergiathis wrote:
> Hello all. How would i go about creating a shortcut in Windows 7, that
> would run a cygwin-only command along with parameters if required?
> Rsync is the one i wish to run at the moment, but i also have a few
> more in mind like ssh etc.

To run bash (for example) there is a shortcut to c:\cygwin\Cygwin.bat.

The file contains:

@echo off

C:
chdir C:\cygwin\bin

bash --login -i

This should get you started ...  Eliot Moss

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019