D
D
Dmitry2015-07-27 16:56:16
Perl
Dmitry, 2015-07-27 16:56:16

How to run PowerShell commands from Perl script?

There is a perl script, from which you need to run a powershell command to download the file. How to implement it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2015-07-27
@saboteur_kiev

exec('powershell command');
But in general, in your case, I would suggest downloading the file using pearl, it's more native and easier.

A
Alexander Ruchkin, 2015-07-27
@VoidEx

Just how to call the program

powershell -Command { ... }
powershell -File ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question