検索
ホームページコンピューターのチュートリアルコンピュータ知識[修正] USBドライブが接続されたときにファイルを自動的にコピーする方法は? - ミニトール

[修正] USBドライブが接続されたときにファイルを自動的にコピーする方法は? - ミニトール

How to auto copy USB files silently without notifications on Windows 10/11? If you need to do that, this post from MiniTool Website will help you automatically copy files when USB files connected in detail. Without wasting more time, let’s jump into it right now!

Some of you are looking for a way to copy the files automatically when USB drive plugged in your computer. Don’t worry, this idea seems difficult to realize but we still find a solution for you.

How to Automatically Copy File When USB Drive Connected toYour PC?

To automatically copy file when USB drive connected to your PC, you need to automatically back up files with autorun.inf and .bat file. Here’s how to do it:

Step 1. Create a notepad on your USB flash drive > copy & paste the following content to it and click on File > Save As > change the file name to Autorun.inf > set file type to all files.

[autorun]

icon=drive.ico

open=launch.bat

action=Click ok to Run game for Windows

shell\open\command=launch.bat

save this file

Step 2. Create a notepad file with the following contents on your USB flash dive> click on File > Save As > rename it to file.bat > change file type to all types. You can replace picture, videos, Favorites according to your needs.

@echo off

:: variables

/min

SET odrive=%odrive:~0,2%

set backupcmd=xcopy /s /c /d /e /h /i /r /y

echo off

%backupcmd% “%USERPROFILE%\pictures” “%drive%\all\My pics”

%backupcmd% “%USERPROFILE%\Favorites” “%drive%\all\Favorites”

%backupcmd% “%USERPROFILE%\videos” “%drive%\all\vids”

@echo off

cls

Step 3. Similarly, you can create a notepad file on USB drive named invisible.vbs with the following content. This operation is to create a VB Script to batch file as invisible.

CreateObject(“Wscript.Shell”).Run “””” & WScript.Arguments(0) & “”””, 0, False

Step 4. To make a batch file for running VB Script and file.bat, you need to create a notepad file named launch.bat with the following content:

wscript.exe \invisible.vbs file.bat

Step 5. At last, create a folder in the root of USB flash drive named all. Save all the files in the folder and make it hidden. Click on file.bat to test if the batch file works for automatically copy files when USB drive connected to your PC.

Suggestion: Back up Your Files Regularly with MiniTool ShadowMaker

After knowing how to make a USB drive copy files automatically, we recommend an easier way to create an automatic backup – backing up with MiniTool ShadowMaker. This Windows backup software is designed to back up files, folders, partitions, systems, and disks on Windows machines. With it, you can set to back up your task daily, weekly, monthly, or on event. Here’s how to create an automatic backup with ease:

Step 1. Launch MiniTool ShadowMaker to get a 30-day free trial.

Step 2. In the Backup page, choose the file you want to make a copy by hitting SOURCE > Folders and Files. In DESTINATION, select a storage path for your backup task.

hit Folders and Files

Step 3. Click on Back Up Now to start the process or delay the task by hitting Back Up Later. Go to Options > toggle on Schedule Settings manually > set a specific point of a day (s) in a day, week, or month.

create a scheduled backup

Final Words

This post illustrates how to automatically copy files when USB drive connected to your PC via bache file and another easy way to back up your data on a regularly basis. Sincerely they are helpful to you. Appreciate your time!

以上が[修正] USBドライブが接続されたときにファイルを自動的にコピーする方法は? - ミニトールの詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。

声明
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。
「このヴァンガードのビルドはコンプライアンスから外れている」エラーを修正-Minitool「このヴァンガードのビルドはコンプライアンスから外れている」エラーを修正-MinitoolApr 15, 2025 am 12:50 AM

Windows 11でValorantを起動しようとする際に、「Vanguardのこのビルドはコンプライアンスから外れている」問題に遭遇する可能性があります。エラーメッセージが表示されるのはなぜですか?エラーメッセージを取り除く方法は? PHP.CNからのこの投稿に詳細が記載されています。

Windows 10/11にRTX 4050ドライバーをダウンロードする方法は?Windows 10/11にRTX 4050ドライバーをダウンロードする方法は?Apr 15, 2025 am 12:49 AM

nvidia geforce rtx 40シリーズGPUはあなたにとって新しいものではないかもしれません。他のトップグラフィックスカードと比較して、あなたの多くは、その許容可能な価格でミッドエンドのメインストリームRTX 4050にもっと注意を払うことができます。 dを取得するためにphp.cnのウェブサイトからこのガイドを読んでください

KB2267602インストールに失敗しました:修正方法は次のとおりです。KB2267602インストールに失敗しました:修正方法は次のとおりです。Apr 15, 2025 am 12:48 AM

