Windows 7 forum

Resolved Question

How can I have a program open a file automatically

by AutoName / January 10, 2015 5:49 PM 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 ?

AutoName has chosen the best answer to their question. View answer
Discussion is locked
You are posting a reply to: How can I have a program open a file automatically
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: How can I have a program open a file automatically
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
Clarification Request
Tell us more
by MarkFlax Forum moderator / January 10, 2015 6:05 PM 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.


Collapse -
by AutoName / January 10, 2015 6:43 PM PST
In reply to: Tell us more

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 -
by MarkFlax Forum moderator / January 10, 2015 7:09 PM PST
In reply to: Automation
Collapse -
by Kees_B Forum moderator / January 10, 2015 8:56 PM PST
In reply to: Automation

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.


Collapse -
by AutoName / January 10, 2015 9:19 PM PST
In reply to: Yes.


All Answers

Best Answer chosen by AutoName

Collapse -
by AutoName / January 10, 2015 9:18 PM PST

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

Collapse -
by penelusuranartikel / January 12, 2015 11:18 AM PST
In reply to: Answer

I listened permission dear

Popular Forums
Computer Newbies 10,686 discussions
Computer Help 54,365 discussions
Laptops 21,181 discussions
Networking & Wireless 16,313 discussions
Phones 17,137 discussions
Security 31,287 discussions
TVs & Home Theaters 22,101 discussions
Windows 7 8,164 discussions
Windows 10 2,657 discussions


Help, my PC with Windows 10 won't shut down properly

Since upgrading to Windows 10 my computer won't shut down properly. I use the menu button shutdown and the screen goes blank, but the system does not fully shut down. The only way to get it to shut down is to hold the physical power button down till it shuts down. Any suggestions?