Odd Syntax Error

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
TestMeister
Posts: 188
Joined: 04 Feb 2008 20:17

Odd Syntax Error

Post 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
ScreenHunter 2753.png (6.2 KiB) Viewed 505 times

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Odd Syntax Error

Post by highend »

Then either use correct quoting or turn off Menu - Scripting - Syntax Checking?
One of my scripts helped you out? Please donate via Paypal

TestMeister
Posts: 188
Joined: 04 Feb 2008 20:17

Re: Odd Syntax Error

Post by TestMeister »

I don't understand, the syntax is the same except for the quotes around the path which aren't needed.

jupe
Posts: 2757
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Odd Syntax Error

Post 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;"

TestMeister
Posts: 188
Joined: 04 Feb 2008 20:17

Re: Odd Syntax Error

Post 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!

Post Reply