Hello all.
I was trying to execute wget from the perl under windows vista.
In cmd i can easily run wget because its in \windows\system32 folder. But from perl,when i try both
system('wget --h');
and
system('c:\windows\system32\wget --h');
i get the next error :
'wget' is not recognized as an internal or external command, operable program or batch file.
And it works when wget is in the same folder of the script, any way to put it using the \windows\system32's wget?
Thanks in advance.

Recommended Answers

All 2 Replies

Try

system("c:\\windows\\win32\\wget");

Forgot about that part, thanks for the help =)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.