I solved this. This was my mistake. For the benefit for other I am posting it here.
I was using an incorrect declaration as follows:
#import "shell32.dll" int ShellExecuteW(int hWnd,int lpVerb,string lpFile,int lpParameters,int lpDirectory,int nCmdShow); #import
The correct one is:
#import "shell32.dll" int ShellExecuteW(int hwnd,string Operation,string File,string Parameters,string Directory,int ShowCmd); #import
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
I did not see any example related to how to pass parameters to a .bat file. With the following code:
I get the following error:
However, the following works when I do not pass any parameters:
Thanks in Advance!