On Mon, Dec 7, 2009 at 6:29 AM, perl pra <perl...@gmail.com> wrote: > Hi All, > > I need to execute "*psexec.exe"* which is in C:\Windows\system32 through > perl scirpt. > .I am getting the error "*'psexec' is not recognized as an internal or > external command,operable program or batch file"* > [snip]
> my $cmd='psexec' . " " . '\\\\' . 10.1.1.121 . ' -u ' . "Adminuser" . ' > -p ' . "adminpassword" . ' -w ' . "C:\\commands\\AutoIT\\ ". " > \"C:\\commands\\AutoIT\\sch.bat\""; > system("$cmd") or die "$!"; > Try using 'psexec.exe' as the command. It's been a while since I've used my Windows scripts. And I seem to remember having to use the extension. Or maybe that's just old age... -- Robert Wohlfarth