Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: File Associations based on File Location?

3 Weeks Ago   #1
dracho

Windows 7 Ultimate x64
 
 
File Associations based on File Location?

I want videos stored on my D: drive to open in Media Player Classic, and videos stored on my E: drive to open in VLC Media Player.

I realize this probably isn't built into Windows, but I know there must be a way to do it.

Worst case scenario, a small program could be written to "direct traffic." When a video file is double-clicked, it would Open With this new utility program, and that program would launch either MPC or VLC and pass along the filename of the video to play. Unfortunately, I'm not skilled enough to code such a program...


My System SpecsSystem Spec
.
3 Weeks Ago   #2
Megahertz07

Windows 7 HP 64
 
 

As the program is associated with it's extension, and as they have same extension what you want isn't possible.

Copy a Media Player Classic link to the Videos folder on D: and VLC Media Player link to the Videos folder on C:
Modify the link properties where it says "start in" to the path of the videos on that drive. Execute the link (opens the media player) and then open - select the video.
My System SpecsSystem Spec
3 Weeks Ago   #3
dracho

Windows 7 Ultimate x64
 
 

[QUOTE=Megahertz07;3411773]As the program is associated with it's extension, and as they have same extension what you want isn't possible. [\QUOTE]

I've found the answer. Directory Opus has this feature built-in: "@ifpath" - "For example, you could use this to open different programs when double-clicking on an image file, depending on where the file is stored. If the following command was added to the Left double-click event for the Images file type group, pictures located on the network will be opened in the Opus viewer when they are double-clicked, whereas files located on a local drive would open in Photoshop."

Link if anyone's curious: https://www.gpsoft.com.au/help/opus1..._reference.htm
My System SpecsSystem Spec
.

3 Weeks Ago   #4
Megahertz07

Windows 7 HP 64
 
 

Thank you for the feedback.

Glad you found a solution for what you want.
Please mark this thread as Solved.
My System SpecsSystem Spec
Reply

 File Associations based on File Location?




Thread Tools




Similar help and support threads
Thread Forum
File Associations?
I was recently downloading a minecraft custom map when i messed up and opened with wordpad and changed how my files are saved i am sort of a noob with file associations and i am not understanding how to reset the windows 7 defaults i have read numerous threads and i don't understand. I do not want...
General Discussion
File associations
I'm running Win 7, home premium, 64 bit. I'm trying to set up file associations. I went to the control panel and opened file associations. The .xls file type (Excel) is not listed. Any idea how I would get it included? I got an .XLS file sent to me and I can't open it without saving it and opening...
General Discussion
How to create a batch file that will move files based on the file type
How to create a batch file that will move files based on the file type? My Requirement : I need a batch file to copy all .doc files in all my HardDisk to a removable disk say (Z: drive) . Can anyone make it possible using a batch file?Please...Its urgent...
General Discussion
Change File Associations for LNK file?
A co-worker must have changed the file associations for ".LNK" shortcut files. All the shortcuts on her desktop are now the wrong icons and all try to start Windows Media Player, when clicked on. I'd like to change the file association for .LNK files. It seems straightforward to change this. I...
General Discussion
File associations WMP
Hi folks, first post here because I did a search for answer, but to no avail. Somehow or another when I setup WMP I wanted iTunes and quicktime to handle certain filetypes, and WMP to handle "windows only" file types, Not to mention Pro Tools to handle midi etc. Anyway, I can't seem to change...
Music, Pictures & Video


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:25.
Twitter Facebook Google+