Thread: Batch File
-
December 20th, 2004, 09:34 AM #1Junior 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
-
December 20th, 2004, 09:53 AM #2
This is why you use Linux....
I will find out to accept user input to variables in batch files, it is a real pain if I remember.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
Last edited by Siliconjunkie; December 20th, 2004 at 09:55 AM.
My computer is bigger than yours!
-
December 20th, 2004, 11:04 AM #3Junior 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.
-
December 20th, 2004, 11:07 AM #4My 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
-
how do I get a .bat file to run in whatever directory it's in?
By zskillz in forum Technical SupportReplies: 19Last Post: September 21st, 2010, 05:50 AM -
Need some programming advice.
By Ritalin Kid in forum General Tech DiscussionReplies: 20Last Post: March 11th, 2004, 05:50 PM -
Synch Software
By EvilRick in forum Applications and Operating SystemsReplies: 1Last Post: January 27th, 2004, 11:47 AM -
Your Backup Routine
By brandon184 in forum General Tech DiscussionReplies: 14Last Post: November 17th, 2003, 04:06 PM -
Batch files in Windows
By ctaylor in forum Webmastering and ProgrammingReplies: 7Last Post: November 5th, 2003, 07:15 PM



LinkBack URL
About LinkBacks



Reply With Quote

Also, I saw the first episode of Titan when it came out, but plan on waiting until it finishes airing to watch the entire show. It is the highest rated new show this season on MAL so it is apparently...
Thread About Anime