Page 1 of 1

Open in "Computer" or "Desktop" from com

Posted: 03 Jan 2008 22:13
by Sixx
Is there a command line swich that I can use to open shell folders like "Compter", "Desktop" and "Documents" from the command line?

Thx

Posted: 03 Jan 2008 22:44
by serendipity
Welcome Sixx!!

I wish i could answer that. I initially thought one could open XY starting with desktop by entering XYplorer %desktop% in command-line. But that doesnt seem like it. I assumed so based on this documentation: http://88.191.26.34/XYwiki/index.php/En ... _Variables
Ofcourse the above link has the syntax for searches and not for command-line switch.
I am afraid somebody else has to answer your question.

Posted: 04 Jan 2008 01:34
by Sixx
Thanks for investigating. Might not actually be possible with the current command line parsing, though I hope not.

Posted: 04 Jan 2008 02:27
by j_c_hallgren
I've never ever used this command-line feature, but what about the last example in this? Doesn't that imply that "My Documents" would work also, if specified without a drive? As that is what is in INI if it was saved as such.
http://88.191.26.34/XYwiki/index.php/Co ... rrent_Path

Update: :oops: Well, it seemed to be a decent idea, but on trying it, I can't get it to work...oh well, I gave it a shot...

Re: Open in "Computer" or "Desktop" from

Posted: 04 Jan 2008 09:09
by admin
Sixx wrote:Is there a command line swich that I can use to open shell folders like "Compter", "Desktop" and "Documents" from the command line?

Thx
MyComputer: XYplorer "" (hmm, have I ever mentioned this trick?? -- No, because it's a side effect of something to long to explain...)

The other two... I'll add them. Good point. :)

Posted: 04 Jan 2008 18:41
by Sixx
XYplorer.exe "" works when first launching, but if an instance is already open then I get an error dialog: Couldn't find path ""\.

I'm using 6.80 on Vista in case that matters.

Posted: 05 Jan 2008 15:23
by admin
Sixx wrote:XYplorer.exe "" works when first launching, but if an instance is already open then I get an error dialog: Couldn't find path ""\.

I'm using 6.80 on Vista in case that matters.
Oh, bug. On XP, too. Fixing...

Posted: 05 Jan 2008 16:21
by admin
Sixx wrote:XYplorer.exe "" works when first launching, but if an instance is already open then I get an error dialog: Couldn't find path ""\.

I'm using 6.80 on Vista in case that matters.
Fixed. (No mention in change log, because explanation would be longer than fix... :) )

Posted: 05 Jan 2008 19:40
by Sixx
Thanks :D