Sign in with
Sign up | Sign in
Your question

how do i add an exe file to auto play

Tags:
  • Windows 8
  • Computers
  • Email
  • Pendrive
Last response: in Windows 8
Share
August 30, 2014 11:45:25 PM

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

More about : add exe file auto play

August 31, 2014 12:02:34 AM

create a file called autorun.inf in your drives root directory containing the following lines:

[autorun]
open=run_this.exe
icon=icon.ico
m
0
l
August 31, 2014 2:43:45 AM

random stalker said:
create a file called autorun.inf in your drives root directory containing the following lines:

[autorun]
open=run_this.exe
icon=icon.ico


m
0
l
Related resources
August 31, 2014 2:45:05 AM

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
m
0
l
August 31, 2014 7:25:00 AM

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.
m
0
l
a c 491 * Windows 8
a b 1 Email
August 31, 2014 7:30:03 AM

1. AutoRun is no longer supported on non-optical media. A USB, for instance. The user has to specifically say 'Run it'.
http://blogs.technet.com/b/srd/archive/2009/04/28/autor...

2. If I am inserting a USB stick in my PC, why does it need to send me an email telling me of what I just did?
m
0
l
August 31, 2014 7:48:27 AM

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 :D 

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 D
m
0
l
September 3, 2014 9:59:58 AM

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
m
0
l
a c 491 * Windows 8
a b 1 Email
September 3, 2014 10:10:50 AM

Faredoon said:
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.
m
0
l
September 4, 2014 11:11:11 AM

in that case truecrypt 7.1a would be a good choice to safely encrypt anything :D 
m
0
l
!