Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^5: windows shortcut and args

by huck (Prior)
on Jan 16, 2017 at 06:25 UTC ( [id://1179632]=note: print w/replies, xml ) Need Help??


in reply to Re^4: windows shortcut and args
in thread windows shortcut and args

how about

ftype PerlRemlaunch=c:\perl64\bin\perl5.16.3.exe "C:\Perl Builder2\Rem +Launch.pl" "%1" assoc .blt=PerlRemlaunch
or maybe
assoc .blt=c:\perl64\bin\perl5.16.3.exe C:\Perl Builder2\RemLaunch.pl +"%1"
I think you were expecting a level of redirection that isnt there. "C:\Perl Builder2\RemLaunch.pl" isnt an executable type (exe,com,...)

Replies are listed 'Best First'.
Re^6: windows shortcut and args
by enrgyxprt (Acolyte) on Jan 16, 2017 at 13:04 UTC
    Nope... May be time to use a batch file in between the .blt and my launcher ...
Re^6: windows shortcut and args
by Anonymous Monk on Jan 16, 2017 at 07:55 UTC

    I think you were expecting a level of redirection that isnt there. "C:\Perl Builder2\RemLaunch.pl" isnt an executable type (exe,com,...)

    Hi,

    It is something that needs checking

    On windows an "executable type" is just another registry entry -- or %PATHEXT% entry -- its possible to break windows by removing .exe/.dll... from said list

    See %PATHEXT%, and chain of links about HKLM\Software\Classes\.exe HKLM\Software\Classes\exefile

      I wasnt going to remove .exe or .dll from any list, I did earlier add .PL; to the PATHEXT.. I do need to hunt the registry...

      problem is, I want this to be "reasonably" easy to use on different machines. I was ultimately going to try and compile the .pl to an .exe and .dll, (which probably would solve this issue.. chicken or egg kinda of thing..)

      I use PerlBuilder IDE to help me, steps through code nicely, allows me to to see "whats on perls mind" even if its only on the surface. I hoped to discover exactly how args were passed, then use the IDE to send the args exactly the same way for development

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1179632]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-19 14:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found