Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (13)
As of 2016-10-26 17:18 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (344 votes). Check out past polls.