perl-win32-users@listserv.activestate.com

2004-06-11 Thread Jack D.
> -Original Message- > From: [EMAIL PROTECTED] [mailto:perl- > [EMAIL PROTECTED] On Behalf Of Arnold Wiegert > Sent: June 11, 2004 3:05 PM > To: Perl-Win32 > Subject: TK update via CPAN (&Spinbox) > > I just tried to update my Perl/Tk via CPAN. > > I am running ActiveState perl 5.8.3 wi

RE: network discovery

2004-06-11 Thread Jeremy A
Hi chris, sorry for the cause of alarm. (i did not know about this) let me state that, this is for my private network. my reason, is all my ip's change from time to time, because they are connected to a router with a built in dhcp server. I am working on a client/server app, and i need to keep tra

Re: a regex to remove characters...

2004-06-11 Thread Martin Leese
"bruce" <[EMAIL PROTECTED]> wrote: hi... need to know if there's a quick regex to remove everything after a given character. ie $foo = http://ww.rr.bb/cat/dog/index.html or $foo = http://ww.rr.bb/cat/dog/ball/abc.html i'd like to know how to remove everything after the last "/"... Not a regex, but

RE: Convert .bat files to .com

2004-06-11 Thread Stacy Doss
This is your offending line. system ('BAT2EXEC.COM $file') # $file contains the batch file(s) name. You might want to try this if you can't figure out what is wrong with that line. if($file =~ /(.*).bat/) { system('RENAME', "$file", "$1.exe"); } -Original Message-

perl-win32-users@listserv.activestate.com

2004-06-11 Thread Arnold Wiegert
I just tried to update my Perl/Tk via CPAN. I am running ActiveState perl 5.8.3 with Win32 0.22 and Tk 800.024 and was trying to use the Spinbox widget. Seems it can't be found. The latest doc on CPAN say it is part of Tk 800.027. So I fired up CPAN and tried to install the latest version. After

Re: Convert .bat files to .com

2004-06-11 Thread barons
I don't completely understand why we need to convert all these. I have a solution though "I think". My below snippet goes into a directory where all the .bat files and the bat2exe.com utility is. How can I as I loop through all the files automatically, and the utility to execute them .. Something l

Re: converting dates..

2004-06-11 Thread Eric Amick
On Fri, 11 Jun 2004 12:05:07 -0700, you wrote: ># Ensure year is four digits > if ($year <= 1900) > { > if ($year > 05) > { > $year += 1900; > } > else > { > $year += 2000; >

Re[2]: Convert .bat files to .com

2004-06-11 Thread christopher
Hi Barons, Forgot to cc the list so we don't keep going on with this OT post: This really has nothing to do with Perl but a quick Google search shows this shareware program: http://www.bdargo.com/info/batcompp.htm My feeling is that Barons is more interested in compiling the bat files than actu

RE: Convert .bat files to .com

2004-06-11 Thread Arms, Mike
[EMAIL PROTECTED] [EMAIL PROTECTED] writes: > Actually I need to convert all .bat files to .exe files.. It has to be asked: "Why?" I'm at a loss to see the reasons behind the percieved need for such an action. By the way, not all .BAT actions could successfully be done via compiled code (EXE or

Re: Convert .bat files to .com

2004-06-11 Thread barons
Actually I need to convert all .bat files to .exe files.. On Fri, 11 Jun 2004 14:29:28 -0400 [EMAIL PROTECTED] wrote: > Are u trying to convert .bat to .cmd files, not .com > files? > > - Original Message - > From: Mike Jackson <[EMAIL PROTECTED]> > Date: Friday, June 11, 2004 12:40 pm

Re: Convert .bat files to .com

2004-06-11 Thread tanman
Are u trying to convert .bat to .cmd files, not .com files? - Original Message - From: Mike Jackson <[EMAIL PROTECTED]> Date: Friday, June 11, 2004 12:40 pm Subject: Re: Convert .bat files to .com > .com files are fundamentally different to .bat files: a .bat file > holds a list of comma

Detecting and controling switch ports with Perl

2004-06-11 Thread Kevin Shaw
Hello,   I would like to write a Perl script with the following functionalities.   Detect MAC addresses connected to each port of our switches. Shutdown the port if the MAC address is not on a specific list.   Could anybody help me on this?   Any help would be apprecia

Re: Convert .bat files to .com

2004-06-11 Thread Mike Jackson
.com files are fundamentally different to .bat files: a .bat file holds a list of commands to be executed by the shell/command interpreter. a .com file is a compiled, native machine code binary program. To convert one into the other, you would have to write a program that creates a .com file tha

RE: converting dates..

2004-06-11 Thread Martin Leese
"Perl Developer" <[EMAIL PROTECTED]> wrote: You can always use Date::Format. If you need to convert it from the string first ("June 02, 2004"), you might want to look into Date::Manip -- namely the ParseDate function. Here is the URL on cpan: Date::Manip (ParseDate function) http://search.cpan.o

Re: Perl and Net::SNMP

2004-06-11 Thread Trevor Joerges [SendMIME Software]
Change "Net::SMTP" to "libnet" - Original Message - From: Jeremy Junginger To: [EMAIL PROTECTED] Sent: Friday, June 11, 2004 10:13 Subject: Perl and Net::SNMP Hey guys, How do you get the Net::SNMP module installed on a windows machine running PERL 5.8+? I'm trying the following: per

Perl and Net::SNMP

2004-06-11 Thread Jeremy Junginger
Hey guys, How do you get the Net::SNMP module installed on a windows machine running PERL 5.8+? I'm trying the following: perl -MCPAN -e shelll cpan> install Net::SNMP But when I attempt to use the Net::SNMP module, I'm getting the following failure: Can't locate net\snmp.pm in @INC (@INC con

perl 5.0 and 5.8 problems

2004-06-11 Thread Krishna, Hari
Hello, I am getting CGI error CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. This used to work prefectly file on IIS5 and perl 5.0 version. Now we upgraded our server to IIS6 and perl5.8 My scripts are throwing the error. Is there anything

RE: How to force an Outlook Deleted items clean out

2004-06-11 Thread Grakowsky, Richard \(ETS: Communications and Network Services\)
I'm not sure if this will help, but check the script at the bottom of this link. I believe that it runs on the client side and assumes that Outlook is open. There are nice tips at least for connecting to Outlook and running the necessary keystrokes. http://perlmonks.thepen.com/185757.html After