how do i add an exe file to auto play

Faredoon

Reputable
Jun 17, 2014
131
0
4,690
hi guys i have developed a program that sends u an email when yur pendive is inserted in yur comp but the problem is u have to open my exe file for that i want to put the exe file on auto play so that when i put my pendive in a computer it automatically runs my file without any permission and i get an email how do i do that ???

program is developed using c# in vs
 
Can be explain step by step how do i go to the root directory

Ok imagine iv put my pendrive in my comp and i have my certain file to load on autoplay how do i go abut it exactly what do do
 
theory> in a system the root directory is the topmost directory in your drive. imagine a drive as a tree. in windows every drive has a letter assigned to it. it is then followed by path to a file and a file name - f. e.: d:\documents\pictures\naughty.jpg

example> let's say... you connect the drive to your computer... and it shows as "my_drive (d:)", then d:\ is the root directory.

step by step>
1, connect your drive
2, open notepad
3, put these lines in /replace run_this.exe with the name of the file you want to run/:
[autorun]
open=run_this.exe
4, optionaly put this in /it changes the drive icon - with icon.ico being an icon you want your drive to show. 32x32 or 64x64 bmp file is fine and works most of the time/:
icon=icon.ico
5, save as
6, select your drive and be sure you are in the root directory /the topmost one/
7, select all files
8, name the file as autorun.inf
9, ok and you're set. as long one has autoplay enabled it will be run.
 
probably an anti-theft device. or something to spy on people. or a nice destructive virus... there are many options an the choice is not mine 😀

btw, well, there is also another way - one can merge it with the firmware of the usb drive. this way it can do anything without anyone knowing what hit them 😀D
 
yea guys ill try out the things you guys suggested yea @usaf its an anti theft sort of thing so if someone robs it i know the pendrives inserted in the comp the software will ask for my security key 3 times if invalid pendrive will format itself , yea your pendrive is gone but your information is not in the wrong hands im coding to get gps coordinates as well but thats not going so good
 


And that depends on the recipients system having autorun enabled. Which is NOT the default over the last 6 years or so.
And asking 3 times? I'd toss it after the first time. See ya, not that important....

If you want anti-theft, encrypt the contents. The physical hardware...the USB stick...is irrelevant and easily replaceable.
If you get an email that says "Help ! I was installed in BillyBobs laptop",what are you going to do?
Go to his house and demand it back?

Encrypt the data, and dismiss the pendrive as a loss.
 

TRENDING THREADS