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)
|