• 0

[AUTRUN.EXE/AUTORUN.INF] Making One


Question

Hi Folks,

I've created a application using PHP/MySQL. I have XAMPP installed and Firefox Portable on the drive.

What I want to do is when the pen drive is plugged in the autorun should start XAMPP and then open up FFP with the root of the application opened.

A couple of other things. I noticed that even thou my main Firefox is on my C drive FFP opened up with my main FF homepage(s). How would I get FFP to open http://localhost/ everytime (or at least try so the user is prompted).

This really is unchartered territory for me and any help is appreciated.

My autorun.inf is below.

[autorun]
OPEN=xampp\xampp_start.exe
OPEN=FirefoxPortable\App\firefox\ffp.exe
ICON=favicon.ico

Link to comment
https://www.neowin.net/forum/topic/678724-autrunexeautoruninf-making-one/
Share on other sites

22 answers to this question

Recommended Posts

  • 0

I'm really looking to write my own from scratch, I've tried quite a few but none of them do exactly what I want. I don't want someone to do ti for me I just need to guidance as too what I need (tools wise like MS Visual Studio, could I do it all using Flash?)

Hopefully someone will know?

  • 0
why not just make a batch or vbs file to run the commands?

+1

.bat / .vbs / .js are the easiest without having to rely on third-party autorun maker. Batch files should be the easiest. If you know how to run your apps from the command line, just stick em all in the batch file.

Then have Autorun.inf file call the batch file.

  • 0
+1

.bat / .vbs / .js are the easiest without having to rely on third-party autorun maker. Batch files should be the easiest. If you know how to run your apps from the command line, just stick em all in the batch file.

Then have Autorun.inf file call the batch file.

Do you have any good source that would tell me how to do that?

  • 0

Make a file called x.bat (name it anything you like)

start xampp\xampp_start.exe
start FirefoxPortable\App\firefox\ffp.exe http://localhost

Then in your autorun.inf

[autorun]
OPEN=x.bat
ICON=favicon.ico

Edit: Have you checked and made sure that your client's PC hasn't got Autorun disabled?

  • 0

It looks like I need to include the running commands for XAMPP into my bat file as it keeps bringing that error up that I mentioned before.

I'm guessing I can't reverse engineer the exe to see what I need to run to get it to work?

  • 0
It looks like I need to include the running commands for XAMPP into my bat file as it keeps bringing that error up that I mentioned before.

I'm guessing I can't reverse engineer the exe to see what I need to run to get it to work?

Hmm you might have to run MySQL & Apache separately instead of using the xampp launcher.

Try Googling mysql and apache 'command line parameters' and see what they've got on the subject.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.