Making a shortcut for a Perl program under Windows using a DOS batch file.

Posted by Micah on Stack Overflow See other posts from Stack Overflow or by Micah
Published on 2010-03-13T23:07:27Z Indexed on 2010/03/13 23:15 UTC
Read the original article Hit count: 513

Filed under:
|
|

I'm trying to "hide" some of my perl program from the end user to make things easier on them. I'm doing what I can to keep them out of the command prompt. The program itself has a GUI designed in Perl/Tk, so they don't have to worry about the command prompt.

Could I write out a quick batch file that goes along the lines of:

START perl 'C:\[some path here]\myscript.pl'

with START to start a program, the perl interpretor as my program, and the path/name of my perl script as the parameter?

Would I have to specify where to find perl or would Windows just know because perl is in the computer's PATH variable?

Thanks for the help!

© Stack Overflow or respective owner

Related posts about perl

Related posts about batch-file