RUNick is a helping software that runs different commands on plugging in an USB device and using the added AutoPlay option. The commandlines can contain variables. Additionally a regular Expression parsing the computer name can be defined. Only if the pattern matches the computername, the command is executed. RUNick is written in the script language AutoHotkey.
The current beta version can still be downloaded at the SourceForge project page but the project is abandoned so no updates will be done in the future.
Download: RUNick (beta)