Thank you, I thought @ARGV, typed it wrong.. But your response answered my question, ty...

Unfortunately, I hoped for too much, too soon and too quick...

I have set my file extension .blt to open myscript.pl

I have set the following,

C:\WINDOWS\system32>assoc .pl=PerlScript C:\WINDOWS\system32>ftype PerlScript PerlScript=c:\perl64\bin\perl5.16.3.exe "%1" %*

But double clicking a .blt gets me the dreaded "This app cant run on your pc"

Im running windows 10. Tried disabling SmartScreen, stil no joy...

May be Im not thinking clearly. Heres the poop..

I have a program I use for work. It creates txt based files. The program gets updated frequently. Because the updates affect how some things are calculated, we are allowed to open older projects with the version software that created them.

I have hundreds of projects created by close to 16 different versions of software.

New software wants to update old files, and we cant have that. Old software cant open new files. Im forced to use the windows preview pane, looking at the 3rd line in any .blt file tells me which version created that file. Now I have to start the correct exe and finally use the file open function.

Its been 5 years since I was able to double click a file and have it open every time...

SO.. I wanted to make a "smart shortcut script" .... associate .blt with mylauncher.pl, double click any .blt file, have mylauncher.pl grab the 3rd line in the .blt then use a hash filled with a few Versions and exe correct paths. at some point use something like `prog.exe`

Any and ALL help will be rewarded (May be, even in this lifetime lol)

In reply to Re^2: windows shortcut and args by enrgyxprt
in thread windows shortcut and args by enrgyxprt

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.