home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 1757
Discussions: 188,401, Posts: 2,243,603, Members: 232,630
Old December 20th, 2004, 09:34 AM   Digg it!   #1 (permalink)
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

nighthawk-uk is offline   Reply With Quote
Old December 20th, 2004, 09:53 AM     #2 (permalink)
Did you try Google yet?
 
Siliconjunkie's Avatar
 
Join Date: Feb 2003
Location: Buckhannon, WV
Posts: 3,466
Send a message via AIM to Siliconjunkie
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.
__________________
My computer is bigger than yours!


Last edited by Siliconjunkie : December 20th, 2004 at 09:55 AM.
Siliconjunkie is offline   Reply With Quote
Old December 20th, 2004, 11:04 AM     #3 (permalink)
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.

nighthawk-uk is offline   Reply With Quote
Old December 20th, 2004, 11:07 AM     #4 (permalink)
Did you try Google yet?
 
Siliconjunkie's Avatar
 
Join Date: Feb 2003
Location: Buckhannon, WV
Posts: 3,466
Send a message via AIM to Siliconjunkie
Siliconjunkie is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need some programming advice. Ritalin Kid General Tech Discussion 20 March 11th, 2004 05:50 PM
Synch Software EvilRick Applications and Operating Systems 1 January 27th, 2004 11:47 AM
Your Backup Routine brandon184 General Tech Discussion 14 November 17th, 2003 04:06 PM
Batch files in Windows ctaylor Webmastering and Programming 7 November 5th, 2003 07:15 PM
how do I get a .bat file to run in whatever directory it's in? zskillz Technical Support 18 October 17th, 2002 12:59 AM

Most Active Discussions
Is It Just Me? (2906)
Unarmed man on his stomach shot by .. (6)
Misery Loves Company... (2144)
New Build ( Finally ) (7)
CPU wont boot (7)
Building a gaming computer advice (5)
I think I just killed my computer w.. (24)
Folderchat Weekday thread (444)
Upgrading RAM (6)
Recent Discussions
New Build ( Finally ) (7)
Common Spyware Solutions (97)
How do you move a hard-drive to.. (4)
Laptop proccesor to desktop mob.. (1)
What is the best external enclo.. (0)
Partition Magic 7.0 (Unallocate.. (17)
For cheap price and good qualit.. (1)
Left 4 Dead Small Freezes (3)
RCA 52Inch HDTV wont turn on (4)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 03:48 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28