When I double-click on a PL file, I associated it with RUN.BAT, so when I click to open, it runs and the terminal window stays open until I press enter.
I have been reseaching and puzzling on this response and thank you for it. Right now, when I click on a .pl, a dos terminal with strawberry perl exe on the top appears, executes the program and then disappears before I can lay eyes on it. This would be a great time to change this. In this script:
C:\BIN\PERL\TINYPERL -I C:\BIN\PERL\LIB "%1" %2 %3
, what are to be %2 %3 ?
I have been trying to replicate what I see here and at this link
another link, but I seem to have come up short in a command prompt in administrator mode:
PS C:\Strawberry> Ftype Perl_program_file="C:\Strawberry\perl\bin\perl
Ftype : The term 'Ftype' is not recognized as the name of a cmdlet, fu
+nction, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the p
+ath is correct and try again.
At line:1 char:1
+ Ftype Perl_program_file="C:\Strawberry\perl\bin\perl.exe" %1
+ CategoryInfo : ObjectNotFound: (Ftype:String) , Comma
+ FullyQualifiedErrorId : CommandNotFoundException
The assoc command works here:
When I try to fold this into a useful batch file, Perl_program_file doesn't seem to do anything yet:
rem set env variables
rem avoid collisions with other perl stuff on your system
rem set PERL5LIB=
perl -e "printf("""Perl executable: %%s\nPerl version : %%vd\n""", $
+^X, $^V)" 2>nul
if ERRORLEVEL==1 echo.&echo FATAL ERROR: 'perl' does not work; check i
+f your strawberry pack is complete!
Ftype Perl_program_file="C:\Strawberry\perl\bin\perl.exe" %1
When I double click on the .bat file that this is I get:
Perl executable: C:\Strawberry\perl\bin\perl.exe
Perl version : 5.30.0
File type 'Perl_program_file' not found or no open command associated
Press any key to continue . . .
At least I can read the output, but I'm not getting this yet. Do I need to create a .reg file to reassociate .pl?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] |