I am testing Autorun, and I wanted to ask if someone had a similar experience.
I created a file in my “Downloads”, where I have a .smc, .xml and .bat document. I am sure that the commands in the xml-file are correct and that the file paths in the batch file are corrects.
When I execute the Batch-file, this is not doing anything.
My college has exactly the same documents, and the only difference is that is name does not include a “é” or any special symbol. And for him, is it working.
Do you think this is the real problem, or do you think it is something else?
If this is the problem, do you have any suggestion to avoid this?
Thank you in advance
The problem is that the batch file is not beeing executed due to the special character in the user path. Not sure how the batch file is used but to test you could also create a symlink to a path without the é … see also here for a pretty similiar problem https://superuser.com/questions/1676567/how-to-use-special-characters-from-bat-file-in-windows
This often also happens with umlauts or space characters. If the path can be changed, great, but maybe also the batch file can be improved to handle such exceptions.
tl;dr: Creating a User without a special character is a workaround. Probably there is also (the need or) a way to make the batch file smarter for your usecase.
Just tested this a bit:
By using west european encoding I got “é” working in the path:
<?xml version="1.0" encoding="ISO-8859-1"?>
Check the auorun log for details:
When there is UTF-8 as encoding and the file is not UTF-8 encoded then you will get this kind of error:
“org.jdom2.input.JDOMParseException: Error on line 6 of document file:/C:/Users/Downloads/autorun-test.xml: Invalid byte 2 of 3-byte UTF-8 sequence.”
Copyright © 2023 Solibri Inc. | Powered by NodeBB