윈도우즈에는 스티커 메모가 있다. 이것과 비할바는 아니지만
코맨드 라인상에서 간단하게 한줄 씩 입력하는 메모 프로그램을 만들어 보았다.
@echo Off
if [%1]==[] (
echo.
echo Usage
echo.
echo memo -s
echo SHOWS memo.txt
echo.
echo memo -f
echo Opens the FOLDER this program is.
echo.
echo memo "Any message you want to add to the memo.txt"
echo Saves your message to the memo.txt
echo.
) else if [%1]==[-s] (
notepad "%~d0%~p0memo.txt"
) else if [%1]==[-f] (
start "" "%~d0%~p0"
) else (
echo %1 >> "%~d0%~p0memo.txt"
)
'Batch file' 카테고리의 다른 글
| DOS 에디터 EDLIN 사용법 (0) | 2020.12.31 |
|---|---|
| Batch 파일을 이용하여 path 프린트하기 (0) | 2020.12.30 |
| Batch file을 이용하여 주어진 텍스트 출력하기 (0) | 2020.12.21 |
| 열려진 폴더를 한꺼번에 닫아주는 VBS 프로그램 (0) | 2020.12.02 |
| 파일을 확장명에 따라서 이동하는 Batch File (0) | 2020.11.30 |
댓글