2 Replies - 563 Views - Last Post: 10 September 2011 - 11:58 AM Rate Topic: -----

#1 jcheenu13  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 08-September 11

HOW TO CREATE A PROGRAM

Posted 08 September 2011 - 10:19 AM

how to create a one program in MS-DOS batch file but in this program ECHO COMMAND, @COMMAND, PAUSE COMMAND, CALL COMMAND, EXIT COMMAND AND REM COMMAND?
Is This A Good Question/Topic? 0
  • +

Replies To: HOW TO CREATE A PROGRAM

#2 NickDMax  Icon User is offline

  • Can grep dead trees!
  • member icon

Reputation: 2250
  • View blog
  • Posts: 9,245
  • Joined: 18-February 07

Re: HOW TO CREATE A PROGRAM

Posted 08 September 2011 - 10:27 AM

Your question does not make sense.

Moved to "Other Languages" since this seems to be a batch file question.
Was This Post Helpful? 1
  • +
  • -

#3 superSonic.code  Icon User is offline

  • New D.I.C Head

Reputation: -2
  • View blog
  • Posts: 9
  • Joined: 08-September 11

Re: HOW TO CREATE A PROGRAM

Posted 10 September 2011 - 11:58 AM

I have experience with batch, i will tell you how to use all of those functions you stated: " echo , pause , exit , @ "

Here is a simple .Batch File Using Those Commands.

@echo off
:A
echo Hello, This Line Will Appear On The Screen.
echo.
echo The Line Directly above this one, puts a blank line on the screen ( for spacing )
Pause < nul


At The Beginning Of Each Batch File, You Should Put " @Echo Off " otherwise it will do commands twice.
the " echo " command is the equivilent of cout or Printf. Echo. Puts a blank line to space out lines with text. The " Pause < nul " Is To Stop The Console Window from Closing Right After You Open It, It is the same as, system("pause"); it should always be put at the end of the code.
the "exit" command simply exits the program.

I hoped this helped you. if it didn't, im sorry, it's been a while since i wrote a batch file.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1