Skip to content

Commit

Permalink
Released v2.0R
Browse files Browse the repository at this point in the history
  • Loading branch information
UnexomWid committed Sep 4, 2019
1 parent f9047c6 commit a133701
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# About <a href="https://docs.microsoft.com/en-us/dotnet/framework/whats-new/#v45"><img align="right" src="https://img.shields.io/badge/.Net%20Framework-4.5-5C2D91?logo=.net" alt=".Net Framework 4.5" /></a>
_USB Duplicator_ is an application that copies all data from USB drives to a folder, when they are plugged in.

# License <a href="https://github.com/UnexomWid/exomit/blob/master/LICENSE"><img align="right" src="https://img.shields.io/badge/License-GPLv3-blue.svg" alt="License: GPL v3" /></a>
# License <a href="https://github.com/UnexomWid/usb-duplicator/blob/master/LICENSE"><img align="right" src="https://img.shields.io/badge/License-GPLv3-blue.svg" alt="License: GPL v3" /></a>

USB Duplicator was created by [UnexomWid](http://unexomwid.me). It is licensed under the [GNU GPLv3](https://www.gnu.org/licenses/gpl-3.0.en.html) license.

Expand All @@ -21,7 +21,7 @@ _I am **NOT** responsible for any type of misuses and/or damages done by this so

# USB Duplicator

USB Duplicator listens for drive activity. As soon as an USB drive is plugged in, the application begins copying all files from the drive to the working directory, in a directory with the following name:
USB Duplicator listens for drive activity. When a USB drive is plugged in, the application begins copying all files from the drive to the working directory, in a directory with the following name:

```
[{ID}_{DAY}-{MONTH}-{YEAR}_{HOUR}-{MINUTE}-{SECOND}-{MILLISECOND}]{DRIVE_NAME}
Expand All @@ -41,6 +41,8 @@ Where:

To see what arguments the application accepts, launch it with the `-h` or `--help` flag (_e.g. `usbd.exe -h`_), or read below.

> Note that It might take a few seconds for the application to detect the USB Drive.
# Whitelist & Blacklist

By default, USB Duplicator copies files from _all_ USB drives when they are plugged in. However, you can specify which drives you wish to copy from.
Expand Down
2 changes: 1 addition & 1 deletion src/USBDuplicator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private static void Watcher_EventArrived(object sender, EventArrivedEventArgs e)
}

// You can replace File.Copy with File.Move, or another method that accepts 2 string parameters (the source and destination).
ProcessFiles(e.NewEvent.Properties["DriveName"].Value.ToString() + "\\", "*", File.Copy, destination);
ProcessFiles(source + "\\", "*", File.Copy, destination);

Log("\r\nSuccessfully snatched " + driveName + "");
}
Expand Down

0 comments on commit a133701

Please sign in to comment.