RE: Carriage Return charachter in dos prompt

2006-06-02 Thread Ken Barker
Exactly - but if he builds it in this manner and then execute it as if it is a batch file - it will do what he needs.     Ken Barker IT Lead Tel: 314-213-7927 1100 Corporate Square St. Louis, MO 63132 [EMAIL PROTECTED] From: Timothy Johnson [mailto:[EMAIL PROTECTED]Sent: Fri 6/2/2006

RE: Carriage Return charachter in dos prompt

2006-06-02 Thread Ken Barker
7;t open $batchfile\n"; my $file = "your commands"; print FILE1 "$file\n"; print FILE1 "\n"; my $morecommands = "more of your commands"; print FILE1 "$morecommands\n"; close FILE1; system(batchfile.bat);     note that this would need a full path if

RE: Perl and Excel

2006-05-01 Thread Ken Barker
Try this link.   http://search.cpan.org/~jmcnamara/Spreadsheet-WriteExcel-2.16/lib/Spreadsheet/WriteExcel.pm#set_header(%24string%2C_%24margin   Ken Barker IT Lead Tel: 314-213-7927 1100 Corporate Square St. Louis, MO 63132 [EMAIL PROTECTED] From: [EMAIL PROTECTED] on behalf of Eric

Re: Windows Directory

2006-03-21 Thread Ken Barker
At 09:56 AM 3/21/2006, Jerry Kassebaum wrote: How do I get a directory listing on a Windows machine? I think it is something like: $direc = system `dir`; print "$direc"; <>; Try: $command = "dir c:\\your_dir; system($command); ___ Perl-Win32-Users

RE: How to transfer the output of find command of Dos in perl tofile

2006-03-13 Thread Ken Barker
Title: FW: How to transfer the output of find command of Dos in perl to file If you are asking how to put this into a file - just use the re-direct with DOS:   system(@args>file.txt);   Ken Barker IT Lead Tel: 314-213-7927 1100 Corporate Square St. Louis, MO 63132 [EMAIL PROTEC

Re: remote ODBC problem

2006-01-06 Thread Ken Barker
Have you defined myDB in windows ODBC? It is under settings/control panel/administrative tools/data sources ODBC. At 02:40 PM 1/6/2006, Hsu, David wrote: Hi all, Has anyone else run into this problem and have found a solution? I am making an ODBC connection to a remote MS Access DB fr

RE: cd the cmd shell from perl (as can be done from bat file)

2005-10-27 Thread Ken Barker
> Hello, > > When a .bat file with just the line: > cd c:\some\where > is executed from the Windows cmd shell, then > when the .bat file terminates, the directory > of the shell would have changed to c:\some\where. > > How do I get the same effect after running a perl script? >

RE: Variable definition

2005-10-07 Thread Ken Barker
try:   $month = 7;   $month = sprintf("%02d",$month);         This may seem like a simple question, but I have a variable $month=7 but I want to represent it as $month=07.  How is this done.  I am not sure what to search on to find out how to do this, hence I am here. Thanks in

RE: Win32::ODBC -- is the DSN a server or DB or table?

2005-08-23 Thread Ken Barker
This is referring to the ODBC name. you set this under control panel>administrative tools>Data Sources ODBC. Once you define your name - this is the name you supply for DSN. HTH Ken Barker IT Lead Americall Group, Inc 314-213-7927 [EMAIL PROTECTED] -Original Message- From:

RE: Win32:OLE Excel

2005-08-04 Thread Ken Barker
Try $ws1 = $workbook->add_worksheet('worksheetname'); Ken Barker IT Lead Americall Group, Inc 314-213-7927 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Hsu, David Sent: Thursday, August 04, 2005 10:23 AM To: Per

Re: comparing floating point numbers

2005-07-24 Thread Ken Barker
What kind of post is this? I do not see that anything was added at all. Give us all a break - don't bother - whatever your intentions. At 06:35 PM 7/24/2005, $Bill Luebkert wrote: John Deighan wrote: > At 02:20 PM 7/24/2005, Ed Chester wrote: > > >>John Deighan:: >> >>>Is there a safe way t

re: comparing floating point numbers

2005-07-24 Thread Ken Barker
When I substituted 'eq' versus '==' it works. Not sure why though... Ken At 03:07 PM 7/24/2005, John Deighan wrote: At 02:20 PM 7/24/2005, Ed Chester wrote: John Deighan:: > Is there a safe way to compare 2 floating point numbers in Perl? [snip] > My debugger says that they're both '630.24'

Win32 OLE - Excel formatting

2005-05-24 Thread Ken Barker
I am new to the mail list. I was looking for any examples in formatting cells in Excel using Win32:OLE. Any help would be much appreciated. Ken Barker [EMAIL PROTECTED] ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com