[EMAIL PROTECTED] wrote: > I am facing a very strange problem while i try opening a word document through > my perl program. > > So far, i use the system() function. > > system(1, $winword_pathm $word_document); > > That works well on a win98 system, but it doesn't on another win98 system. > > Those machines have Office 97. > > What is the real problem because it drives me mad. Have you ever face such a > annoying problem? > > Please help!!!
Is the path actually the correct path on both machines? Default installations locations are not always where a program is found. On Windows, it should not be necessary to hard-code the path anyway. The system executable search path shouldinclude the folder containing Winword.exe if Office has been properly installed. All you should need then is: system("winword $word_document"); On Win2K, its even easier. The command environment in NT integrates much better with file associations, so I just need to: system($word_document); Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]