Windows 7

Question

Define the default opening application depending on folders

by sunseeker2k / April 24, 2013 4:55 PM PDT

Hi,

is there any way, how I can create different settings for the default program to open a certain file type, depending on which directory the file is located?
For example, let's say there's a folder "\boooks ", where I have files I want to open using SumatraPDF and then there's another folder "\papers", which I I'd like to open using Adobe Acrobat Reader.
I know that it's not difficult to do that using the context menu, but still there are stiuations where you can save a lot of time. Especially because it often happens that one instincitvely double clicks on a file for opening it. My example was just an illustration, but imagine situations where complex programs will open, which means you have to wait until it's loaded, close it, and then choose the right program to open using the context menu.

I would really appreciate it, if anyone could tell me a solution for that.

Thanks in advance!

Answer This Ask For Clarification
Discussion is locked
You are posting a reply to: Define the default opening application depending on folders
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: Define the default opening application depending on folders
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.

All Answers

Collapse -
Answer
Re: default opening depending on folders
by Kees_B Forum moderator / April 24, 2013 5:06 PM PDT

That's not a feature of Windows. If you need it you have to write a program or script yourself. That seems quite easy.

Kees

Collapse -
Thanks!
by sunseeker2k / April 24, 2013 5:16 PM PDT

Do you know what kind of scripting language would be perfect to achieve this?

Collapse -
Re: scripting
by Kees_B Forum moderator / April 24, 2013 5:36 PM PDT
In reply to: Thanks!

In Windows we have VBS (Visual Basic Scripting) and Powershell. For both, you need to have some programming experience. But any first year IT student should be able to do it for you.

Kees

Collapse -
Programming
by sunseeker2k / April 24, 2013 6:11 PM PDT
In reply to: Re: scripting

I used to program using C and Visual C++ a few years ago and Commodore Basic was the first programming I taught to myself, so I guess that shouldn't be the problem. Anyway, I heard about Powershell before and now that you mention it, I think it would be the easiest way to do it maybe.
Anyway thanks!

Popular Forums
icon
Computer Help 47,885 discussions
icon
Computer Newbies 10,322 discussions
icon
iPhones, iPods, & iPads 3,188 discussions
icon
Security 30,333 discussions
icon
TVs & Home Theaters 20,177 discussions
icon
HDTV Picture Setting 1,932 discussions
icon
Phones 15,713 discussions
icon
Windows 7 6,210 discussions
icon
Networking & Wireless 14,510 discussions

Tech Tip

Tired of your tricky Wi-Fi password?

Stop trying to memorize a complicated sequence of numbers and letters. Learn how to change the default password.