Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Resolved Question

How can I have a program open a file automatically

Jan 10, 2015 5:49PM PST

Is it possible to make an autorun out of a program opening a file automatically and have both of them in an exe file ?

Discussion is locked

AutoName has chosen the best answer to their question. View answer
- Collapse -
Clarification Request
Tell us more
Jan 10, 2015 6:05PM PST

Explain in more detail what you need.

For instance, Windows "associates" certain file types with certain applications. A Word.docx file is associated with Word and an Excel.xlsx file is associated with Excel, are just 2 examples.

So, clicking, (or double clicking, depending on your personal Windows setup), any .docx file or any .xlsx file will open the file in Word/Excel respectively.

No need for any special action, any autorun, or any other work for that to happen.

Mark

- Collapse -
Automation
Jan 10, 2015 6:43PM PST

Thanks for your reply.

Well, say we have a media player and an mp3 file. I need to have both in an exe archive so that when I click the exe, it start playing the mp3 using that player automatically.

- Collapse -
Autorun?
Jan 10, 2015 7:09PM PST
- Collapse -
Yes.
Jan 10, 2015 8:56PM PST

That's very well possibe, although of course the resulting file is OS-dependent. So you would need to make a Windows version, a Mac version and a Linux version. For Android and iOS it's probably more difficult.

The trick: create a self-extracting exe file containing a media (mp3 in your case) player that runs without being installed, configured to run the player with the right parameters to play the file from the temp-folder it is extracted to. if you can't find such a player it's a no-go.

But I think most people would prefer to get only the mp3 and use their own preferred player that runs in their OS.

Kees

- Collapse -
Exactly
Jan 10, 2015 9:19PM PST

exactly!

Best Answer

- Collapse -
Answer
Jan 10, 2015 9:18PM PST

an mp3 template for AMS did the job.. Thanks Mark and Kees for your help.

- Collapse -
penelusuranartikel
Jan 12, 2015 11:18AM PST

I listened permission dear