Browse local LAN

2002-10-10 Thread Torbjørn Lindahl
Hi list, what module should I use to browse file shares on our home LAN? I tried simply 'opendir(DIR,"\\server\share")', also with escaped \'s, but it wouldnt do the trick. Searching for 'net'-modules yields 1000 answers, I will be greatfull for any pointers! Regards, Torbjørn Lindahl

RE: Win32::AdminMisc problems

2002-10-10 Thread Krishna, Hari
There are no permission problems on the directory. I have lots of other mail programs that are written in PERL and are executed via browser. They execute just fine. Also, I just tried what Ryan wanted me do. #! D:\Perl\bin\Perl.exe print "Content-type: text/html \n\n"; And it return a blank pag

Re: Determining if a Windows Server?

2002-10-10 Thread $Bill Luebkert
Alan Dickey wrote: > Tony White wrote: > >>Whew! I thought this was an easy one, but I just spent nearly an hour >>finding out *any* way to find this out. And here it is: >> >>Look at the contents of the following registry value: >> >>HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/ProductO

RE: Win32::AdminMisc problems

2002-10-10 Thread Gould, Kevin
I'd check permissions on the directory. Likely you're not running the program as the same id interactively and through the webserver. Use www.sysinternals.com filemon to monitor inetsrv.exe to see if you're getting permission denied. -Original Message- From: Krishna, Hari [mailto:[EMAIL

RE: Win32::AdminMisc problems

2002-10-10 Thread Krishna, Hari
Tom - I didnot understand "root around in the archieves"? Did you wanted me to search thru the archieves on the cpan and roth sites?? Its soo frustrating..I am too close to the solution and yet very far. -Original Message- From: Thomas R Wyant_III [mailto:[EMAIL PROTECTED]] Sent: Thursday

Re: Win32::AdminMisc problems

2002-10-10 Thread Thomas R Wyant_III
Hari - You've got me. It seems to me if Win32::AdminMisc is installed on your server _and_ your browser has access to it, this shouldn't happen. But I've seen it come by on the mailing list. You might want to root around in the archives and see what comes up. Tom "Krishna, Hari" <[EMAIL PRO

Win32::Process and Sockets

2002-10-10 Thread Neel Mehta
I am trying to write a server for a Windows machine that is always listening on a particular port. When the Server accepts a connection it should create a new process and transfer the socket. The parent process should go back to listening. I do this in the following way: Server: while (1) { w

[PMX:#] RE: How can I figure out whether it is binary file or ASCII file unde r one directory?

2002-10-10 Thread George Gallen
Title: RE: How can I figure out whether it is binary file or ASCII file unde r one directory? Try reading the first 128 bytes of the file, and scanning for any characters < 32 (except maybe x1B,x0c,x0a,x0d) ESC,TOF,CR,LF or > 127. However, this might be a problem with some extended ASCII chara

RE: How can I figure out whether it is binary file or ASCII file under one directory?

2002-10-10 Thread Carter Thompson
Why not use the -B operator to test the file for binary contents? if( -B $file) { # file is binary } else { # file is not binary } Carter. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 10, 2002 10:54 AM > To: [EM

RE: How can I figure out whether it is binary file or ASCII file under one directory?

2002-10-10 Thread Stacy Doss
Given a filename, use the -B or -T operators. See perldoc ferlfunc HTH Stacy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 1:34 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: How can I figure out whether it is binary fil

RE: How can I figure out whether it is binary file or ASCII file under one directory?

2002-10-10 Thread Cai_Lixin
Like .bin, .exe files, The format of the file is binary instead of ASCII. Thanks Lixin -Original Message- From: Stovall, Adrian M. [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 2:06 PM To: [EMAIL PROTECTED] Subject: RE: How can I figure out whether it is binary file or ASC

RE: Perl and Strange File Names

2002-10-10 Thread Edwards, Mark \(CXO\)
I can't test it on W2K but readdir worked on XP with ActiverPerl build 633. It's not pure Perl but you can try ... @files=`dir /b/a`; -Original Message- From: Carlo7 [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 11:04 AM To: [EMAIL PROTECTED] Subject: Perl and Strange

RE: How can I figure out whether it is binary file or ASCII file under one directory?

2002-10-10 Thread Stovall, Adrian M.
Can you be any more specific than "various binary files"? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 12:54 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: How can I figure out whether it is binary file

How can I figure out whether it is binary file or ASCII file under one directory?

2002-10-10 Thread Cai_Lixin
Dear all, A question, How can I figure out whether it is binary file or ASCII file under one directory using perl? Does perl have a function for that? I have a project to pick up various binary files from some directories. Thanks in advance! Have a nice day! Lixin __

Re: Determining if a Windows Server?

2002-10-10 Thread Alan Dickey
Tony White wrote: > > Whew! I thought this was an easy one, but I just spent nearly an hour > finding out *any* way to find this out. And here it is: > > Look at the contents of the following registry value: > > HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/ProductOptions/ProductTy > pe

RE: Determining if a Windows Server?

2002-10-10 Thread Tony White
Whew! I thought this was an easy one, but I just spent nearly an hour finding out *any* way to find this out. And here it is: Look at the contents of the following registry value: HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/ProductOptions/ProductTy pe It will have one of 3 values: Wi

Unicode

2002-10-10 Thread Mundell, R. \(Ronald\)
Good Day All   I am trying to access a Com DLL using Perl. The DLL was written in Visual Basic and return a "ByRef szData as String" Variable. When I pass Data to it, it receives the data and works. The problem is when retrieving data back from this DLL. The Visual Basic String is equal t

Win32::AdminMisc problems

2002-10-10 Thread Krishna, Hari
Hi Guys, I get the following error when I execute my perl script from the browser. But when I execute the program by double clicking, it works fine. Any guesses?? I see the result in the test.txt file "Password is correct" Heres' the code #! D:\Perl\bin\Perl.exe use strict; use Win32::Admi

RE: Win32 show nothing

2002-10-10 Thread Rogers, John
There isn't really anything wrong. However 100x100 is a small window and with out top and left parameters may be off the visible area of your monitor in top left corner try adding -top =>200, -right =>200 to $main JohnR -Original Message- From: (Aben) Roman Fordinál [mailto:[EMAIL PROTE

Re: Determining if a Windows Server?

2002-10-10 Thread Alan Dickey
"Hawley, Eric" wrote: > > I need to be able to determine whether or not the computer that a script is > running on is a Windows NT or 2000 server or if it is not. Does anyone know > how to do this? I tried looking at Win32::GetOSVersion() but this won't > work. I have tried searching on CPAN bu

Re: Win32 show nothing

2002-10-10 Thread Johan Lindstrom
At 09:02 2002-10-10 +0200, Aben wrote: >whats wrong? Note sure, but try to specify -top and -left coordinates as well. /J -- --- -- -- -- -- - - - Johan LindströmSourcerer @ Boss Casinos [EMAIL PROTECTED] Latest bookmark: "Laziness - brian_d_fo

Determining if a Windows Server?

2002-10-10 Thread Hawley, Eric
I need to be able to determine whether or not the computer that a script is running on is a Windows NT or 2000 server or if it is not. Does anyone know how to do this? I tried looking at Win32::GetOSVersion() but this won't work. I have tried searching on CPAN but haven't found anything. Than