954,541 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

System()?

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.

jen140
Junior Poster
117 posts since Jan 2009
Reputation Points: 11
Solved Threads: 6
 

Try

system("c:\\windows\\win32\\wget");
mitchems
Posting Whiz in Training
295 posts since Feb 2009
Reputation Points: 26
Solved Threads: 38
 

Forgot about that part, thanks for the help =)

jen140
Junior Poster
117 posts since Jan 2009
Reputation Points: 11
Solved Threads: 6
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: