How do you specify which one to use through the 'system' call? --- Dean Theophilou <[EMAIL PROTECTED]> wrote: > You could also use "Progra~1" instead of "Program > Files". However, the real > problem is that you're using "Command.com" rather > than "Cmd.exe". Cmd.exe > understands long file names, so my suggestion is > that you use that if you can. > > Dean Theophilou > > > -----Original Message----- > From: > [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On > Behalf Of > Swartwood, Larry H > Sent: Friday, February 22, 2002 3:00 PM > To: [EMAIL PROTECTED] > Subject: RE: using a command which includes spaces > in the system() > functio n > > > > You could also use Win32::GetShortPathName() first. > This is untested but I > have done used this approach before. > > Example: > $path = Win32::GetShortPathName('C:\Program > Files\WinCVS\Examdiff.exe'); > system( $path); > > Larry S. > _______________________________________________ > Perl-Win32-Users mailing list > [EMAIL PROTECTED] > To unsubscribe: > http://listserv.ActiveState.com/mailman/mysubs > > _______________________________________________ > Perl-Win32-Users mailing list > [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
===== ------------------------------------ Jeffrey Hottle nkuvu at yahoo dot com __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs