develooper Front page | perl.beginners | Postings from February 2002

Can't take stdout in w98 xcopy

Thread Next
From:
daniel.sanchez.fabregas
Date:
February 13, 2002 06:54
Subject:
Can't take stdout in w98 xcopy
Message ID:
59ED96D39D3BD411B19A0090279AF0040CD308@APDRP00S
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?

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About