× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.






Cool, it worked!!!  Thanks a bunch.  I'll file this one away so when I need
to do it again in ten years I'll be ready.  Thanks again.


Dave Parnin
Nishikawa Standard Company
Topeka, IN  46571
daparnin@xxxxxxxxxxxxxxxxxx




                                                                                
                              
                      "John Brandt Sr."                                         
                              
                      <pgmr@xxxxxxxxxxx        To:       PC Technical 
Discussion for iSeries Users            
                      .com>                     <pctech@xxxxxxxxxxxx>@SMTP@CTB  
                              
                      Sent by:                 cc:       (bcc: David A 
Parnin/Topeka/NISCO/SPCO)              
                      pctech-bounces@mi        Subject:  RE: [PCTECH] Batch 
File With Redirected Input        
                      drange.com                                                
                              
                                                                                
                              
                                                                                
                              
                      02/09/2005 11:10                                          
                              
                      AM                                                        
                              
                      Please respond to                                         
                              
                      PC Technical                                              
                              
                      Discussion for                                            
                              
                      iSeries Users                                             
                              
                      <pctech@midrange.                                         
                              
                      com>                                                      
                              
                                                                                
                              
                                                                                
                              



Batch File:
cd \foldername
ftp -s:inputactions.txt

INPUTACTIONS.TXT:
open ftpserver
anonymous
anonpwd@xxxxxxxxxxx
binary
cd \serverfolder
get filename
quit

John Brandt
iStudio400.com
(903) 523-0708
Home of iS/ODBC - MSSQL access from iSeries and RPG.




-----Original Message-----
From: daparnin@xxxxxxxxxxxxxxxxxx [mailto:daparnin@xxxxxxxxxxxxxxxxxx]
Sent: Wednesday, February 09, 2005 9:55 AM
To: pctech@xxxxxxxxxxxx
Subject: [PCTECH] Batch File With Redirected Input






I'm attempting to write a DOS batch file that will FTP to a server, log in,
change directories, and get a specific file.  I seem to remember having
done something similar a long time ago by issuing the command with it's
input redirected from a file.  When I run it, it doesn't fill in the
user-id and stops waiting on a password.  Here's what I've got.  What
doesn't look right?  Thanks.

Batch File:
cd \foldername
ftp servername < inputactions.txt


INPUTACTIONS.TXT:
anonymous

cd \serverfolder
get filename
quit



Dave Parnin
Nishikawa Standard Company
Topeka, IN  46571
daparnin@xxxxxxxxxxxxxxxxxx

--
This is the PC Technical Discussion for iSeries Users (PcTech) mailing list
To post a message email: PcTech@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/pctech
or email: PcTech-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/pctech.

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.849 / Virus Database: 577 - Release Date: 1/27/05


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 2/7/05


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 2/7/05

--
This is the PC Technical Discussion for iSeries Users (PcTech) mailing list
To post a message email: PcTech@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/pctech
or email: PcTech-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/pctech.




As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.