Subscribe To RSS

Cant execute perl scripts?

Written by ScriptInstaller on October 25th, 2009

Dfg D asked:

Hi, I made a program that needs to be executed through The command prompt. I’ve tried so many ways but all it does is give me this error “Windows cannot open this file” then it says “Search the internet for the correct program, OR Use a default program”

For the record yes i have activeperl downloaded and installed

Heres the following ways i’ve tried to get it to work (Please note every time i skip a line that means i pressed enter when i was trying to open it)

cd desktop
perl whateverfile.pl

Example 2:
cd C:\Perl\bin
whateverfile.pl

Example 3:
cd C:\Perl\bin
perl whateverfile.pl

Example 4:
cd ..
cd ..
cd Perl\bin
perl whateverfile.pl

Non of these ways were successful can someone please help me?


Related Blogs

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • YahooMyWeb
  • Google Bookmarks
  • Yahoo! Buzz
  • TwitThis
  • Live
  • LinkedIn
  • Pownce
  • MySpace

Tags: , , , , ,

1 Comment at "Cant execute perl scripts?"

Anonymous October 25th, 2009 (#)

Is whateverfile.pl in C:\perl\bin?

My guess is probably not. When you put in the filename, try putting in the full path.

cd C:\Perl\bin
perl C:\somefolder\whateverfile.pl