snoopy.pa30 Posted December 1, 2006 Share Posted December 1, 2006 Help! I am running an automation script that pieces together MANY programs in sequence. One of the pieces is a Ruby script that does some file merging and data manipulation (that I don't think AutoIT could do). My problem is that when I run the Ruby Script from within my AutoIT script it does not work properly. When I run the Ruby Script manually it runs properly. Any ideas?? Here is the line that calls my Ruby Script: RunWait("C:\ruby\bin\ruby.exe C:\QPD\6Scripts\QPDProcess.rb ") After the above processing I run a PERL script that works fine. The line that calls Perl Script is: RunWait("C:\Perl\bin\perl.exe C:\QPD\6Scripts\addntdays.pl ") Any help would be greatly appreciated. Snoopy "Still trying to shoot down that Red Baron" Snoopy=====Still trying to shoot down that Red Baron :-)) Link to comment Share on other sites More sharing options...
NELyon Posted December 1, 2006 Share Posted December 1, 2006 Have you tried ShellExecute? Link to comment Share on other sites More sharing options...
snoopy.pa30 Posted December 1, 2006 Author Share Posted December 1, 2006 Thanks D, but there isn't much in the way of documentation on the parameters for ShellExecute. I did look in the FAQ, and it shows a couple of examples, but does not explain all the parms. I have tried it - but it gives me an error - Unknown function name for the ShellExecuteWait here is my calling line(s): ShellExecuteWait("C:\QPD\6Scripts\QPDProcess.rb ") ShellExecuteWait("C:\QPD\6Scripts\QPDProcess.rb", "", "", "") ShellExecute("C:\QPD\6Scripts\QPDProcess.rb ") ShellExecute("C:\QPD\6Scripts\QPDProcess.rb", "", "", "") I Assume I have to "include" something to get the ShellExecute to work. But What? But where can I find docs on it???? Thanks Snoopy=====Still trying to shoot down that Red Baron :-)) Link to comment Share on other sites More sharing options...
NELyon Posted December 1, 2006 Share Posted December 1, 2006 are you using one of the latest betas? Link to comment Share on other sites More sharing options...
snoopy.pa30 Posted December 2, 2006 Author Share Posted December 2, 2006 Thanks D Will Download latest and see what happens. Have a good weekend. Won't be able to work on this till sometime next week. Snoopy Snoopy=====Still trying to shoot down that Red Baron :-)) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now