From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9895 invoked by alias); 23 Feb 2012 16:01:20 -0000 Received: (qmail 9882 invoked by uid 22791); 23 Feb 2012 16:01:18 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-tul01m020-f171.google.com (HELO mail-tul01m020-f171.google.com) (209.85.214.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 23 Feb 2012 16:01:02 +0000 Received: by obcuy19 with SMTP id uy19so2113875obc.2 for ; Thu, 23 Feb 2012 08:01:01 -0800 (PST) Received-SPF: pass (google.com: domain of tianlijian@gmail.com designates 10.60.12.101 as permitted sender) client-ip=10.60.12.101; Authentication-Results: mr.google.com; spf=pass (google.com: domain of tianlijian@gmail.com designates 10.60.12.101 as permitted sender) smtp.mail=tianlijian@gmail.com; dkim=pass header.i=tianlijian@gmail.com Received: from mr.google.com ([10.60.12.101]) by 10.60.12.101 with SMTP id x5mr898360oeb.33.1330012861889 (num_hops = 1); Thu, 23 Feb 2012 08:01:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.60.12.101 with SMTP id x5mr753453oeb.33.1330012861805; Thu, 23 Feb 2012 08:01:01 -0800 (PST) Received: by 10.182.11.102 with HTTP; Thu, 23 Feb 2012 08:01:01 -0800 (PST) In-Reply-To: References: Date: Thu, 23 Feb 2012 16:01:00 -0000 Message-ID: Subject: Re: how to hide the console window. From: tianlijian To: cygwin@cygwin.com Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-02/txt/msg00689.txt.bz2 hi > how to hide the console window. > > the bat code is: > > @echo off > > > > REM batch file directory > set BATCH_FILE_DIR=%~dp0 > > set PATH=/usr/sbin;/bin;/usr/bin;%PATH% > REM "%BATCH_FILE_DIR%bin\bash.exe" -c "/usr/sbin/sshd" > start "sshd by wei" "%BATCH_FILE_DIR%bin\bash.exe" -c "/usr/sbin/sshd &" > > > > echo success... > REM ping -n 3 127.0.0.1 >NUL -- 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