Menu

Tree [a1efa4] default tip /
 History

Read Only access


File Date Author Commit
 common 2012-11-29 Oliver Schneider Oliver Schneider [df1ee7] - Cosmetics
 .hgignore 2021-07-08 Oliver Schneider Oliver Schneider [2a8430] Updated ignore file
 .hgtags 2013-12-29 Oliver Schneider Oliver Schneider [6b8ffd] Moved tag 2013-12-29_release to changeset e3a26...
 BUILD 2016-11-23 Oliver Schneider Oliver Schneider [6c4c6e] Added CC0 for when Public Domain isn't availabl...
 README.rst 2021-07-13 Oliver Schneider Oliver Schneider [a1efa4] Fixing README
 arrived.WLH.vcproj 2012-10-03 Oliver Schneider Oliver Schneider [abba51] - Dropping SVN history
 arrived.WNET.vcproj 2012-10-03 Oliver Schneider Oliver Schneider [abba51] - Dropping SVN history
 arrived.cpp 2012-11-29 Oliver Schneider Oliver Schneider [df1ee7] - Cosmetics
 arrived.sln 2012-10-03 Oliver Schneider Oliver Schneider [abba51] - Dropping SVN history
 arrived.vs8.sln 2012-11-30 Oliver Schneider Oliver Schneider [5cbb9c] - Adding VS-specific projects, too
 arrived.vs8.vcproj 2012-11-30 Oliver Schneider Oliver Schneider [5cbb9c] - Adding VS-specific projects, too
 arrived.vsprops 2012-10-03 Oliver Schneider Oliver Schneider [abba51] - Dropping SVN history
 buildinc.cmd 2012-10-03 Oliver Schneider Oliver Schneider [abba51] - Dropping SVN history
 buildnumber.h 2016-11-23 Oliver Schneider Oliver Schneider [6c4c6e] Added CC0 for when Public Domain isn't availabl...
 ddkbuild.cmd 2012-10-03 Oliver Schneider Oliver Schneider [abba51] - Dropping SVN history
 ddkpostbld.cmd 2012-10-03 Oliver Schneider Oliver Schneider [abba51] - Dropping SVN history
 ddkprebld.cmd 2012-11-29 Oliver Schneider Oliver Schneider [df1ee7] - Cosmetics
 execommon.h 2016-11-23 Oliver Schneider Oliver Schneider [6c4c6e] Added CC0 for when Public Domain isn't availabl...
 exeversion.h 2016-11-23 Oliver Schneider Oliver Schneider [6c4c6e] Added CC0 for when Public Domain isn't availabl...
 exeversion.rc 2012-11-30 Oliver Schneider Oliver Schneider [4ff806] - Cosmetics
 makefile 2012-10-03 Oliver Schneider Oliver Schneider [abba51] - Dropping SVN history
 premake4.lua 2013-12-29 Oliver Schneider Oliver Schneider [6aa301] Update the README
 relbuild.cmd 2013-12-29 Oliver Schneider Oliver Schneider [6aa301] Update the README
 sources 2012-10-03 Oliver Schneider Oliver Schneider [abba51] - Dropping SVN history

Read Me

 arrived

About

arrived is a little Windows tool that will invoke a command whenever a new USB device, or more specifically drive, arrives in the system. That is, whenever you plug in or remove a USB drive such as a USB key or an external hard drive. So now you also know where the name came from.

Installation

No installation required. Download the binaries (32 and 64bit) from my website or SourceForge. Use an archiver to unpack the archive, I recommend 7-Zip, and then place the .exe files into a folder listed in your PATH environment variable.

Build instructions

In order to build the tool yourself, you'll either need the Windows 2003 Server DDK or Visual Studio. If you use the DDK, you can simply rely on the relbuild.cmd script, but you may have to set the WNETBASE environment variable to a sensible value (e.g. WNETBASE=C:\WINDDK\3790.1830) to match the path to the installed DDK.

If you prefer to use Visual Studio, a solution/project for Visual Studio 2005 is included and you can generate any of the other supported projects yourself using the premake4 that comes with the WinDirStat source code. Use a tool such as sigcheck to verify the code signature on it, though.

The way you generate the projects is by calling premake4 one of the following ways:

premake4 vs2005
premake4 vs2008
premake4 vs2010
premake4 vs2012
premake4 vs2013

The earlier Visual Studio versions may work, but no guarantees.

Requirements

The program should run on Windows 2000 and later. Itanium CPUs are not supported, but feel free to build that yourself, if needed.

Usage

Syntax:

arrived <command> [-only=drive_type,...]

The default if --only is not explicitly given is removable. Otherwise the following drive types should be valid:

  • unknown
  • noroot
  • removable
  • fixed
  • remote
  • cdrom
  • ramdisk

License

Parts written by me as a private person are in the PUBLIC DOMAIN/CC0, whereas the utility class from FRISK Software International can be used under the terms of the BSD license. See the license terms at the top of the common/SimpleBuffer.h file.