|
|
Hi,
Try this way,
my $my_dir = 'home/your_dir';
`cd $your_dir`;
`dir *.txt /b > a.dat`;
Regards
C.M
Satish.Waghmare@xxxxxxxxxxxxx
Sent by: activeperl-bounces@xxxxxxxxxxxxxxxxxxxxxxxx
03/04/2005 03:43 PM
To: activeperl-bounces@xxxxxxxxxxxxxxxxxxxxxxxx
cc: activeperl@xxxxxxxxxxxxxxxxxxxxxxxx
Subject: To Run System Command
Hi :
I'm using ActiveState PERL 5.8 on Windows Platform.
I want to know about How to run a DOS command through a PERL script.
I want to run a below DOS commmand and then read the result from the file
it has created.
Command-- dir *.txt /b > a.dat
Kindly please help me.
Thank You
Regards
~Satish
_______________________________________________
ActivePerl mailing list
ActivePerl@xxxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
ActivePerl mailing list
ActivePerl@xxxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
|
|