Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Open txt file using default program on Windows

by elef (Friar)
on Jun 01, 2013 at 10:56 UTC ( [id://1036414]=note: print w/replies, xml ) Need Help??


in reply to Re: Open txt file using default program on Windows
in thread Open txt file using default program on Windows

I'm going to go ahead and assume that by "assign it", you meant "open the file in Notepad" and not "edit the registry to associate txt files with Notepad". Even if that assumption is correct, no. Just no. Don't override people's preferences for text editors. If the guy wants to view txt files in Notepad++ instead of Notepad (and who can blame him), then let him view his txt files in Notepad++.

I use system ("\"$filepath/log.txt\"") to open log files in case of errors. It seems to work OK.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-03-29 00:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found