Inside of Hyperion Reporting Studio I have a document level script where I wish to call a batch file and pass arguments to the batch file.
Here is the code I have:
var Path = "W:\\directory\\Reference_Files\\scripts\\vbs\\SendEmail.bat"
var Email = "my.email@xxx.com"
var Subject = "My Subject"
var Body = "My Body"
var Attach = "W:\Maughan.xls"
Application.Shell(Path + " " + Email + " " + Subject + " " + Body + " " + Attach)
This code does not open the file, but gives the error message The filename, directory name, or volume label syntax is incorrect.
If I pass Path
by itself my bat file runs (giving me a warning because no parameters are passed) and I when I run the same code from the Shell Command, it works flawlessly.
Can anyone provide any insight into the correct syntax to pass into the Application.Shell
method so that it reads my parameters and passes them to the batch file? I have been searching high and low online to no avail.