KB2267602は、Windowsの脆弱性と脅威を修正するように設計されたWindows Defenderの保護または定義の更新です。一部のユーザーは、KB2267602をインストールできないと報告しました。 PHP.CNからのこの投稿では、「KB2267602 FAIを修正する方法を紹介します

Windows 11にプリインストールされたソフトウェアを再インストールする2つの方法Windows 11にプリインストールされたソフトウェアを再インストールする2つの方法Apr 15, 2025 am 12:47 AM

これを行う必要がある場合、Windows 11に事前にインストールされたソフトウェアを再インストールする方法を知っていますか?この投稿では、2つの簡単な方法を紹介します。さらに、Windowsコンピューターでファイルを回復する場合は、PHP.CN Power Data Recoveryを試すことができます。

修正:デスクトップとファイルフォルダーは自動的に更新されません修正:デスクトップとファイルフォルダーは自動的に更新されませんApr 15, 2025 am 12:46 AM

Windowsデスクトップまたはファイルエクスプローラーまたはフォルダーは、変更を加えると自動的に更新されます。ただし、一部のWindows 11/10ユーザーは、「デスクトップフォルダーが自動的に更新されない」という問題に遭遇すると報告しています。この投稿f

修正:このWindowsインストーラーパッケージに問題があります修正:このWindowsインストーラーパッケージに問題がありますApr 15, 2025 am 12:45 AM

Windows 11/10にプログラムをインストールしようとすると、インストールできず、エラーメッセージが受信される可能性があります。このWindowsインストーラーパッケージには問題があります。 PHP.CNからのこの投稿は、それを修正するのに役立ちます。

アンチウイルススキャン暗号化されたファイルはできますか?セキュリティ対プライバシーアンチウイルススキャン暗号化されたファイルはできますか?セキュリティ対プライバシーApr 15, 2025 am 12:44 AM

デバイスでウイルス対策ソフトウェアを実行すると、すべてのファイルとフォルダーがウイルスをスキャンすると予想される可能性があります。ただし、1つの疑問が発生します。アンチウイルススキャン暗号化されたファイルをスキャンできますか?この調査は、セキュリティとプライバシーの領域を掘り下げます。 php.cn so

WindowsPCでHDMIビデオドライバーを無料でダウンロードまたは更新するWindowsPCでHDMIビデオドライバーを無料でダウンロードまたは更新するApr 15, 2025 am 12:43 AM

WindowsにHDMIビデオドライバーをダウンロードする方法は? HDMIドライバーを最新のバージョンに更新する方法。ここで方法を見つけることができます。さらに、PHP.CN Power Data Recoveryを試して、必要に応じて失われたファイルと削除されたファイルを元に戻すことができます。

See all articles

ホットAIツール

Undresser.AI Undress

Undresser.AI Undress

リアルなヌード写真を作成する AI 搭載アプリ

AI Clothes Remover

AI Clothes Remover

写真から衣服を削除するオンライン AI ツール。

Undress AI Tool

Undress AI Tool

脱衣画像を無料で

Clothoff.io

Clothoff.io

AI衣類リムーバー

AI Hentai Generator

AI Hentai Generator

AIヘンタイを無料で生成します。

ホットツール

メモ帳++7.3.1

メモ帳++7.3.1

使いやすく無料のコードエディター

ゼンドスタジオ 13.0.1

ゼンドスタジオ 13.0.1

強力な PHP 統合開発環境

SecLists

SecLists

SecLists は、セキュリティ テスターの究極の相棒です。これは、セキュリティ評価中に頻繁に使用されるさまざまな種類のリストを 1 か所にまとめたものです。 SecLists は、セキュリティ テスターが必要とする可能性のあるすべてのリストを便利に提供することで、セキュリティ テストをより効率的かつ生産的にするのに役立ちます。リストの種類には、ユーザー名、パスワード、URL、ファジング ペイロード、機密データ パターン、Web シェルなどが含まれます。テスターはこのリポジトリを新しいテスト マシンにプルするだけで、必要なあらゆる種類のリストにアクセスできるようになります。

DVWA

DVWA

Damn Vulnerable Web App (DVWA) は、非常に脆弱な PHP/MySQL Web アプリケーションです。その主な目的は、セキュリティ専門家が法的環境でスキルとツールをテストするのに役立ち、Web 開発者が Web アプリケーションを保護するプロセスをより深く理解できるようにし、教師/生徒が教室環境で Web アプリケーションを教え/学習できるようにすることです。安全。 DVWA の目標は、シンプルでわかりやすいインターフェイスを通じて、さまざまな難易度で最も一般的な Web 脆弱性のいくつかを実践することです。このソフトウェアは、

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Eclipse を SAP NetWeaver アプリケーション サーバーと統合します。