[color=#FF0080]Traceback (innermost last):
File “event:propertyChange”, line 12, in ?
IOError: The filename, directory name, or volume label syntax is incorrect
[/color] What’s a better approach? Thanks!
The vast majority of programming languages give special meaning to backslashes in strings, as a way to specify various special characters. You’ll need to double up every backslash you need to really be a backslash in the string.
As a modern convenience, many languages’ file I/O libraries will accept unix-standard forward slashes as folder separators on all platforms, converting internally as needed. This is mostly true for Java.
So, two choices:filePath = "C:\\Vat Report\\Vat 1\\" + date + ".xls"Or:filePath = "C:/Vat Report/Vat 1/" + date + ".xls"
Sorry about that. Yes it is defined as date and I copied and pasted the file path from the browser, and added the extra slashes as suggested. Is it because I’m adding a parameter to the file path?
Thanks that worked. My problem was that I made a mistake on the date format expression. I changed it to the following and it works great. Thanks pturmel
Should a URL be used instead as well? What machine ‘c:’ reference from the Gateway script vs the downloaded Designer (on a separate machine)?
Should these Gateway Scripts only be coded from the Gateway Host?