<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > i have the following function call > > $filename_winword="C:/Program Files/Microsoft Office/Office/WINWORD.EXE"; > > $result->{DOCUMENT_NAME}= the filename from the database. > > system ("start"," ",$filename_winword,"/n ", "docs/$result->{DOCUMENT_NAME}"); > > Although it works great under Win2000 system, when i run it on a win98 system > it doesn't work. > > Has anyone faced a similar problem?
Hi sc00170 What's that '/n' doing in there? As far as I know there's no such qualifier to 'start', and if there is it should be the first parameter, where you have a space for some reason. Anyway, that's not your problem. It's because W98 uses the 'command.com' shell and W2000 uses 'cmd.exe'. 'command.com doesn't work very well in several ways, and is also the reason that CPAN installations on Win98 often fail. Perl under W98 also seems to ignore settings of the PERL5SHELL environment variable. If you change your call to system('command.com /c command', 'paramA', 'paramB', 'paramC'); then you should be OK. In your case this would be system ( "command.com /c start", $filename_winword, "docs/$result->{DOCUMENT_NAME}" ); Try it and see. HTH, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]