Hello everyone!
In explorer, there is a command so you can select AND focus on particular file:
explorer.exe /select,"%1"
the similar command in DOpus does select the file, but not actually focus the file:
dopusrt.exe /cmd Select PATTERN="%1%""
Any advice appreciated.
Leo
2
Try adding MAKEVISIBLE to the command.
Leo
3
Oh, that'll scroll the file into view but won't actually give it the keyboard focus, so I guess it's not what you want.
Thank you! that worked excellent!
if I want to use this command in "user command editor", what is symbol for the filenames which I add when I run the command?
if i make a command that is named FocusFile and look like this:
Go PATH="%2%"
Select MAKEVISIBLE="%3%"
and i try to run it like this
dopusrt.exe /cmd FocusFile c:\windows notepad.exe
so c:\windows is the folder to be opened
and notepad.exe is the file to be selected.
i get errormess %2% doesn't existst.
Leo
6
If you want to go to a folder and select a file you can do it in a single, simple line without needing a user command at all:
dopusrt.exe /cmd Go "C:\Windows\notepad.exe"