Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
hey everyone!
i'm writing a piece of code in a .bat file to run obviosly in command prompt. I need to be able to type carrige returnes into the code under a single "set /a" perimeter to be echoed later. the code i want is gonna be shown here with the lines separated with <Break>
ex: ---------<Break>
| Words |<break>
---------hopefully theres a easy short solution but any help will be greatly apriciated
Thanks in advance
- TheMASTER -

I have no idea what you're trying to do but there is no set /a in DOS.
=====================================
If at first you don't succeed, you're about average.M2

sorry i just realized that the source code had echo turned off
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- TheMASTER -

I don't understand your reference to Set /a. Note that your code sets up a closed loop, there is no escape, I have not corrected this.
For some reason I have been unable to correctly post my solution to your query so where it says (insert 21 hyphens) below you should delete the words and insert the hyphens.
@echo off
cd C:\
clsset break=& echo (insert 21 hyphens) & echo. & (
echo ----DOS-MESSANGER---- & (
echo. & echo (insert 21 hyphens) )
):A
COLOR 07net view
%break%
set /p n=To Computer:
set /p M=Message:
net send %n% %m%
Pause
Goto A

Can I also suggest you spell it correctly (messenger) and also, as it's got nothing to do with DOS (which is an obsolete operating system that is not present in Windows XP) you call it "Win32 Console-based Messenger."

![]() |
![]() |
![]() |

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