[Windows XP] 작업 표시줄에 남는 시작 프로그램을 숨겨진 창으로 실행하기
2005/08/06 19:41
MoinMoin Desktop Edition이나 기타 서버용으로 사용되는 프로그램 중 Windows의 서비스로 기동되지 않고 명령 프롬프트를 이용해 예전 도스 형태로 실행되는 것들이 있다. 보통 이런 프로그램들이 Windows 시작 시 매번 필요하다면 시작 프로그램에 바로 가기를 만들어 놓는 것이 보통이지만 문제는 작업 표시줄에 항상 명령 프롬프트가 상주해 있다는 것이다. 이를 숨겨진 창으로 실행하면서 Windows 시작 시 매번 실행되게 하려면 다음과 같은 방법을 이용한다.
우선 Shell Execute라는 프로그램을 다운로드한다.(다운로드
) 압축을 풀고 ShellExecute.exe 파일을 Windows 폴더에 복사한다. [시작]>[실행(R)...]에서 "열기(O):"에 regedit를 입력하고 [확인]을 눌러 레지스트리 편집기를 실행한다. 다음 항목으로 이동한다.
내 컴퓨터HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun
오른쪽 패널에서 마우스 오른쪽 버튼을 클릭하여 [새로 만들기(N)]>[문자열 값(S)]을 클릭하고 이름 항목에는 실행하고자 하는 프로그램의 적당한 이름을 적어주고 데이터 항목에는 다음과 같이 입력한다.
ShellExecute /f:C:myapp.exe /r:hidden
여기서 C:myapp.exe 부분을 실행하고자 하는 프로그램의 전체 경로로 지정해 주면 된다.
자세한 사용 형식은 위의 압축 파일에 첨부된 다음과 같은 설명을 참고한다.
The syntax of this command is:
ShellExecute.exe /F:file [/P:parameters /W:workingdir /R:runstyle /A:action]
/F: Specifies the file to execute.
/P: Defines the command-line parameters to pass to the executable.
/W: Defines the working directory the executable starts with.
/R: Defines the window state, default is normal. (/r:Min|Max|Hidden).
/A: Defines the action to take, default is Open (Print, Explore, etc.)
Examples:
ShellExecute.exe /f:D:Setup.exe /p:-S -SMS /r:hidden
ShellExecute.exe /f:C:Boot.ini /a:print
An argument of /? displays this syntax and returns 1.
A successful completion will return 0.
이후 레지스트리 편집기를 닫고 시스템을 재시작한다.
우선 Shell Execute라는 프로그램을 다운로드한다.(다운로드
) 압축을 풀고 ShellExecute.exe 파일을 Windows 폴더에 복사한다. [시작]>[실행(R)...]에서 "열기(O):"에 regedit를 입력하고 [확인]을 눌러 레지스트리 편집기를 실행한다. 다음 항목으로 이동한다.내 컴퓨터HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun
오른쪽 패널에서 마우스 오른쪽 버튼을 클릭하여 [새로 만들기(N)]>[문자열 값(S)]을 클릭하고 이름 항목에는 실행하고자 하는 프로그램의 적당한 이름을 적어주고 데이터 항목에는 다음과 같이 입력한다.
ShellExecute /f:C:myapp.exe /r:hidden
여기서 C:myapp.exe 부분을 실행하고자 하는 프로그램의 전체 경로로 지정해 주면 된다.
자세한 사용 형식은 위의 압축 파일에 첨부된 다음과 같은 설명을 참고한다.
The syntax of this command is:
ShellExecute.exe /F:file [/P:parameters /W:workingdir /R:runstyle /A:action]
/F: Specifies the file to execute.
/P: Defines the command-line parameters to pass to the executable.
/W: Defines the working directory the executable starts with.
/R: Defines the window state, default is normal. (/r:Min|Max|Hidden).
/A: Defines the action to take, default is Open (Print, Explore, etc.)
Examples:
ShellExecute.exe /f:D:Setup.exe /p:-S -SMS /r:hidden
ShellExecute.exe /f:C:Boot.ini /a:print
An argument of /? displays this syntax and returns 1.
A successful completion will return 0.
이후 레지스트리 편집기를 닫고 시스템을 재시작한다.
"Windows" 분류의 다른 글
| Windows XP Service Pack 3 (SP3) v.5508 설치 완료 (0) | 2008/03/26 |
| PC를 USB 메모리나 디카, 아이팟에 넣고 다니기 (0) | 2007/10/17 |
| 지문 인식으로 로그인이 되지 않을 때 (0) | 2006/07/06 |
| Windows 7 Build 6801 정품 인증 완료 (5) | 2008/11/13 |
| Windows XP Service Pack 3 (SP3) 정식 한글판(v.5512) 설치 완료 (0) | 2008/04/24 |
| 이 저작물은 크리에이티브 커먼즈 코리아 저작자 표시-비영리-변경 금지 2.0 대한민국 라이선스에 따라 이용하실 수 있습니다. |
Trackback
Trackback Address: http://pakcw.cafe24.com/tc/trackback/21



Comments