Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Help creating a .bat routine  (Read 2705 times)

0 Members and 1 Guest are viewing this topic.

BTurner

    Topic Starter


    Newbie

    • Experience: Familiar
    • OS: Windows XP
    Help creating a .bat routine
    « on: March 14, 2013, 10:28:05 AM »
    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.

    Thanks

    DaveLembke



      Sage
    • Thanked: 662
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: Help creating a .bat routine
    « Reply #1 on: March 14, 2013, 01:10:01 PM »
    Quote
    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