@echo off
setlocal
:: コピー元とコピー先のディレクトリを設定
set SOURCE=C:\TestSource
set DEST=C:\TestBackup
:: コピー先フォルダがなければ作成
if not exist "%DEST%" (
echo Creating destination folder...
mkdir "%DEST%"
)
:: 特定のものをコピー(例:sample.txt)
echo Copying specific files...
ropy "%SOURCE%" "%DEST%" sample.txt
echo cpy complete.
pause
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme