\42 (octal) equates to speech marks (").
This is needed as Win98 cant handle unquoted white space in path names.
Cheers
T
-----Original Message-----
From: jon sof [mailto:[EMAIL PROTECTED]
Sent: 17 September 2003 10:57
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: problems on opening a word document
what the 42 means?
>From: "Tim Vale" <[EMAIL PROTECTED]>
>To: "'jon sof'" <[EMAIL PROTECTED]>
>CC: <[EMAIL PROTECTED]>
>Subject: RE: problems on opening a word document
>Date: Wed, 17 Sep 2003 10:44:15 +0100
>
>Sorry - I meant to add - try...
>
>$winword_path="\42c:\\program files\\microsoft
>office\\office\\winword.exe\42";
>
>Cheers
>T
>
>Is it that your $winword_path="c:/progra~1/micros~1/office/winword";
>does not equate to the same path on your other machine.
>
>Maybe the microsoft directory has a different DOS path name assigned -
>like /micros~2/ for example.
>
>Hard to track how Win98 assigns these directory names (in install order
>- I
>think) where there maybe several dirs starting with microsoft (eg Microsft
>Autoroute, Microsoft Reference, Microsoft Office etc).
>
>Cheers
>T
>
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of jon sof
>Sent: 17 September 2003 09:52
>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>Subject: Re: problems on opening a word document
>
>
>
>
>
> >From: "Rob Dixon" <[EMAIL PROTECTED]>
> >To: "jon sof"
> ><[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>
> >Subject: Re: problems on opening a word document
> >Date: Wed, 17 Sep 2003 09:44:34 +0100
> >
> >jon sof wrote:
> > >
> >
> > > I use the system() to open the word document. It works on a win98
> > > system but not on another similar machine.
> > >
> > > Both machines uses win98.
> > >
> > > What is the problem? It getting annoying.
> >
> >It is likely to be because your file associations are not set up
> >correctly. Check whether double-clicking on a .doc file in Windows
> >Explorer starts Word correctly.
> >
> >You should fix this by reinstalling Word, but for the purposes of
> >your Perl program you could run winword.exe explicitly with the .doc
> >file as a parameter.
> >
> >HTH,
> >
> >Rob
> >
>
>
>That's exactly what i am doing.
>
>$winword_path="c:/progra~1/micros~1/office/winword";
>
>$doc="docs/file.doc";
>
>system(1,$winword_path,$doc);
>
>It works great under a win98 system but not on another win98. It drives
>me mad.
>
>Both machines are equipped with the Office 97.
>
>_________________________________________________________________
>STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>_______________________________________________
>ActivePerl mailing list
>[EMAIL PROTECTED]
>To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
>
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs