Excuse me for being in a rush and not having time to develop a sample, but I
think what you want to do can be determined using WMI, in the CIM_Datafile
class, there is a property named InUseCount:
http://msdn.microsoft.com/en-us/library/aa387236(VS.85).aspx
http://www.slideshare.net/ddn123456/w
Just piggybacking on this a little bit with one more option, if you don't mind
using a windows command, there is a utility in Windows 2003 and higher, and in
Windows Vista and higher, and downloadable for lower versions named 'Robocopy'.
It's very good for unreliable connections or high latency
Just in the simplest and most general of terms, what it sounds like you want to
do is an opendir on the folder, then use readdir to get each of the file names.
Store each filename in a variable, and use it in the open command to open the
file.
You might want to put the code that actually extra
ays\n";
Hope this helps.
Steve
From: Perl Perl [mailto:perl.solut...@gmail.com]
Sent: Wednesday, February 25, 2009 5:52 PM
To: Steve Howard (PFE)
Cc: perl-win32-users@listserv.activestate.com
Subject: Re: Commaring Two dates or month
Thanks a lot Steve,
I tried using y to use Date::Calc
Just a suggestion
Why not use the Date::Calc package and use the Delta_Days function? I used to
use that all the time for things like what I understand you to want to do.
There are a lot of great date functions built into that package that save a lot
of time in development.
Steve
From: perl-w
Not inherent in the hash. You could store the ordinal value as one of the
values in a hash of arrays, and then sort on that when you retrieve the values,
but there is really no way to guarantee the order in which it will be retrieved
from the hash is the same order in which it was inserted. To p
I'll type this directly in so I might make a typo. You should be able to set
the state in the application object:
$Excel->{WindowState} = -4140;
To set back to normal mode:
$Excel->{WindowState} = -4143;
The way to find this is to record a macro in Excel, and do what you want to
see. Then vie
Use "our" instead of "my"
our $var = "value";
Steve
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Greg Aiken
Sent: Monday, July 07, 2008 5:01 PM
To: perl-win32-users@listserv.ActiveState.com
Subject: trouble accessing fully qualified $main::variable co
You can access WMI via Perl pretty much the same way you would any other
automation object. I haven't used it to enumerate the NICs the way you want to
do, but a quick and dirty example of using WMI in Perl is one I wrote to
enumerate drives. You can probably use the windows scripting help to fi
I'm having a little trouble understanding the question. Are you expecting Perl
to compile into an executable program like C would do? If so, Perl doesn't do
that. Perl is an interpreted language, and compiles when called, then executes.
The script is loaded by the interpreter, and must have the
10 matches
Mail list logo