Win32::FileOp question

2005-07-06 Thread shurst
I'm in need of a standard type file dialog that will allow the user to select and return multiple directories. OpenDialog() allows multiples, but only files. BrowseForFolder() allows directories, but only a single one. Is anyone aware of a dialog that allows multiple directories (or how to make

Re: Store hash in SQL

2005-05-02 Thread shurst
All, I'm looking for a way to store a large hash within an SQL field and recall it at a later time. I can't seem to find any modules that will convert hashes to text and back again, but have found plenty of XML modules that don't seem to work. Any ideas? - Chris Take a look at the

Win32::GUI:AxWindow troubles

2004-04-01 Thread shurst
Is anyone out there successfully using the Win32::GUI::AxWindow module? Everything works fine until I need to get rid of the activex object and reclaim it's memory resources ( I realize the best I can hope for here is to reclaim them for perl, not the OS in general). The Release() method or

Re: DBD::Pg PPD for 5.8?

2004-01-18 Thread shurst
Sisyphus [EMAIL PROTECTED] wrote on 01/17/2004 05:54:22 PM: I see there's a ppd for DBD::Pg at http://www.soulcage.net/ppds/ I'm guessing it's for perl 5.8, too, as it was put up on 6 Jan 2004 - but I don't know for sure. Nope, it's for 5.6.

Re: Spreadsheet-WriteExcel format problem

2003-11-14 Thread shurst
Guys, This has me well and truly confused. I have even copied and pasted the lines from the documentation, and it still won't work! Can anyone tell me what I'm doing wrong here? use strict; use warnings; use Spreadsheet::WriteExcel; my $workbook =

Re: Help with parsing file

2003-08-27 Thread shurst
I have a large text file, which contains data in the form: parameter name=value // comment about the line For example: LCD Display Modes=3 // Add the modes to allow them: 1=status 2=aids 4=engine/brake temps I am trying to make a GUI that will allow you to see the parameter, default

Re: Get time and date for 2 weeks at a time

2003-07-15 Thread shurst
stevesilverswrote:Quickquestion.IneedmyscripttogeneratetwoweeksworthofdatesanddaysstartingwiththeSaturdays.SoonFriday07/04/2003myscriptwouldgeneratethebelowforthenexttwoweeks,andsoon..07/05/2003 Saturday07/06/2003 Sunday07/07/2003 Monday07/08/2003 Tuesday07/09/2003 Wednesday07/10/2003

RE: embed my excel workbook into a window (was - RE: How to show UNIXdirectory structre on HTML page)

2003-06-13 Thread shurst
You are probably looking at TK to display the data and using Either Win32::OLE or Spreadsheet::ParseExcel to get the data from the excel file. Take a look at DBD::Excel. Still in its formative stages, but coming along nicely. Steve ___

Re: qx(DIR) intermittent DOS failure

