Accessing StdRegProv class with WMI

2002-06-03 Thread Gregory_Mortensen
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

Re: Using both 'Benchmark' and 'strict'

2002-06-03 Thread Ron Grabowski
> 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

Using both 'Benchmark' and 'strict'

2002-06-03 Thread Sisyphus
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

RE: How will i get the Password from the command mode

2002-06-03 Thread Tillman, James
> 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

How will i get the Password from the command mode

2002-06-03 Thread ponnam . balam
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

RE: windows 2000 programmatic call to RunAs - password question

2002-06-03 Thread Tillman, James
> 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

RE: Determining Default 'My Documents' folder path

2002-06-03 Thread Tillman, James
> 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