in reply to Re: System hangs question xp
in thread System hangs question xp

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?

Replies are listed 'Best First'.
Re^3: System hangs question xp
by Anonymous Monk on Mar 31, 2006 at 19:14 UTC
    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