성태의 닷넷 이야기
홈 주인
모아 놓은 자료
프로그래밍
질문/답변
사용자 관리
사용자
메뉴
아티클
외부 아티클
유용한 코드
온라인 기능
MathJax 입력기
최근 덧글
[정성태] Get Started with Milvus Vector DB i...
[정성태] cyberark/PipeViewer - A tool that...
[정성태] WinForms in a 64-Bit world – our st...
[정성태] 예제에서 SELECT_SQL도 내부적으로는 SqlCommand/...
[victor] SELECT_LINQ SELECT_SQL 같은 쿼리인...
[victor] 답변 갑사합니다. 예외(Exception)가 났습니다. ...
[정성태] 일단, 위의 방식대로 하면 예외(Exception) 없이 잘 동...
[정성태] Windows 10 (버전 1809)에 이런 기능이 ^^ 추가되...
[정성태] pde windbg extension ; https://lea...
[정성태] // GetEnumerator extensions for Ran...
글쓰기
제목
이름
암호
전자우편
HTML
홈페이지
유형
제니퍼 .NET
닷넷
COM 개체 관련
스크립트
VC++
VS.NET IDE
Windows
Team Foundation Server
디버깅 기술
오류 유형
개발 환경 구성
웹
기타
Linux
Java
DDK
Math
Phone
Graphics
사물인터넷
부모글 보이기/감추기
내용
<div style='display: inline'> <h1 style='font-family: Malgun Gothic, Consolas; font-size: 20pt; color: #006699; text-align: center; font-weight: bold'>전용 "Command Prompt for ..." 단축 아이콘 만들기</h1> <p> 예를 들어, 비주얼 스튜디오를 설치하면 "Developer Command Prompt for VS 2019"라는 단축 아이콘이 생깁니다. 그래서 해당 아이콘을 실행하면 편리하게 비주얼 스튜디오의 개발 환경이 설치된 경로가 잡혀 구성되는데, 이로 인해 관련 명령어를 쉽게 실행할 수가 있습니다. 일종의 "전용 명령행" 환경인 셈입니다.<br /> <br /> 당연히 우리도 원하는 환경에 대해 "Command Prompt for ..."를 구성할 수 있습니다.<br /> <br /> 일례로, mysql을 zip 파일로 설치한 경우를 볼까요?<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > .NET 개발자가 처음 해보는 PHP + MySQL 연동 ; <a target='tab' href='https://www.sysnet.pe.kr/2/0/1058#mysql_zip'>https://www.sysnet.pe.kr/2/0/1058#mysql_zip</a> </pre> <br /> 우선 mysql을 f:\mysql 경로에 압축을 풀었다고 가정해 보겠습니다. 그럼, 아무 경로에나(이 글에서는 d:\settings) mysql_cmd.bat 파일을 만들고 다음과 같이 배치 명령어를 구성합니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > @ECHO OFF if '%MYSQL_BATCH_EVER%' == '1' goto EndOfBatch SET MYSQL_BATCH_EVER=1 <span style='color: blue; font-weight: bold'>SET PATH=f:\mysql\bin;%PATH%</span> echo ********************************************************************** echo ** MySQL Developer Command Prompt echo ********************************************************************** :EndOfBatch </pre> <br /> 이제 바탕화면에 단축 아이콘을 만들고, 다음과 같이 "Target"과 "Start in:" 정도만 여러분의 환경에 맞게 변경해 줍니다.<br /> <br /> <img alt='cmd_for_1.png' src='/SysWebRes/bbs/cmd_for_1.png' /><br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > Target: <span style='color: blue; font-weight: bold'>%comspec% /k "d:\settings\mysql_cmd.bat"</span> Start in: <span style='color: blue; font-weight: bold'>f:\mysql</span> </pre> <br /> 끝입니다. ^^ 이제 저 아이콘을 더블 클릭할 때마다 다음과 같이 MySQL을 위한 전용 명령행 창이 하나 뜨는 것입니다.<br /> <br /> <img alt='cmd_for_2.png' src='/SysWebRes/bbs/cmd_for_2.png' /><br /> <br /> 이런 식으로, "Command Prompt for Python3", "Command Prompty for Spring" 등의 명령행 단축키를 배치 파일과 함께 만들어 두면 좀 더 편리한 개발 환경을 구성할 수 있을 것입니다. ^^<br /> </p><br /> <br /><hr /><span style='color: Maroon'>[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]</span> </div>
첨부파일
스팸 방지용 인증 번호
1855
(왼쪽의 숫자를 입력해야 합니다.)