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

Reply via email to