Triyng $x=qx(xcopy a:\\1*.* c:\\tmp); print"\n after \n$x \n before \n";
this is how it looks my dos session -------------------------------------------------------- C:\WINDOWS\Escritorio>perl -w kk.pl 13feb.zip 1 archivos copiados after before -------------------------------------------------------- I think xcopy (and other dos commands, Nbtstat.exe, ...) do not send data to stdout ¿how could i do to catch that data? To capture the output of <STDOUT>, use backticks "`". $x =`xcopy a:\\1*.* c:\\tmp`; print "\n after \n$x \n before \n"; CONFIDENTIALITY NOTICE: ************************************************************************ The information contained in this ELECTRONIC MAIL transmission is confidential. It may also be privileged work product or proprietary information. This information is intended for the exclusive use of the addressee(s). If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, distribution [other than to the addressee(s)], copying or taking of any action because of this information is strictly prohibited. ************************************************************************