Command Line Arguments

Ask any support questions here
Post Reply
kingtermite
Posts: 3
Joined: Fri Aug 23, 2019 2:46 am

Command Line Arguments

Post by kingtermite »

HI...new user here. I'm looking to use this as part of a software tool suite for my users at work whom I develop small tools for.

I searched this forum for command line arguments and all I found was that I could add directories to open in tabs on startup, but nothing else mentioned. Are there no other command line arguments?

I'd like to open the view style to "details" instead of "medium icons". Is this possible?

Are there any other command line arguments besides the directory list?
jwf3148
Posts: 1
Joined: Mon Feb 13, 2023 12:10 pm

Re: Command Line Arguments

Post by jwf3148 »

I can start/activate Explorer++ from the Windows command line and cause it to navigate to whatever directory path was entered as an argument. This uses nircmd. This makes Explorer++ a truly usable feature for me. The command file is on the Path, so I just enter the file name, I called it "stat", and a path, stat \Users, or stat D:\wsfc, or stat . for the current directory. Fast and efficient.
@ECHO OFF
SET DR=%1
IF /I NOT "%DR:~1,1%"==":" (
IF "%DR:~0,1%"=="\" SET DR=C:%DR%
)
IF "%1"=="." SET DR=%CD%
tasklist /fi "ImageName eq Explorer++.exe" /fo csv 2>NUL | find /I "Explorer++.exe">NUL
START "" "C:\docs\utilities\explorerpp_x64\Explorer++.exe"
IF NOT "%ERRORLEVEL%"=="0" nircmd wait 1000
ECHO | SET /P dummyname=%DR%|clip
nircmd wait 50
nircmd sendkeypress Ctrl+L
nircmd wait 50
nircmd sendkeypress Ctrl+V
nircmd wait 50
nircmd sendkeypress Enter
nircmd wait 50
nircmd sendkeypress Tab
nircmd wait 50
nircmd sendkeypress Tab
:END
Post Reply