Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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

by elef (Friar)
on Jun 01, 2013 at 10:56 UTC ( #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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1036414]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2018-01-18 02:28 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (206 votes). Check out past polls.