I'm trying to accomplish the utterly trivial task of extracting and
displaying data from the registry, using the StdRegProv class with WMI.
Using VBScript, it's simple enough. The following script prints the
registered owner (I used a script in "WMI: Windows Management
Instrumentation" for inspir
> Is there a simpler way ?
---
use strict;
use Benchmark;
timethese (-1, {
one => 'my @one = (1..10);
my @two = (11..20);
scalar(@one);',
two => 'my @one = (1..10);
my @two = (11..20);
scalar(@two), "\n";'
});
---
Benchmark: running one, two, each for at least 1
Hi,
Seems that if you 'use strict' (or even simply declare with 'my') then none
of the variables can be accessed by a Benchmark test.
To illustrate:
#! perl -w
use strict;
use Benchmark;
my @one = (1..10);
my @two = (11..20);
timethese (5, {
'one' => 'print scalar(@one), "\n";',
'two' => 'print
> Dear friends,
> I would like to get the
> password from the COMMANDMODE . Can you please help me with
> your suggestions.
>
> Expecting your wishes,
> Pons.
If you mean you are wanting to use your perl script to retrieve a password
from a prompt on the command
Dear friends,
I would like to get the password from the COMMANDMODE .
Can you please help me with your suggestions.
Expecting your wishes,
Pons.
Ponnambalam. M.A.
Philips Medical Systems,
Philips Innovation Campu
> I don't think runas is capable of taking a password on the
> command line.
> You could use CreateProcessAsUser from Win32::AdminMisc instead.
>
I'd almost bet money that the API call that Win32::AdminMisc is what RunAs
uses, itself. :-)
jpt
___
Per
> I'm suprised that no-one has mentioned this yet but In
> windows 2000 group policies (there are also other ways
> to do this) you can use 'folder redirection' to
> redirect special folder such as 'my documents' to
> another location. ou don't have to use a server based
> profile (ie: roaming) t