Zilee 0 Posted February 10, 2011 Hi, I need to automate the installation of perl package manager packet's. I used a simple Run("cmd.exe") Sleep(2000) Send("ppm install --area site --force String-CRC32") Send("{enter}") Here is an example of a good result: Downloading String-CRC32-1.4...done Unpacking String-CRC32-1.4...done Generating HTML for String-CRC32-1.4...done Updating files in site area...done 7 files unchanged The thing is, the code above is working but the result is unexpected. It stops at: Downloading String-CRC32-1.4... I can manually type this command in a cmd console and it works perfectly. Share this post Link to post Share on other sites
enaiman 16 Posted February 10, 2011 I doubt it will make a difference in your case - because it is basically the same as you did but in a more elegant form. You can try to replace all your code with this: Run(@ComSpec & " /c " & 'ppm install --area site --force String-CRC32', "", @SW_SHOW) Anyway - you have nothing to lose by trying it. SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example scriptwannabe "Unbeatable" Tic-Tac-ToePaper-Scissor-Rock ... try to beat it anyway :) Share this post Link to post Share on other sites
Zilee 0 Posted February 11, 2011 I doubt it will make a difference in your case - because it is basically the same as you did but in a more elegant form. You can try to replace all your code with this: Run(@ComSpec & " /c " & 'ppm install --area site --force String-CRC32', "", @SW_SHOW) Anyway - you have nothing to lose by trying it. Is it possible that the cmd.exe I run from the run function of autoit and the one I execute from the 'run as' window in windows has different permissions? Because I add an env variable before executing the cmd in autoit to bypass the proxy. Maybe an EnvUpdate will do the trick. P.S I know that syntax, I used it at first, not ideal for debugging though. Share this post Link to post Share on other sites