Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Code to Open A File and Run Text From CMD Link

by Anonymous Monk
on Aug 19, 2014 at 08:09 UTC ( [id://1097945]=note: print w/replies, xml ) Need Help??


in reply to Code to Open A File and Run Text From CMD Link

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.

You cannot execute text files without changing the text file association ... perl will execute text files (or any files, perl doesn't care about file extension

The batch processor generally will refuse to process text files, it cares about file extension

  • Comment on Re: Code to Open A File and Run Text From CMD Link

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-04-19 01:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found