Page 1 of 1

Odd Syntax Error

Posted: 09 Jun 2021 03:00
by TestMeister
XY 21.80.00300

I have XY running on two PCs
  • Surface 3 Win 10
  • Lenovo T470p Win 10

On both, I would like XY to start with the tabs reloaded and the tree collapsed

On the Surface, this works great
"C:\Program Files (x86)\XYplorer\XYplorer.exe" /script=::tabset(load);#1010;

On the Lenovo the path is different but the script is the same
C:\MyPrograms\XYplorer\XYplorer.exe /script=::tabset(load);#1010;

However, on the Lenovo, it loads with a script error
.
ScreenHunter 2753.png

Re: Odd Syntax Error

Posted: 09 Jun 2021 03:51
by highend
Then either use correct quoting or turn off Menu - Scripting - Syntax Checking?

Re: Odd Syntax Error

Posted: 09 Jun 2021 05:11
by TestMeister
I don't understand, the syntax is the same except for the quotes around the path which aren't needed.

Re: Odd Syntax Error

Posted: 09 Jun 2021 05:18
by jupe
It would be easier for you to understand if you had of looked up the CLI command you are trying to use in the help file, since all the examples shown there have correct quoting.

XYplorer.exe /script="::tabset('load');#1010;"

Re: Odd Syntax Error

Posted: 09 Jun 2021 05:42
by TestMeister
I wasn't aware of the Syntax Checking option.
I see your point as I enabled it on the Surface and got the same error.
Thanks!