@echo off
REM 현재 날짜를 YYYYMMDD 형식으로 가져옵니다.
set YYYYMMDD=%date:~0,4%%date:~5,2%%date:~8,2%
REM 폴더 경로 설정
set folderPath=D:\Daily\%YYYYMMDD%
REM 폴더가 존재하는지 확인
if not exist "%folderPath%" (
mkdir "%folderPath%"
echo %folderPath% 폴더를 생성했습니다.
) else (
echo %folderPath% 폴더가 이미 존재합니다.
)
REM dailynote.txt 파일 경로 설정
set filePath=%folderPath%\%YYYYMMDD%_dailynote.txt
REM 파일이 존재하지 않으면 생성
if not exist "%filePath%" (
echo. > "%filePath%"
echo %filePath% 파일을 생성했습니다.
) else (
echo %filePath% 파일이 이미 존재합니다.
)
REM 끝
exit