I recently received an e-mail from Sam J. with a question about flash drives:

Is their any way to record the user name of every person who has used your flash drive?

While there is no fool proof way of doing it, you could try a combination of autorun.inf files and batch file.

Create an autorun.inf file on the root of your flash drive with the following contents:

[autorun]
open=getusers.bat
action=Open folder to view files

Next, create a batch file called getusers.bat with the following contents:

@echo off
echo %username%>>users.txt

When a user puts your flash drive into their computer, it pop up with an autoplay option indicating that they are to click on the icon to open the folder to view files.  A small black box will pop up briefly and then disappear.  If you go into the root of the drive, you will find a new file called users.txt.  If you open this file, it wil contain the user names of all the users who have accessed your drive by clicking on the icon.

This is, of course, not a fool proof method as all someone has to do is bypass the autoplay feature and their name is not recorded or they can delete the users.txt file but this is at least a proof of concept.

Similar Posts:

If you found this post useful, why don't you buy me a cup of coffee to show your gratitude?

Well, it took over a year, but we now have definitive proof that the Lost USB Drive application works! When I launched the Lost USB Drive Experiment in early June of last year, I wasn’t really sure what to expect. I had all but forgotten about the experiment.

So, imagine my surprise when I had this in my inbox this morning:

Dale,

I recently took over Costa Coffee Eastleigh and have found your USB Memory stick, I’m not sure how long it has been here but if you would like to pop in and collect it I will put it to one side.

Thanks

Matthew
Store Manager

Costa Coffee
27-29 Market Street
Eastleigh
SO50 5RG

To be honest, I was a little shocked! But, at the same time, this totally made my day! Just goes to prove that there are some honest people out there and that a little ingenuity can go a long way!

If any of you are in the area of Matthew’s store, go in, congratulate him on his honesty and integrity, and buy the biggest, most expensive coffee on the menu! Way to go, Matthew!

Similar Posts:

If you found this post useful, why don't you buy me a cup of coffee to show your gratitude?

There are a lot of people out there who are sending our e-mail after e-mail and offending everyone on their way, completely oblivious to what they are doing. We all experience them regularly. these are the people who WRITE IN ALL CAPS, > > > > > forward e-mails that have been forwarded several times previously, use REPLY ALL to respond to distribution lists, and attach 50 MB files that clock up our Internet connections.

Here is a great cheat sheet that you can print out and leave on their desk to that they can get the e-mail act together.

Update:  I originally had the pdf embedded in the post but too many people were having problems with it (see comments below).  It is now just a simple link.  That will teach me to try and get fancy.  Sorry about the trouble.  -Tim

Similar Posts:

If you found this post useful, why don't you buy me a cup of coffee to show your gratitude?

« Previous Page