Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: system() on linux/win32

by dree (Monsignor)
on Apr 25, 2002 at 22:23 UTC ( #162124=note: print w/ replies, xml ) Need Help??


in reply to system() on linux/win32

To open an excel file (.xls) on Win32, without blocking the script, try this:

use strict; use Win32::Shell; #Win32::Shell::Execute(Operation, File, Parameters, Directory, ShowCmd +) my $file="C:\\windows\\desktop\\file.xls"; Win32::Shell::Execute("open", "$file", 1, undef, "SW_SHOW");

Update: added code tags, larsen


Comment on Re: system() on linux/win32
Download Code
Re: Re: system() on linux/win32
by NaSe77 (Monk) on Apr 26, 2002 at 08:29 UTC
    thanx fellow monk,

    rests only one little prob: i can't find win32::shell nither using ppm nor cherching the cpan nor using google .. can u give a link please?

    NaSe

      Hello!

      With PPM I see:
      PPM> search win32::shell Packages available from http://ppm.ActiveState.com/cgibin/PPM/ppmserve +r.pl?urn:/ PPMServer: Win32-Shell [0.03] A simple extension for displaying Windows message b +oxes and
      So you can install it writing:
      PPM>install Win32-Shell
      Another way is:
    • to download the zip file from:
      http://www.activestate.com/PPMPackages/zips/6xx-builds-only/Win32-Shell.zip
    • unpack it into a directory
    • from a DOS shell cd into the directory, write: ppm install --location=. Win32-Shell
        thanx the second works ...

        NaSe

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://162124]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2014-09-21 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (168 votes), past polls