• 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.
  • Posts

    • Marshall Major V Bluetooth headphones are now up to 47% off on Amazon by Ivan Jenic The Marshall Major V in Midnight Blue is currently $89.99 on Amazon, down from $169.99. That's 47% off and $80 saved on a pair of wireless on-ear headphones from one of the most recognizable names in audio. The Major V is Marshall's take on a long-lasting everyday headphone. The headphones deliver 100+ hours of wireless playtime, which puts them in a completely different category from most Bluetooth headphones that hover around 30-40 hours. You’re charging this thing once a week at most, and with wireless charging supported, you don’t have to worry about additional cables. Marshall promises its signature sound profile, with strong bass, smooth mids, and clear highs. There’s a customizable M-button, which you can set to quickly access Spotify Tap, your EQ settings, or a voice assistant. The design is foldable and lightweight at 186 grams, so it’s easy to pack for travel. And finally, the faux leather finish gives the Major V a sleek, premium look. At $89.99, the Major V Midnight Blue is a genuinely strong buy for anyone who wants a reliable daily headphone without paying premium prices. It’s also worth mentioning that the Cream and Brown variants are also discounted to $89.99, though from a lower original price of $99.99. Marshall Major V Midnight Blue - $89.99 | 47% off on Amazon This Amazon deal is US-specific and not available in other regions unless specified. This is a first-party seller link (at the time of article publishing); ensure that you also purchase from a first-party seller link only. If you don't like it or want to look at more options, check out the previous deals that we have covered, OR you can also visit Amazon US deals page. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
    • +1 on XVI. I still use it. 
    • Age 16, old enough to get a full-time job, your own bank account, a passport, get married, even join the military and go to war. But talking to your friends on the internet? Oh hell no!
    • I remember when all games had demos; it was a normal thing, not a limited time promotion.
  • Recent Achievements

    • Reacting Well
      Almohandis earned a badge
      Reacting Well
    • First Post
      Cosminus earned a badge
      First Post
    • One Year In
      ThatGuyOnline earned a badge
      One Year In
    • Week One Done
      Jeroen Wilms earned a badge
      Week One Done
    • Week One Done
      rolfus earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      483
    2. 2
      +Edouard
      185
    3. 3
      PsYcHoKiLLa
      122
    4. 4
      Steven P.
      84
    5. 5
      neufuse
      73
  • Tell a friend

    Love Neowin? Tell a friend!