1.

Solve : Help creating a .bat routine?

Answer»

I am WRITING what I hope is a simple routine; call a ftp site and then enter a user name and password. When I TRY what I have done so far; I NEED to enter a carraige return to move to the next line. Is there a way to do that? I haven't figured it out yet.

ThanksQuote

You can put the inputs you need into a separate text FILE, then use that as input by USING the < syntax
For example, if you need to press Enter key:
- open Notepad with a new text file
- press the Enter key
- save the new file (say call it enter.txt) in the same folder as your bat file
-use the file as input like this from the command-line:
yourbatfile < enter.txt

From : http://p2p.wrox.com/forum-wrox-com-feedback/29362-need-help-dos-batch-file.html


Discussion

No Comment Found