Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi, I am trying to build some form of program that will keep my jumpdrive secure. I know there are programs I can add to my drive that will do this for me, however I find it fun to do it myself and it isn't like the security is much of a deal as actually doing this.
What I have right now is a autorun.inf. It is very simple and states
[Autorun]
Open = G:\autonrun.exe
Autorun.exe is a batch file I converted. It is also rather simple and says:@echo off
cls
start shutdown -r
So right now all it does is restart whatever PC I plug it into, that was how this got started by the way. What I want to do is add a password type program that asks for a password. If the password isn't entered correctly in 30 seconds it will open my autorun.exe and restart the PCSo, what do I do to run that password program? I was thinking an If...Than...Else... on VB, but I only took 1 semester of VB and that was a few months ago. I also am not very good with shell(), which is what I believe you have to use to open a file. I have VB and C#, a GUI is not a requirment, if it were to just pop-up in a command line that would be fine.
Thanks in advanced!

VB '05 Express Edition. That is one reason I am not doing so good with it I think, I used VB6 in school

This is not much of a security measure. An unauthorized user can simply avoid running your autorun by holding down the Shift key whilst inserting the USB drive.
In fact, I always do that whenever I insert a USB drive that's not my own, in case it's got an autorun with a virus on it.

It's not a good idea to hardcore the drive letter either, because if that was plugged into my system, it would try to run autorun.exe from my raid array, and would fail.

Yes, I know how to go around it... It is for fun really... My PC doesn't even try running autorun...

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |