This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: how to hide the console window.
- From: tianlijian <tianlijian at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 24 Feb 2012 00:01:01 +0800
- Subject: Re: 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
- References: <CAGto_sGsWUK85skhqRkkgVwfwotVWPycw7B-oNM+r7nE+==RbQ@mail.gmail.com>
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