Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 08-19-2011, 07:49 AM   #1
Solid State Member
 
I like blue's Avatar
 
Join Date: May 2011
Posts: 15
Question Need help with batch

Hi I am in the progress of making a movie in batch and I have came across a problem with on line of code it doesn't finish displaying the line (is't an echo command) but instead skips it and closes the batch. This is the line casing the problem:
echo @@ @@@@@@ @@@@ / | \
(it's part of a picture of a plane).

Please can somebody help me get rid of this problem.

EDIT: There is more spaces in the code its just that they don't show in the post.
__________________

I like blue is offline   Reply With Quote
Old 08-21-2011, 01:48 AM   #2
Fully Optimized
 
FlightSimBoy's Avatar
 
Join Date: Jun 2007
Posts: 2,114
Send a message via AIM to FlightSimBoy
Default Re: Need help with batch

@ is a command telling a batch file to not echo a command back. In other words, MSDOS doesn't recognize "@" as text, it recognizes it as a command.

Not sure what else you could possibly use, but it can't be the @ symbol.
__________________

__________________
My Computer: eMachines T5226 - Intel Pentium D Dual Core @ 3 GHz - Diamond Viper Radeon HD3870 OC Edition with 1 GB GDDR3 VRAM - 4 GB PQi Turbo DDR2-533 RAM - Corsair 650W PSU with 52A on single rail - TSSTcorp DVD-DL+-RW combo drive - Lite-on 52x CD-RW burner - Creative SoundBlaster X-Fi XtremeGamer - Logitech z5300e speakers - WinFast TV Tuner - Vista Ultimate 64-Bit. eBay name: Flightsimboy304
FlightSimBoy is offline   Reply With Quote
Old 08-21-2011, 08:56 AM   #3
Fully Optimized
 
strollin's Avatar
 
Join Date: Mar 2011
Location: USA
Posts: 1,943
Default Re: Need help with batch

The @ symbol is only significant if it is the first character of a line. It tells the command interpreter not to display the line.

The problem you are encountering is due to the use of |in your bat file. That is known as a pipe operator and is used to direct output from one program as input to another. You need to find another symbol to use instead.

For instance: echo @@ @@@@@@ @@@@ / l \ will work because I substituted a lower case L. It won't look as good but it will work.
strollin is offline   Reply With Quote
Old 08-22-2011, 06:31 AM   #4
Solid State Member
 
I like blue's Avatar
 
Join Date: May 2011
Posts: 15
Default Re: Need help with batch

Thanks for your help!
I like blue is offline   Reply With Quote
Old 08-22-2011, 07:44 AM   #5
Site Team
 
berry120's Avatar
 
Join Date: Jul 2009
Location: England, UK
Posts: 3,425
Default Re: Need help with batch

...or of course you could just put the echo string in speech marks... if you don't mind the speech marks being there of course.

Code:
echo "@@ @@@@@@ @@@@ / | \"
I'm not sure there's a way to escape things like this otherwise. Best thing to do would be to use another language - batch scripts weren't designed for this type of thing!
__________________
Save the whales, feed the hungry, free the mallocs.
berry120 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 10:44 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0