• 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

    • Microsoft should never have purchased anything after RARE.
    • Call of Duty: Vanguard, EA Sports FC 26, and more come to Xbox Game Pass by Pulasthi Ariyasinghe Microsoft is in the process of making some big changes to Xbox Game Studios right now, which might include studio shutdowns, but Game Pass drops aren't pausing for that. The second wave of June was just announced, unveiling another Call of Duty addition, the latest soccer game from EA, an indie road trip hit from last year, and more. While Microsoft said it won't put Call of Duty titles on Game Pass on the day of launch anymore, older titles keep landing, with the latest one being 2021's Call of Duty: Vanguard. Here are all the games that were announced today for Xbox Game Pass, their platforms, and arrival dates: Junkster (Cloud, XBOX Series X|S, Handheld, and PC) – June 16 Call of Duty: Vanguard (Cloud, Console, and PC) – June 17 EA Sports FC 26 (Cloud, Console, and PC) – June 18 Abyssus (Cloud, Xbox Series X|S, and PC) – June 25 RV There Yet? (Cloud, Xbox Series X|S, and PC) – June 30 Tony Hawk's Pro Skater 3 + 4 (Cloud, Console, and PC) – July 2 Winds of Arcana: Ruination (Cloud, Console, Handheld, and PC) – July 6 From the bunch, Junkster is the sole day-one drop into Game Pass libraries of this selection. As new games arrive, eight will be leaving the Game Pass programs on June 30. Here's the full list of leaving titles: Mecha Break (Cloud, Console, and PC) Payday 2 (Console) Rise of Tomb Raider (Cloud, Console, and PC) Tomb Raider (Cloud, Console, and PC) Slay the Spire (Cloud, Console, and PC) Ultimate Chicken Horse (Cloud, Console, and PC) Volcano Princess (Cloud, Console, and PC) Unpacking (Cloud, Console, and PC) With June drops finished, Microsoft should have a new Game Pass announcement in about two weeks to reveal the first wave of games coming to subscribers in July. Already confirmed games for the month include the Halo: Campaign Evolved remake, Corsair Cove, SpeedRunners 2: King of Speed, and Mistfall Hunter.
  • Recent Achievements

    • One Year In
      Console General earned a badge
      One Year In
    • One Year In
      Twozo Technologies earned a badge
      One Year In
    • One Month Later
      Twozo Technologies earned a badge
      One Month Later
    • Week One Done
      Twozo Technologies earned a badge
      Week One Done
    • Veteran
      branfont went up a rank
      Veteran
  • Popular Contributors

    1. 1
      +primortal
      522
    2. 2
      +Edouard
      204
    3. 3
      PsYcHoKiLLa
      111
    4. 4
      Steven P.
      89
    5. 5
      Nick H.
      71
  • Tell a friend

    Love Neowin? Tell a friend!