Board Logo
« auto run my program »

Welcome Guest. Please Login or Register.
Nov 24th, 2017, 6:17pm


Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ


« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: auto run my program  (Read 355 times)
JoshTheNerd
Member in Training
ImageImage


member is offline

Avatar

Im happy im a nerd!


PM

Gender: Male
Posts: 20
xx auto run my program
« Thread started on: Mar 30th, 2014, 2:57pm »

Ok, so, I have my program. Its on a tkn file, i have the exe file and its on a cd. know I have a really big problem with it. I DONT KNOW HOW TO MAKE IT AUTOMATICALLY PLAY THE PROGRAM. I want to be able to make it so it reads the cd then plays the program. Is there a way to do that or not. Please tell me and if so how. Ty in advance for all responders.
User IP Logged

Rod
Administrator
ImageImageImageImageImage


member is offline

Avatar

Graphics = Goosebumps!


PM

Gender: Male
Posts: 3132
xx Re: auto run my program
« Reply #1 on: Mar 30th, 2014, 3:28pm »

Assuming you have the .exe and all associated files on the cd then you just need to create an "autorun.inf" file on the cd.

Use notepad to create this script

"[autorun]
open=my.exe"

My.exe should name your own .exe. Include any paths if you have sub directories on the cd.

Save the notepad file to the root of the cd named as "autorun.inf"

Now when you insert the cd it should automatically start your .exe file. But that assumes the host computer is set to autorun cd files. It is a user choice not to do so.
« Last Edit: Mar 30th, 2014, 3:29pm by Rod » User IP Logged

tooanalytical
Senior Member
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1739
xx Re: auto run my program
« Reply #2 on: Mar 30th, 2014, 3:32pm »

That text file can also include a line,
Code:
[autorun]
open=example.exe
icon=nameoficon.ico 


and include the icon in the root directory with the other needed files and folder.


That is from an article, http://en.wikipedia.org/wiki/INF_file
User IP Logged

Mallot1
Full Member
ImageImageImageImage


member is offline

Avatar

Mallot1


Homepage PM

Gender: Male
Posts: 194
xx Re: auto run my program
« Reply #3 on: Mar 30th, 2014, 6:19pm »

We do this frequently here at GameGrape, But you should know that starting with Windows7 and later Windows no longer allows removable media to fully autorun(take over the entire computer). So you have to click ok on the autorun popup everytime you put it in your computer. Just thought you should know cheesy
User IP Logged

User Image
User Image
Game Development Blog: http://mallot1development.wordpress.com
High Flyer! cheesy http://gamegrapestudios.com/highflyer
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls