I made test wih the code below and it worked fine:

#!/usr/local/bin/perl -w
use Tk;
my $mw = new MainWindow();
my $filename=$mw->getOpenFile(-filetypes=>[['MS Word Document', '*.doc']]);
system("$filename");


Bye,

Josimar Nunes de Oliveira

----- Original Message ----- 
From: "Michele Ouellet" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 23, 2003 9:16 AM
Subject: Re: Trying to open a word document on the shell


> You need to supply the full path of your document, even though it may be
> sitting in the "current directory".
>
> Good luck,
>
> Mich�le.
>
> <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > I am trying to open a document as below
> >
> > #!/usr/local/bin/perl -w
> >
> >
> > use Tk;
> >
> >
> > my $mw = new MainWindow();
> >
> > my $filename=$mw->getOpenFile(-filetypes=>[['WinWord','winword.exe']]);
> >
> >
> > system("$filename john.doc");
> >
> >
> > But it says it cannot find the $filename path
> >
> > the $filename form is "C:/Program Files/Microsoft
> Office/Office/WINWORD.EXE"
> >
> > How can i overcome this problem?
> >
> >
> >
> >
>
>
>
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to