0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

memo

Last updated at Posted at 2025-04-09
@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


0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?