It appears that if a selected file path contains an ampersand, the value passed in {filepath} is truncated at the character preceding the ampersand.
Specifically, I had the file E:\Bills\AT&T\AT&T.zip .
I was trying to pass this file via a hotkey defined as
rexx E:\Bat\Directory_Opus_Extract.rex 1 {filepath}
The invoked script receives E:\Bills\AT .
Can this be correct?
I am using an "unusual" name, but it appears to be a valid name.
I do have to enclose the name in quotes to use it in other contexts.
Leo
June 5, 2008, 8:09pm
2
This is an MS-DOS Batch Mode type of button, right? I see the same thing with that type of button and not with other types.
You can work around it like this:
[quote]@nofilenamequoting
rexx E:\Bat\Directory_Opus_Extract.rex 1 "{filepath}"[/quote]
I've filed a report to GPSoftware to let them know Opus should quote files with & in them when running MS-DOS Batch Mode functions.
[quote="leo"]This is an MS-DOS Batch Mode type of button, right? I see the same thing with that type of button and not with other types.
You can work around it like this:
[quote]@nofilenamequoting
rexx E:\Bat\Directory_Opus_Extract.rex 1 "{filepath}"[/quote]
I've filed a report to GPSoftware to let them know Opus should quote files with & in them when running MS-DOS Batch Mode functions.[/quote]
Yes, it's an MS-DOS Batch Function and your work around works.
Thanks.
Is there any reason to not simply quote all filenames? I know it's not necessary for "simple names", but is it ever harmful?
Leo
June 5, 2008, 10:43pm
5
I've never known it to cause a problem with anything.
In theory a program might not understand the quotes, I suppose.
[quote="leo"]I've never known it to cause a problem with anything.
In theory a program might not understand the quotes, I suppose.[/quote]
I don't know if the point of my question was clear or not and I know you don't have the final word on this. but ...
You said you had notified GPSoftware that Opus should quote files with an & in them when running MS-DOS batch functions.
Understanding that you can't speak for GPSoftware, does it seem desirable to you that Opus simply quote all filenames when running any function?
Leo
June 6, 2008, 7:51pm
7
It's not my decision but if it was up to me I'd just fix the problem with & in MS-DOS functions and leave everything else as it is, just in case changing things does break something.