Page 1 of 1
File Association
Posted: 04 Nov 2006 16:01
by Tamil
Currently we have to specify application for each file extension separately. What about the following?
+htm;html>?:\Program Files\Opera\Opera.exe
+7z;rar;zip>?:\Program Files\WinRAR\WinRAR.exe
Instead of following one.
+htm>?:\Program Files\Opera\Opera.exe
+html>?:\Program Files\Opera\Opera.exe
+7z>?:\Program Files\WinRAR\WinRAR.exe
+rar>?:\Program Files\WinRAR\WinRAR.exe
+zip>?:\Program Files\WinRAR\WinRAR.exe
Posted: 04 Nov 2006 22:23
by avsfan
Ooooh! Neat idea! (and much more concise, too!) Especially if one changes zip programs, etc...
yep
Posted: 04 Nov 2006 23:59
by itsme28m
Great idea!
Posted: 05 Nov 2006 02:44
by lukescammell
I like this
Just out of interest, can we use relative paths with that? I havne't even tried, but if we could that would rock as I could then link things to my other portable apps

Posted: 05 Nov 2006 05:27
by j_c_hallgren
Ditto!

Redundancy reduction is almost always a good thing!
Posted: 05 Nov 2006 18:49
by jacky
Yep, sounds pretty cool!
lukescammell wrote:Just out of interest, can we use relative paths with that? I havne't even tried, but if we could that would rock as I could then link things to my other portable apps

Can't use relative paths no, but relative to what would they be?
Anyways, as shown what you can do is use the question mark, which will be replaced internally with the letter of the drive XYplorer is running from.
This means that when using XY from a portable drive (USB stick, CD, etc) you can have XYplorer open files (when you double-click or press Enter) using your own applications from the same drive independently of the local file associations or the local drive mapping!
Posted: 05 Nov 2006 19:50
by lukescammell
jacky wrote:lukescammell wrote:Just out of interest, can we use relative paths with that? I havne't even tried, but if we could that would rock as I could then link things to my other portable apps

Can't use relative paths no, but relative to what would they be?
Relative to the XY executable.
jacky wrote:Anyways, as shown what you can do is use the question mark, which will be replaced internally with the letter of the drive XYplorer is running from.
OK, this works apart from the fact that I use my portable apps in a slightly strange way

I don't have enough space on my flash drive (I'm always trying to cram something new in) so I compress my portable apps at the end of the day before taking them with me home. While at work and at home I extract them to a temporary directory. This gives me the added bonus of more speed and the ability to enable some features in certain programs (eg. Thunderbird, spam filtering) that would otherwise knacker my USB drive pretty quickly. Because of this, I can't actually use the ? as the temp dirs are in different places on both machines. I guess I could recreate my work location on my home computer, but this isn't exactly elegant, and I usually just extract the whole thing into a dir on my desktop.
For example, in the following directory structure:
Code: Select all
+PortableApps
|-[7-ZipPortable]
|-[AbiWordPortable]
|-[BRU]
|-[ClamWinPortable]
|-[FileZillaPortable]
|-[FirefoxPortable]
|-[jEdit]
|-[KeePass Password Safe]
|-[MirandaPortable]
|-[Putty]
|-[SkypePortable]
|-[SunbirdPortable]
|-[ThunderbirdPortable]
|-[TS2AdminClient]
|-[VLCPortable]
|-[XYplorer]
|-PStart.exe
|-PStart.xml
|-upx.exe
|-upx.txt
|-VPS, BoltConnect.rdp
I would use the following:
Code: Select all
+htm>..\FirefoxPortable\FirefoxPortable.exe
+html>..\FirefoxPortable\FirefoxPortable.exe
+7z>..\7-ZipPortable\7-ZipPortable.exe
+rar>..\7-ZipPortable\7-ZipPortable.exe
+zip>..\7-ZipPortable\7-ZipPortable.exe
or better still
Code: Select all
+htm;html>..\FirefoxPortable\FirefoxPortable.exe
+7z;rar;zip>..\7-ZipPortable\7-ZipPortable.exe
Posted: 06 Nov 2006 08:31
by admin
Okidoki! 2 cool ideas, just implemented!

Posted: 06 Nov 2006 10:38
by lukescammell
XY ftw! \o/
Posted: 06 Nov 2006 16:12
by Tamil
admin wrote:2 cool ideas, just implemented!
Thanks.
