+ Reply to Thread
Results 1 to 4 of 4

Thread: Batch File

  1. #1
    Junior Member
    Join Date
    Jun 2004
    Posts
    10

    Batch File

     
    Hi,

    I was wondering if someone can help me with a small batch file i need for work. I need to ask the user 6 question & then export the answers to a text file.
    ie:

    Question 1:

    What is the units manufactured name......

    Answer from user: Toshiba

    Question 2:

    What is the unit model number.....

    Answer from user: A60

    and so on..... the asnwers then need to be exported into a .txt file & have a specific prefix (this prefix will always be the same).

    ie if qestion 1's prefix was A & Question 2's prefix was F the text file would look like this.


    A Toshiba
    F A60


    I hope someone on here can help with this as i have been racking my brains for days & cannot come up with the way to do it.

    thanks,

    Steve

  2. #2
    Did you try Google yet? Siliconjunkie's Avatar
    Join Date
    Feb 2003
    Location
    Buckhannon, WV
    Posts
    3,468
    This is why you use Linux....

    Code:
    clear
    echo "What is the units manufactured name"
    read MFGNAME
    echo "What is the unit model number"
    read MODEL
    echo "Yadda yadda"
    read YADDA
    echo "Thanks"
    echo A$MFGNAME,F$MODEL,$YADDA >> /path/to/file
    I will find out to accept user input to variables in batch files, it is a real pain if I remember.
    Last edited by Siliconjunkie; December 20th, 2004 at 09:55 AM.
    My computer is bigger than yours!

  3. #3
    Junior Member
    Join Date
    Jun 2004
    Posts
    10
    Linux does look a lot cleaner, but unfortunatly it is not an option.

    Any help you can give me would be much appreciated.

  4. #4
    Did you try Google yet? Siliconjunkie's Avatar
    Join Date
    Feb 2003
    Location
    Buckhannon, WV
    Posts
    3,468
    My computer is bigger than yours!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 19
    Last Post: September 21st, 2010, 05:50 AM
  2. Need some programming advice.
    By Ritalin Kid in forum General Tech Discussion
    Replies: 20
    Last Post: March 11th, 2004, 05:50 PM
  3. Synch Software
    By EvilRick in forum Applications and Operating Systems
    Replies: 1
    Last Post: January 27th, 2004, 11:47 AM
  4. Your Backup Routine
    By brandon184 in forum General Tech Discussion
    Replies: 14
    Last Post: November 17th, 2003, 04:06 PM
  5. Batch files in Windows
    By ctaylor in forum Webmastering and Programming
    Replies: 7
    Last Post: November 5th, 2003, 07:15 PM

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews