Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: EXCEL with PERL

by guha (Priest)
on Aug 12, 2004 at 16:24 UTC ( #382349=note: print w/ replies, xml ) Need Help??


in reply to EXCEL with PERL

If you don't care about saving the open spreadsheets, this snippet will brutally close down all open instances of Excel.

#!perl -w use strict; use Win32::OLE; my $ex = Win32::OLE->GetActiveObject('Excel.Application') or die "No a +ctive objects around\n"; $ex->{DisplayAlerts} = 0; $ex->Quit;

Another way to do it, at least on WinXP would be the system command.

taskkill /f /im EXCEL.EXE


Comment on Re: EXCEL with PERL
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2014-12-21 09:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (104 votes), past polls