Von_Halen has asked for the wisdom of the Perl Monks concerning the following question:
##### EDIT #####
So I should probably explain what I'm really trying to achieve ( At the suggestion of Kennethk calling me out on my XY Problem description ).
I plan to have many different text files in a folder... and I want to be able to run each one as a command whenever I want, just by typing in the name of the file... I suppose I could do the files as batch files instead, now that I think about it.. Although I'm still curious as to the process for it.
Had some good comments thus far, thanks guys.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Code to Open A File and Run Text From CMD Link
by kennethk (Abbot) on Aug 18, 2014 at 18:50 UTC | |
|
Re: Code to Open A File and Run Text From CMD Link
by toolic (Bishop) on Aug 18, 2014 at 18:02 UTC | |
|
Re: Code to Open A File and Run Text From CMD Link
by Laurent_R (Canon) on Aug 18, 2014 at 19:03 UTC | |
|
Re: Code to Open A File and Run Text From CMD Link
by GotToBTru (Prior) on Aug 18, 2014 at 18:24 UTC | |
|
Re: Code to Open A File and Run Text From CMD Link
by Anonymous Monk on Aug 19, 2014 at 08:09 UTC |