Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 avoiding work at the Monastery: (4)
As of 2014-10-21 00:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (93 votes), past polls