in reply to Open txt file using default program on Windows
Curiously, this works on my Microsoft Windows computer. It opens the file named foo.txt in Notepad.
C:\>perl -e "system('foo.txt')" C:\>assoc .txt .txt=txtfile C:\>ftype txtfile txtfile=%SystemRoot%\system32\NOTEPAD.EXE %1 C:\>
I've never written a Perl script that opens a text file in Notepad (or any interactive text editor), and I can't imagine why anyone else would.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Open txt file using default program on Windows
by BrowserUk (Patriarch) on May 31, 2013 at 23:44 UTC | |
by Jim (Curate) on Jun 01, 2013 at 22:52 UTC | |
by BrowserUk (Patriarch) on Jun 01, 2013 at 23:04 UTC | |
by Jim (Curate) on Jun 01, 2013 at 23:17 UTC | |
by BrowserUk (Patriarch) on Jun 01, 2013 at 23:40 UTC | |
| |
by LanX (Saint) on Jun 04, 2013 at 16:00 UTC | |
|