Very simplistic example. Modify to suit.
use strict; use warnings; use Tk; my $top = MainWindow->new; $top->geometry('100x100'); my $file = 'C:/Autoexec.bat'; $top->Button( -text => 'Click Me', -command => sub{ system "start C:/Windows/Notepad.exe $file" } )->pack; MainLoop;
In reply to Re: how to open a separate notepad
by thundergnat
in thread how to open a separate notepad
by arunmep
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |