X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.5 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-SPF: pass (google.com: domain of tianlijian AT gmail DOT 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 AT gmail DOT com designates 10.60.12.101 as permitted sender) smtp.mail=tianlijian AT gmail DOT com; dkim=pass header.i=tianlijian AT gmail DOT com MIME-Version: 1.0 Date: Thu, 23 Feb 2012 19:07:12 +0800 Message-ID: Subject: how to hide the console window. From: tianlijian To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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