perl -n -e"system('srvinfo.exe '.$_);" srv.txt >srvres.txt
assuming that srv.txt containing lines with servernames like this :
\\server1
and srvres.txt is your result file...
Yves
-----Message d'origine-----
De: Clayman, Mark [mailto:[EMAIL PROTECTED]]
Date: lundi 17 septembre 2001 05:18
�: '[EMAIL PROTECTED]'
Objet: srvinfo.exe collection
Hi All,
Forgive me as I'm a novice to Perl scripting, but I was wondering if someone
would be able to point me in the right direction. I'd like to create a
script to run srvinfo.exe against a list of servers and/or ip address and
collect the info in one file to report on later.
Any help would be appreciated.
Thanks
Mark
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin