OK, I don't know if it is because of lack of sleep or what, but I have looked at a bunch of Perl documentation and tried a number of commands to no avail in an effort to launch CVS and have the CVS window display.
I have downloaded Win32::OLE and tried commands I have found on various Perl websites. When I try to run the script, I see a command window flash briefly and then...nothing. For the sake of space let's assume the cvs exe file is under C:\\CVS.
I have previously written some Perl code for text file manipulation, which works fine. I just can't seem to find the write code to launch an application and have the app's window visible. Any help is greatly appreciated.
I have never worked with CVS - is it a command line application?
We use PERL to build bat files to pull down the latest code from VSS. Once the bat file is created you just either need to execute a <font color="blue">system()</font> to execute it and return back to the PERL script comand, or <font color="blue">exec()</font> to kick off the batch file and stop the PERL script.
The reason we had to use batch files over direct interaction is there are values and varibales that need to be set up at the beginning of the batch file for the code to be pulled correctly. Putting this all in a batch file will allow it all to run in the same workspace, and we can kick off the batch file with the needed command line params from within the <font color="blue">system()</font> command.
Have you made sure that the commands you are trying to send from PERL will kick off CVS correctly? (Have you executed them manually from a command line to see what if any errors you receive)?
At this point I was just trying to launch CVS. I will give your batch file suggestions a try. The QA team here is tasked with running weekly CVS updates on three different build versions (production, new release, and future release) and I have been asked to try to automate the process so we can run it more often without tying up someone's time doing it manually.
You probably sorted this out since but .. 2 things
1 if you want to interact with UI objects using perl, look up the GuiTest module.
2 Cvs is a command line based tool, you don't need to use WinCvs or any other Gui..
I've built a lot of scripts similar to what you re trying to achieve with perl .. just send a bunch of system() commands to do whatever you need, no need to play around with the UI interface [img]/images/graemlins/smile.gif[/img]