Johnson
Cc: Michael D. Smith; perl-win32-users@listserv.ActiveState.com
Subject: Re: PERL on a CD
The only downside to running (Active)Perl from a CD, is that ppm does
not seem to work. Something about paths being wrong and stuff.
Appreciate any solutions to this matter.
Timothy Johnson wrote
I think you want the Autorun.inf file, not ini.
Check out the reference here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellc
c/platform/shell/programmersguide/shell_basics/shell_basics_extending/au
torun/autoplay_cmds.asp
-Original Message-
From: [EMAIL
Also note that you should be able to use a path, like so:
open=perl\bin\perl.exe myscript.pl
(with the same caveat Jan gave us yesterday that you have to make sure
you're appropriately licensed if you plan to distribute outside of your
organization)
-Original Message-
From: Timothy
The only disadvantage to running Perl from a CD is that the file
associations would not be there, so you would have to prepend perl.exe
to your command-line to launch your script.
perl myscript.pl
Other than that, you can just copy your perl directory to a CD and run
it from any machine with a
It's just expanding $ENV{TEMP} to get that directory, so you should
still be able to write the temporary files to the cache. There should
be no registry entries or DLL registries required, but I don't have a
lot of experience with PAR.
-Original Message-
From: [EMAIL PROTECTED]
ACLs don't automatically update when their parent is updated unless
certain APIs are used (see
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q266461; and
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauth
z/security/setsecurityinfo.asp).
If you want to propagate
Sorry, I guess I misunderstood. I've been really busy lately, but I
might have a chance to look closer tonight. Maybe a second set of eyes
will turn something up.
-Original Message-
From: Giuoco, Aaron [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 18, 2006 1:01 PM
To: Timothy Johnson
Can you do an ftp ftp.servername.com
from the same computer at the command-line?
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Ted Yu
Sent: Friday, July 14, 2006 10:35 AM
To: perl-win32-users@listserv.ActiveState.com
Subject: Net:FTP not connecting to a particular
Forgot to respond to the list.
From: Timothy Johnson
Sent: Friday, July 14, 2006 4:02 PM
To: 'Ted Yu'
Subject: RE: FTP not connecting to a particular site.
This sounds like a name resolution issue then. Have you
tried doing an NSLOOKUP
.
Thanks, that seems like the
issue. I'm kind of new to name resolution issues. Is there some
sort of magic file located on the computer where I can edit to make
everything work back to normal?
Timothy Johnson [EMAIL PROTECTED]
wrote:
Forgot to respond to the list
To: Timothy Johnson
Cc: Perl-Win32-Users@listserv.ActiveState.com
Subject: Re: Block Alt+TAB?
snip
It would have to be a custom screensaver. It needs to do such things as:
* Show a custom message
* Show a countdown timer (how much time they have to unlock the screen
before they are automatically
D'oh! Correct.
-Original Message-
From: Ng, Bill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 14, 2006 6:14 AM
To: Timothy Johnson; Lyle Kopnicky
Cc: Perl-Win32-Users@listserv.ActiveState.com
Subject: RE: Block Alt+TAB?
FYI CTRL+SHIFT+ESC will launch the task manager
, though.
-Original Message-
From: Lyle Kopnicky [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 14, 2006 2:51 PM
To: Timothy Johnson
Cc: Perl-Win32-Users@listserv.ActiveState.com
Subject: Re: Block Alt+TAB?
Timothy Johnson wrote:
Hmm. Can they do Ctrl+Alt+ESC, or Win+D?
They can't
Are you sure that's what you want to do? There are other ways to get
around what you're trying to do. What's to stop them from killing it in
Task Manager, for example?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Lyle Kopnicky
Sent: Tuesday, June
find some way around it.
-Original Message-
From: Lyle Kopnicky [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 13, 2006 5:03 PM
To: Timothy Johnson
Cc: Perl-Win32-Users@listserv.ActiveState.com
Subject: Re: Block Alt+TAB?
Timothy Johnson wrote:
Are you sure that's what you want to do
;
}
}
#
-Original Message-
From: Edward Bosco [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 08, 2006 9:43 AM
To: Timothy Johnson; Jan Dubois; $Bill Luebkert; D D Allen
Cc: perl-win32-users@listserv.ActiveState.com
Subject: RE: Spawining interactive
Maybe try /r/f instead of /r/n?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jack D.
Sent: Thursday, June 08, 2006 2:55 PM
To: perl-win32-users@listserv.ActiveState.com
Subject: Win32::Printer - Multiple Line Output
I'm trying to print multiple
Out of curiosity, why are you printing directly to the printer?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Timothy Johnson
Sent: Thursday, June 08, 2006 3:31 PM
To: Jack D.; perl-win32-users@listserv.ActiveState.com
Subject: RE: Win32::Printer
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jack D.
Sent: Thursday, June 08, 2006 5:12 PM
To: 'Chris Wagner'; perl-win32-users@listserv.ActiveState.com
Subject: RE: Win32::Printer - Multiple Line Output
snip
That was the first one I tried :-).
You might want to try using WMI and Win32_Process to spawn the process.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Edward Bosco
Sent: Wednesday, June 07, 2006 12:49 PM
To: perl-win32-users@listserv.ActiveState.com
Subject: How spawn independent
Have you tried recording a macro to see if you can get a VBA function
for invoking it? If you can swing that, then you would have a good
starting point.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
jagdish eashwar
Sent: Saturday, June 03, 2006 6:53 PM
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Sisyphus
Sent: Saturday, June 03, 2006 7:45 PM
To: eyal edri; perl-win32-users@listserv.ActiveState.com
Subject: Re: Carriage Return charachter in dos prompt
What I was unable to do is insert carriage
It looks like something like this might work:
$xl-Addins(Analysis ToolPak)-{Installed} = 'True';
I'm pretty busy today so the syntax might be a little off, but that's
basically it. Klaatu Barada Nicto, or something.
-Original Message-
From: Timothy Johnson
Sent: Monday, June 05, 2006
I dont think
you can do that unless you find some way to pass it as an escape sequence or
something string. One of the idiosyncrasies of the MS console is that if
it hits a newline character it will close your double-quotes for you and just
consider everything from the double-quote to the
: Ken
Barker [mailto:[EMAIL PROTECTED]
Sent: Friday, June 02, 2006 1:08
PM
To: Timothy Johnson;
eyal edri; perl-win32-users@listserv.ActiveState.com
Subject: RE: Carriage Return
charachter in dos prompt
Another
option might be to write it out to a batch file within the script as you would
Have you tested this?
In my tests the batch file chokes in exactly the same way as typing it in at
the command prompt, passing the newline to cmd and starting a new command.
From: Ken
Barker [mailto:[EMAIL PROTECTED]
Sent: Friday, June 02, 2006 1:28
PM
To: Timothy Johnson;
eyal
I've never used Net::FTP from a static address, so I doubt that's the source of
the problem.
Is the client on a different subnet? Are there any firewall rules that might
apply?
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ted Yu
Sample code would be appreciated. I don't use it myself, but I can try
it out and see what sticks.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
DePriest, Jason R.
Sent: Wednesday, May 31, 2006 11:42 AM
To: perl-win32-users@listserv.ActiveState.com
I think that's what most of us were getting at. In order for your or
conditions to be tripped you would have to get something back that did not
evaluate to false. In the case of a function that is returning positive
numbers for error codes, there is about a 99% chance that it is returning 0
the results you wanted.
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 6:23 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; Timothy Johnson;
[EMAIL PROTECTED]
Cc: perl-win32-users@listserv.ActiveState.com
Subject: Resolved
Title: Question about Win32-OLE
Are you sure that the
connect method is returning a non-zero value on success? What happens if you
take out the die clause?
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, May 24, 2006
11:59 AM
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Lyle Kopnicky
Sent: Friday, May 19, 2006 2:38 PM
To: Jack D.
Cc: Perl-Win32-Users@listserv.ActiveState.com
Subject: Re: A system modal dialog box?
snip
The end-users have a time limit to use the system.
For that you can use the \Q and\E operators
/\Q^Root:\s+(.*)$\E/;
Check out 'perldoc perlre'
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Carter Thompson
Sent: Friday, May 19, 2006 4:37 PM
To: Perl Users
Subject: mistaken newline
snip
Root:
I don't know if that's possible. You can create a dialog box that won't
go away until you click on it and is always in the foreground, but I
don't know if it will be possible to not allow any other interaction
until the dialog box is dealt with.
-Original Message-
From: [EMAIL
I think you would need
to have an ssh server running on your Windows box first, but I havent
tried it.
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, May 16, 2006 8:45
AM
To:
perl-win32-users@listserv.ActiveState.com
Subject: Does
Try using the UserCheckPassword function of Win32::AdminMisc.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Ng, Bill
Sent: Tuesday, May 16, 2006 12:24 PM
To: Paul Sobey; perl-win32-users@listserv.ActiveState.com
Subject: RE: Checking a local password
Are you getting the
ProcessId property returned at the end? Have you checked the contents of
$varPID?
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy Speagle
Sent: Monday, May 15, 2006 2:19 PM
To:
perl-win32-users@listserv.ActiveState.com
Subject: Remote
PM
To: Timothy Johnson
Cc:
perl-win32-users@listserv.activestate.com
Subject: Re: Remote WMI +
Win32_Process
Aye...
$varPID is set properly... but I'm trying to reason out a way to detect when
the remote process exists I have a feeling I'm going to need to
periodically query the process
You should submit this
to the PDK list. Ive tried changing the authentication level, etc. but
as far as I can tell your code is correct.
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of D D Allen
Sent: Thursday, May 11, 2006 5:24
AM
To:
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Chris Wagner
Sent: Thursday, May 11, 2006 2:53 PM
To: perl-win32-users@listserv.ActiveState.com
Subject: Re: WbemScripting.SWbemRefresher VBScript - Perl
At 08:23 AM 5/11/2006 -0400, D D Allen wrote:
I've
Check this key's default value:
HKEY_CLASSES_ROOT\acrobat\shell\open\command
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Dirk Bremer
Sent: Tuesday, May 09, 2006 12:49 PM
To: Active State Perl
Subject: Calling Acrobat Reader
I'm developing a nice
Quick and dirty: Make two hashes of arrays, one indexed by IP address,
and one by computername.
#
#NOTE: Not tested
use strict;
use warnings;
my %byName;
my %byIP;
open(INFILE,,myfile.txt) or die(Couldn't open 'myfile.txt' for
reading!\n);
while(INFILE){
chomp $_;
Do you know how to get the count of an array?
Using my example, since you know that you can cycle through the keys of
%findName and %findIP, and you know that you can access each array by
dereferencing it like so: @{$findName{$name}}, you should be able to
find the count of @{$findName{$name}}.
How about this:
print $char x $number_of_chars . \n for 1..$number_of_lines;
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Karl-Heinz Kuth
Sent: Monday, May 08, 2006 4:30 PM
To: perl-win32-users@listserv.ActiveState.com
Subject: Problem with print
;
}
}
}
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Timothy Johnson
Sent: Monday, May 08, 2006 3:04 PM
To: King, Dan; perl-win32-users@listserv.ActiveState.com
Subject: RE: Finding partly duplicated records
Do you know how to get the count of an array?
Using my
Title: Win32::OLE::Variant, perl crashing.
Not sure off the top
of my head. Is there any way you could post some example code?
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Satish Kaushik
Sent: Friday, May 05, 2006 12:24
PM
To:
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
David Kaufman
Sent: Tuesday, May 02, 2006 10:29 PM
To: perl-win32-users@listserv.ActiveState.com
Subject: Re: Easy One
snip: Bill's email
my ($b, $c) = ($1, $2) if $a =~ /^(\D+)(\d+)/;
Don't do that! $a
Nice. Here's the code in Perl (untested, but it should be the same).
use Win32::OLE;
my $xl = (Win32::OLE-GetActiveObject('Excel.Application') ||
Win32::OLE-new('Excel.Application'));
$xl-Application-Goto({Reference =
Why did you add the o? I believe you should only need that if you are
storing the regex in a scalar for reuse. Otherwise I think the regex
will still be compiled once for each iteration.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Nelson R. Pardee
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Luke Bakken
Sent: Tuesday, May 02, 2006 6:16 AM
To: Timothy Johnson
Cc: perl-win32-users@listserv.ActiveState.com
Subject: Re: Easy One
I have a string, $a for arguments sake, that contains
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
$Bill Luebkert
Sent: Tuesday, May 02, 2006 5:42 PM
To: perl-win32-users@listserv.ActiveState.com
Subject: Re: Easy One
snip: snippiness
The original problem stated that the string
will have different
How about something like this?
#Check the length
unless(length($myScalar) != 8){
die(Bad Scalar! Bad!\n);
}
#Get the parts
if($myScalar =~ /^([^0-9]*)(\d+.*)$/ ){
print $1 $2\n;
}
NOTE: NEVER name your variable $a. $a
Title: Returning to a Worksheet where a hyperlink was used - in Excel with
Win32::OLE
I cant test
this, but have you tried Alt + ?
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Glen Plantz
Sent: Monday, May 01, 2006 1:47 PM
To:
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Luke Bakken
Sent: Monday, May 01, 2006 2:50 PM
To: Ng, Bill
Cc: perl-win32-users@listserv.ActiveState.com
Subject: Re: Easy One
On 5/1/06, Ng, Bill [EMAIL PROTECTED] wrote:
Real simple,
I have a
Okay, this may be a stupid question, but has the W2k machine EVER
beeped, and are you sure it has no sound drivers installed? It could
have some kind of sound driver installed and be replacing the PC beep
with sound files and you wouldn't know because you have no output
device.
-Original
I dont think
this is enough information.
What
is the value of $wordfile?
Im
assuming youre trying to launch an instance of Microsoft Word. Is
it installed on both systems?
What
is your permission level on the systems?
What
is the value of $^E?
You could try sending
a Win32::OLE-QuitMessageLoop() and seeing if that works to break it out of
the call.
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of D D Allen
Sent: Tuesday, April 25, 2006
12:46 PM
To:
perl-win32-users@listserv.ActiveState.com
Well, there are a couple of issues here. First off, I don't think this
would even compile, because you used /s instead of \s. Secondly, your
regex is looking for:
.* zero or more of any character
(unnecessary, since you didn't anchor the start
If you're referring to the same console that you ran your script from
then you can get it all just by redirecting STDOUT and STDERR. It will
go back after your script finishes running.
open(STDERR,,error.log) or die(Couldn't open 'error.log' for
append!\n);
-Original Message-
From:
Check Tools--Options--Calculation Tab and try changing the Calculation
radio button to Manual. That might get rid of the message. You just
have to keep in mind that you need to manually recalculate your values
if you want to see the current data.
-Original Message-
From: [EMAIL
How about this?
###
use strict;
use warnings;
my @a = (1,2,3,4,5);
foreach(@a){
unless($_ == 3){
#do something...
}
}
###
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Ng, Bill
Sent: Tuesday, April 18,
not worth it.
This might be a good one to run by the guys at the beginners@perl.org
mailing list. There are some guys over there that are pretty sharp when
it comes to picking the right algorithm for a particular task.
-Original Message-
From: Timothy Johnson
Sent: Tuesday, April 18
: Wednesday, September 18, 2002 1:08 PM
To: 'Timothy Johnson'; 'Edgington, Jeff'; [EMAIL PROTECTED];
[EMAIL PROTECTED];
[EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: RE: Dave Roth's web site
While we're on the topic of modules...
I've managed to accumulate modules from many different places, and they're
This sounds like the perfect time for a split()
my($var1,$var2) = split /#/,$line;
perldoc -f split
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 7:49 AM
To: [EMAIL PROTECTED];
[EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: a
If it does what you say, then it will be the answer that many of us have
been looking for to simplify our lives as far as Exchange is concerned.
Have you thought about setting up an account at Sourceforge.net?
-Original Message-
From: Steven Manross [mailto:[EMAIL PROTECTED]]
Sent:
65 matches
Mail list logo