Computing.Net > Forums > Programming > Batch File Test

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.

Batch File Test

Reply to Message Icon

Name: iamwec
Date: November 9, 2008 at 16:51:07 Pacific
OS: Windows XP Pro + SP3
CPU/Ram: 2.4 GHZ / 512 MB SD
Product: Dell Dimension 2400
Comment:

I am making a test in notepad and saving it as a batch file to use. I haven't had any problem writing and testing up until now. I was fixing all the problems in the file in Notepad. I saved often and tested every time I saved. Now I can't test the file. When I first try and open it up, I get an error that says "The Syntax of the Command is Incorrect." I don't know what the heck I did wrong. Could someone please look at this part of the file? This is all that I edited before the last save.

@echo off
:D
cls
echo.
echo __________________________
echo | _____ |
echo || | ***** / |
echo || | * | |
echo || /\ | *** | |
echo || / \ | * | |
echo ||/ \| ***** \_____ |
echo |________________________|
echo.
echo Welcome to WEC's test by WEC
echo Do you wish to play this game?
echo.
echo Yes or No?
echo.
set input=
set /p input=Please type in a for Yes or b for No and press "Enter".
if %input%==a goto Y
if %input%==b goto N

I added the big "WEC" sign before this happened. If I need to post more of the file, just say so.

William E C
I AM WEC!!!
"No waste of time here, just a hell of a lot of fun!" -Me



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: November 9, 2008 at 17:08:43 Pacific
Reply:

I don't know what the heck I did wrong.
Step 1: Remove @ECHO OFF. Then you'll know where your error was. Actually, 75% - 80% of my scripts never turn ECHO off.

In this case, replace | with ^|.


0
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: Batch File Test

path problem in batch file... www.computing.net/answers/programming/path-problem-in-batch-file/9916.html

Batch file delete file by file name www.computing.net/answers/programming/batch-file-delete-file-by-file-name/16849.html

How to replace input parameter of batch file www.computing.net/answers/programming/how-to-replace-input-parameter-of-batch-file-/19475.html