Command Line

Chitchat about x² / 2X products

Moderators: fgagnon, nikos, Site Mods

soonerlater
Member
Member
Posts: 56
Joined: 2007 Jan 16, 17:01

Command Line

Post by soonerlater »

Is there a way to start xplorer2 from the command line? Don't confuse this with xplorer2 issuing command lines, which are discussed in the help file.

If I issue the command "explorer.exe \n:" I get a new Windows Explorer session open to n:\.

If I issued the command "c:\program files\2xexplorer\2xexplorer.exe \n:" I get an error message.

I have many applets which open a Windows Explorer session for me using the above method. I'd like to switch them so that they start a 2xExplorer session instead.
User avatar
fgagnon
Site Admin
Site Admin
Posts: 3737
Joined: 2003 Sep 08, 19:56
Location: Springfield

Post by fgagnon »

Yes.

Command line options for starting x2 are described in the help file  
Help | Quick start
They are missing from the User Manual. (narayan pls take note)

The syntax to open a single pane to drive n is:
"c:\program files\2xexplorer\2xexplorer.exe" /1 n:

Note the quotes around the executable (because there is a space in the full path), but the arguments are outside the quotes.

complete syntax is in the help file.
soonerlater
Member
Member
Posts: 56
Joined: 2007 Jan 16, 17:01

Post by soonerlater »

I just noticed that I asked about wrong program (I have both installed). Would syntax be any different for

C:\Program Files\zabkat\xplorer2_lite\xplorer2.exe

instead of

c:\program files\2xexplorer\2xexplorer.exe

?

And have I asked in the wrong forum too?
User avatar
fgagnon
Site Admin
Site Admin
Posts: 3737
Joined: 2003 Sep 08, 19:56
Location: Springfield

Post by fgagnon »

@ wrong program (?) -
Syntax is same for both Lite & Pro (just name the right executable)

@ wrong forum (?) -
close enough, we're not that picky :)
soonerlater
Member
Member
Posts: 56
Joined: 2007 Jan 16, 17:01

Post by soonerlater »

fgagnon wrote:@ wrong program (?) -
Syntax is same for both Lite & Pro (just name the right executable)
I had mistakenly asked about 2xexplorer.exe (obsolete), but I meant to ask about xplorer2.exe (current). Forgive me. I've been using the obsolete 2xexplorer.exe for years.  I just started using xplorer2.exe this week.  This is my first forum visit and the 2xexplorer versus xplorer2 name thing is confusing.
User avatar
fgagnon
Site Admin
Site Admin
Posts: 3737
Joined: 2003 Sep 08, 19:56
Location: Springfield

Post by fgagnon »

so you got the answer you wanted (for xplorer²), no?

...
If you really care, the syntax for 2xExplorer has fewer options,
the pattern is somewhat similar, viz:

"full path\2xExplorer.exe" [leftfolder [rightfolder]]

But if you want to open it as a single pane, it must have had that mode saved from a prior use.  :shrug:
soonerlater
Member
Member
Posts: 56
Joined: 2007 Jan 16, 17:01

Post by soonerlater »

fgagnon wrote:so you got the answer you wanted (for xplorer²), no?
Yep, despite my ineptitude. And thanks again.