Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
using a text input in a batch file
Name: Steve.alexander Date: July 6, 2005 at 00:39:16 Pacific OS: Win XP CPU/Ram: 1.66/512
Comment:
I would like to create a batch file for NET SEND so that it can prompt the user for the computer's address and the message. How do i do the text inputs??? I know how to do it in VB/C# but not sure about dos....
Name: uli_glueck Date: July 6, 2005 at 05:02:10 Pacific
Reply:
Hi, the listing realizes the Input Command in NT-Batch. Not Sure if it works correct with XP. You get the text input in %input%. The line below the echo command belongs to the echo command. In the text window is not enough space. sorry.
Name: dtech10 Date: July 6, 2005 at 13:53:33 Pacific
Reply:
Hi In WinXP
echo Address set /p Address= echo Message set /p Message= echo %Address% echo %Message%
0
Response Number 3
Name: Phar B3hind Date: August 26, 2005 at 14:03:48 Pacific
Reply:
~~~~~~~~~~~~copy~~~~~~~~~~ @ECHO OFF CLS :BEGIN echo Address set /p Address=
echo Message set /p Message=
NET SEND %Address% %Message% PAUSE GOTO BEGIN :END ~~~~~~~~~~~~~~paste~~~~~~~~~~~~~~~~ [dtech10] has the idea.You need to adjust the syntax of the NET SND LINE! I dont know it off by heart.
BTW, Good idea for BATCH.
May the forces of evil become confused on the way to your house.
Summary: try to use absulute path of the file. when u using del test223.txt in ur batch file its only try at the current location and it is ur cdrom .So it is only trying to delete test223.txt which is in ur c...
Summary: In my batch file (see code below) the Xname variable is set by a command line parameter. How would I go about prompting the user with a text input box and have the Xname variable set by the text giv...
Summary: Hey all. I'm trying to write a batch file, but I'm in the process of self-teaching the commands, so I'm wondering if someone can tell me whether or not what I want to do is possible before I give myse...