2003-06-12 Thread shurst
We are observing this call: my @dir = qx(DIR /B $path 21); chomp(@dir); to intermittently return absolutely NO output if (!scalar(@dir)) { ### process strange error when we actually KNOW that there are files in the directory that is in $path, mainly since the exact same

RE: Spreadsheet::WriteExcel- new dies unexpectantly

2003-05-31 Thread shurst
Yes, the document is open in excel. But the scripts dies on line 4 ( Spreadsheet::WriteExcel- new ), which should not and give me $Book as undef so I can check it and give the user a warning to close the sheet. Tight now the script dies with excel exception errors. While the documents

Re: REQUIRE command

2003-03-20 Thread shurst
Chapter 13 of O'Reilly's Advanced Perl Programming has a great discussion of, and example code for implementing RPC in perl. It's missing a few things (encryption was the first thing I noticed), but is an excellent starting point if you choose to follow the RPC path. Steve Really, you want

Re: killing a process by window title; was: socket application

2003-01-29 Thread shurst
Now, getting the window title I don't know about. I was about to suggest Win32::Console::Title, but that, I believe, is only the command window (if any) that is running the current script. Anyone? I would try using Win32::API with autoitdll.dll (hiddensoft.com). I tested the snippet

RE: Help needed

2003-01-23 Thread shurst
thanx a lott for the information, could you tell me something about DBD (Informix DBD to be specific, and Informix DBD for AIX to be more specific). This is a pretty open-ended question! What flavor of informix do you need to connect to (Informix cisam, SE, XPS, IDS)? If you have

RE: Duplicate Entries in Array

2003-01-07 Thread shurst
%hash = @array; Now the keys of %hash are the unique values in @array. Umm, nope, now the keys of %hash are the unique even index values of @array. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe:

Re: Convert int to bitstring

2002-12-18 Thread shurst
I want to convert int(255) to a string of 8 ones (). I have been trying to use unpack, but am missing something basic I think. I was also playing with the following with less than successful results. What am I doing wrong? One guess was the the @mask elements are string values

Re: Does somebody have this file open?

2002-12-16 Thread shurst
I would like to make a file read-only, but only if no other process currently has it open. I had hoped that setting the read-only attribute if ( Win32::File::SetAttributes( $file, READONLY ) ) { ... } Try this: if ($fh = Win32API::File::createFile( $file, 'r', '' ) ) { # no

Re: Excel to html format

2002-11-26 Thread shurst
Hello, I have an Excel spreadsheet that a person saves to a network drive daily. I want to automate the task of opening the file and saving it as html (the person can't do it themselves, their not technical enough! ). I know the OLE modules can let you manipulate the data in

Re: Win32 Net::SFTP

2002-11-21 Thread shurst
Has anyone gotten this module to work on Win32? I currently get Can't map service name 'ssh' to port number at D: /Perl/site/lib/Net/SFTP.pm line 36 when running the following simple code: Just a wild guess, but have you tried defining a port for ssh in your

Re: Hash_Of_Arrays Question

2002-11-18 Thread shurst
I am having a Hash_Of_Arrays data structure: $hash1 = { directory1 = [ files ], directory2 = [ files ], directory1_subdirectory1= [ files] }; Now, I

Re: Way to determine if a text file is being accessed

2002-10-30 Thread shurst
hello to all, Is there a way under windows 2000 via perl to determine when a file is currently opened with text editor? Peter Guzis posted code a while back that used Win32::SharedFileOpen + flock. For reasons that are unclear to me, Win32::SharedFileOpen was not being polite about

when localtime isn't?

2002-10-23 Thread shurst
Ok, localtime() has always done what I expected in the past, but on my win2k machine(and 3 others I have tested), it doesn't. Under win2k this print TZ = $ENV{TZ}\n; @time = localtime(); print @time\n; print Local: . scalar localtime() . \n; print GMT: . scalar gmtime() . \n; says

Re: Perl script behaves differently on separate computers

2002-10-13 Thread shurst
Is everyone running the script from cmd.exe, or are some of them using command.com? Steve [EMAIL PROTECTED] wrote on 10/10/2002 03:56:50 PM: I have this Perl script that I want to be useful for everyone in my department. We are all running Windows 2000 and using the same install of

Re: Fw: Hash of Hashes

2002-05-07 Thread shurst
Thanks for the reply. I have included the result set and some more of the code. Your help is appreciated. my $dbh = DBI-connect(DBI:XBase:C:/Perl/progs/customer) or die $DBI::errstr; my $sth = $dbh-prepare(select ID, First_Name from customer) or die $dbh-errstr(); $sth-execute()

Re: Socket with XML Request

2002-02-15 Thread shurst
Sorry, I got out of the 'doing other people's homework for free' business after grad school. Steve Hi Everybody, I need help on this : 1) Generate an XML request. 2) Open a TCP socket to www.somename.com on port 100. 3) Strip out any carriage returns or linefeeds

RE: Cobol Data conversion using Perl

2002-02-13 Thread shurst
Unfortunately, to this day I spend time maintaining legacy COBOL programs! The data resides in the .dat (data) and .idx (index) files, the others are the equivalent of C header files. The .wks is memory declarations and may not have all / the same information that exists in the data file.

Win32::Clipboard with Win2000Server/Citrix

2002-02-13 Thread shurst
Does anyone know how (if possible) to get Win32::Clipboard functionality in a Citrix environment? Specifically, I would like a PerlSvc service to be able to acces a specific users clipboard. A quick search and looking through Dave Roth's book didn't get me anywhere. Thanks in advance,

Slightly OT: A faster way?

2002-01-23 Thread shurst
Hi everyone, I am writing some modules to parse and unpack ISO 8211 encoded files (many GB of them), and am having a hard time coming up with an efficient way to extract some of the binary data. As an example, one type of file includes records consisting of 32 bit big-endian floats.

Re: OT: Re: A website, perl powered...but....MS Access or Mysql ??

2002-01-03 Thread shurst
Check out http://www.borland.com/devsupport/interbase/opensource/#interbase You can still pay $$ for 5.5 or 6.5 if you want official support. I used the MPL'd 6.01 extensively several months ago as an intermediate step while migrating a large application off of Interbase 5.5 to Informix and