우선 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
" 분류의 다른 글
|





댓글을 달아 주세요.