From: [EMAIL PROTECTED]
> Quoting Jenda Krynicky <[EMAIL PROTECTED]>:
>
> > From: [EMAIL PROTECTED]
> > > i use the system() to the job
> > >
> > > Especially, system("start"," ",$winword_path,$doc_file);
> > >
> > > It opens the doc file through the winword.exe but it raises some
> > > error messages concerging the prototypes of the winword.
> >
> > First, drop the space. You are not supposed to add any separators if
> > you use the list version of system().
> >
> > Second, it's generaly better to use
> > system( 1, $command, @params)
> > than
> > system( 'start', $command, @params)
> > The first version is more portable.
> >
> > Jenda
>
> This works great on my system, but what confuses me most is that this
> code doesn't work prperly on another Win2k system. I cannot figure out
> what is the real problem. Both systems are w2k.
Sorr. What code?
The
system( 1, $winword_path, $doc_file);
or the
system( 'start', $winword_path, $doc_file);
or your original
system( 'start', " ", $winword_path, $doc_file);
?
Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]