This is the mail archive of the
cygwin
mailing list for the Cygwin project.
how to hide the console window.
- From: tianlijian <tianlijian at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 23 Feb 2012 19:07:12 +0800
- Subject: how to hide the console window.
- 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
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