Peter,

You should have no problems executing binaries using the system()
function,.. but if you're having problems with shell commands like "dir"
etc, you should try something like:

system("c:\winnt\system32\cmd.exe /c dir c:\mydir");

Alternatively there are modules available which will more than likely do
everything and more of what you require. Look on http://search.cpan.com

Nic

> -----Original Message-----
> From: Peter Lemus [mailto:[EMAIL PROTECTED]]
> Sent: 19 April 2001 8:59
> To: [EMAIL PROTECTED]
> Subject: how to execute a windows 2000 command with perl
>
>
> Hi, neeeeeeeeeeeeeeeed help.
>
> Please let me know how I can execute a windows 2000
> command from a perl script? any command like dir for
> example.
>
> thanks,
>
> =====
> Peter Lemus
> Computer Networks Engineer
> [EMAIL PROTECTED]
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>

Reply via email to