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.
In reply to Re: Open txt file using default program on Windows
by Jim
in thread Open txt file using default program on Windows
by tanyeun
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |