jonatas:
You can try it with ShellExecuteA()...
Hi. I'm trying to call a ruby script using WinExec external function. I set all parameters that allows it to use external parameters. I'm getting the error 33. I can't find a useful answer about this question.
My code:
Comment("Resulting: ", WinExec("c:\ruby192\bin\ruby.exe c:\myfile.rb"));
And it's returning 33. Anybody knows about this code? how can I do that?
Error 33: it's impossible to access the file. Have you tried this:
Comment("Resulting: ", WinExec("c:\\ruby192\\bin\\ruby.exe c:\\myfile.rb"));
?
jonatas:
33 is meant to indicate success. See http://msdn.microsoft.com/en-us/library/ms687393(VS.85).aspx: "If the function succeeds, the return value is greater than 31." If WinExec() returns 33 then the file should have been run successfully.
And it's returning 33. Anybody knows about this code? how can I do that?
Thank you very much everybody! I fix the errors in both cases.
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'm trying to call a ruby script using WinExec external function. I set all parameters that allows it to use external parameters. I'm getting the error 33. I can't find a useful answer about this question.
My code:
And it's returning 33. Anybody knows about this code? how can I do that?