in reply to System hangs question xp

it works for me.. The only change i made was to add a colon next to the $outdoc

#!/usr/bin/perl -w use strict; use warnings; my $outdoc ="www.google.ca"; system("c:\\Program Files\\Internet Explorer\\IEXPLORE.EXE", $outdoc);

Replies are listed 'Best First'.
Re^2: System hangs question xp
by gj2666 (Beadle) on Mar 31, 2006 at 18:23 UTC
    It comes up fine but when you use the print function to print the page that's where I hang. I've been working with this syntax this morning and it looks promising but for the damn spaces in the file names that someone (IE probably) keeps changing the spaces to %20.
    `start "format cr to print" /SEPARATE "c:\\Program Files\\Internet Explorer\\IEXPLORE.EXE" "$outdoc2"`;
    where the variable $outdoc2 = "C:\Documents and Settings\username\Local Settings\Temporary Internet Files\cr.html"
    IE ends up trying to access: http://"c:/Documents%20and%20Settings/username/Local%20Settings/Temporary%20Internet%20Files/cr.html".
    Any tips on fooling IE?
      This works for me:
      my $docname = 'C:\Dokumente und Einstellungen\Administrator\Desktop\cr +.html'; system 'start "test 1 2 3" iexplore '.$docname; print "I returned immediately, doesn't matter if the user wants to pri +nt the file from IE\n";
        That seemed to work. It also eliminated the extra command window that was a nuisance. Thanks so much. You are the wind beneath my wings!....gj