Hello! I think I found a little bug in the last release with RunCommand (or maybe I'm doing something wrong?).
If the path have spaces the runcommand will fail, at least with notepad. I created two folders, "Test" and "This is a Test", and placed a .txt inside both folders. With "test" folder I don't have any issue, but with "This is a Test" doesn't appear the txt. And I don't get any warning or anything in the logger.
soyelrafa wrote: ↑May 1st, 2019, 3:44 pm
Hello! I think I found a little bug in the last release with RunCommand (or maybe I'm doing something wrong?).
If the path have spaces the runcommand will fail, at least with notepad. I created two folders, "Test" and "This is a Test", and placed a .txt inside both folders. With "test" folder I don't have any issue, but with "This is a Test" doesn't appear the txt. And I don't get any warning or anything in the logger.
Yes, "quotes" at the beginning and end of any Rainmeter option value are always stripped off when the option value is read. In order to pass literal "quotes" to your command, you will need two sets of "quotes" on the option value:
Note: Because Rainmeter strips any quotes from the start and end of an option if both exist, it is important to double double-quote the Program and Parameter options If the overall command or parameter requires both starting and ending quotes.
jsmorley wrote: ↑May 1st, 2019, 3:49 pm
Yes, "quotes" at the beginning and end of any Rainmeter option value are always stripped off when the option value is read. In order to pass literal "quotes" to your command, you will need two sets of "quotes" on the option value:
jsmorley wrote: ↑May 1st, 2019, 4:03 pm
This: Parameter=""E:\This is a Test\Test\test.txt""
And this: Parameter=""E:\This is a Test\test.txt""
Are entirely different things...
Yeah, sorry, that was my fault then. But my original issue still persist, with more information though. Now I know it's a lua issue then, probably mine:
You might try escaping the embedded "double quotes" \" in the bang in Lua, so Lua doesn't try to treat them as functional quotes in context of the string.