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

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

by rpnoble419 (Pilgrim)
on Jun 01, 2013 at 15:07 UTC ( [id://1036454]=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 should know better then to answer these when I'm tired.

As he has permission to install his program and Perl with it, I assume (we all know where that can lead) I hope he has the smarts to ask the end user first if its ok to make any changes. But a better solution would be to do the following

system ('start c:\windows\notepad.exe filename.txt');

Now he will always get Notepad to open the text file.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-19 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found