[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"
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?