delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/23/06:07:38

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: <CAGto_sGsWUK85skhqRkkgVwfwotVWPycw7B-oNM+r7nE+==RbQ@mail.gmail.com>
Subject: how to hide the console window.
From: tianlijian <tianlijian AT gmail DOT com>
To: cygwin AT cygwin DOT com
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

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

- Raw text -


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