Computing.Net > Forums > Programming > .bat coding help

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.

.bat coding help

Reply to Message Icon

Name: TheMASTER
Date: July 30, 2008 at 21:58:29 Pacific
OS: xp
CPU/Ram: intel 508mb
Product: dell
Comment:

heres my code:


@echo off
cd C:\
:A
COLOR 07
cls
net view
---------------------
----DOS-MESSANGER----
---------------------
set /p n=To Computer:
set /p M=Message:
net send %n% %m%
Pause
Goto A


i need just
---------------------
----DOS-MESSANGER----
---------------------
that to show up as is on the screen right before the prompts show up the prompt starts at "set /p n="

thanks in advance

oh ps. if anyone knows how to run .bat files in visual basic i really would like to know for other projects

- TheMASTER -



Sponsored Link
Ads by Google

Response Number 1
Name: Elinor
Date: July 31, 2008 at 02:59:35 Pacific
Reply:

Hi,

This will show the lines on screen.

echo ---------------------
echo ----DOS-MESSANGER----
echo ---------------------

hth

Elinor Hurst
http://elinorhurst.blogspot.com


0

Response Number 2
Name: klint
Date: July 31, 2008 at 09:25:34 Pacific
Reply:

Can't remember exactly how to run .bat files from VB but if you are having problems, try running "CMD.EXE /c file.bat" instead of just "file.bat".


0

Response Number 3
Name: Razor2.3
Date: July 31, 2008 at 11:32:16 Pacific
Reply:

TheMASTER: if anyone knows how to run .bat files in visual basic i really would like to know for other projects
Depends on the VB in question.


0

Response Number 4
Name: TheMASTER
Date: August 3, 2008 at 11:37:36 Pacific
Reply:

Thank you all very much i got it displaying correctly. only one more defeat left...

- TheMASTER -


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: .bat coding help

dos .bat file coding help www.computing.net/answers/programming/dos-bat-file-coding-help/16765.html

Bat + reg = 1 bat file help!!! www.computing.net/answers/programming/bat-reg-1-bat-file-help/9468.html

Code help in VB4 www.computing.net/answers/programming/code-help-in-vb4/12170.html