in reply to How to run a perl program from the Windows CMD?

  1. Right click 'My computer'
  2. Select 'Properties' from the drop down list.
  3. Select 'Advanced'/'Advanced system settings' (depending on OS version)
  4. Click 'Environment Variables.
  5. Add the path of perl.exe in 'System Variables'->'Path'.
  6. open cmd promt
  7. cd <your_path_where_perl_path_is_saved>
  8. In case your perl file is saved in D drive then, the type D: in cmd promt
  9. run the command perl <perl_file_name>
  • Comment on Re: How to run a perl program from the Windows CMD?