Results 1 to 2 of 2

Thread: Input to DOS program from text file

  1. #1
    Member
    Join Date
    Sep 2003
    Location
    Oxfordshire
    Posts
    137
    Thanks
    9
    Thanked
    4 times in 3 posts

    Input to DOS program from text file-Ignore, solved

    Please ignore this thread, I've solved it.

    I have an old program which runs from the command line and accepts its input and output there (2 single characters and 2 filenames). As far as i know it doesn't accept any of these as parameters when its called and i need to run it with lots of different files.

    I can redirect a text file to the program using: programname.exe < input.txt and have been trying to use the carriage return to force the program to accept one piece of information from the file at once using \n

    Is this possible or am i going down a dead end?
    Thanks.
    Last edited by fray_bentos; 23-09-2009 at 11:39 AM.

  2. #2
    Member
    Join Date
    Sep 2003
    Location
    Oxfordshire
    Posts
    137
    Thanks
    9
    Thanked
    4 times in 3 posts

    Re: Input to DOS program from text file

    Please ignore this, i played around with the text file some more and got it to work. The end of line character in the text file is fine, no messing around needed. The program reads a line from the text file every time input is requested from the user.
    Solved.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 63
    Last Post: 14-11-2011, 09:17 AM
  2. cannot open applications. Registry problem?
    By roman.pro in forum Software
    Replies: 9
    Last Post: 21-06-2009, 05:30 PM
  3. best disk cloning software?
    By DsW in forum Software
    Replies: 30
    Last Post: 02-07-2008, 09:01 PM
  4. problem burning with nero8.
    By deltagremlin in forum Welcome to HEXUS!
    Replies: 0
    Last Post: 01-03-2008, 07:22 PM
  5. Dodgy DVD-r's ?
    By starside in forum Help! Quick Relief From Tech Headaches
    Replies: 12
    Last Post: 27-03-2005, 06:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •