Go Back   Gaming Gutter


» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post MotM Nomination Thread #1
11-20-2008 08:08 PM
by nomhak
Last post by Roxas.
Today 03:23 AM
22 Replies, 218 Views
Go to first new post :(
Today 01:17 AM
by Zombies
Last post by Roxas.
Today 03:18 AM
1 Replies, 11 Views
Go to first new post Flash game trophies help!
Yesterday 08:44 AM
Last post by April<33
Today 03:02 AM
12 Replies, 77 Views
Go to first new post [MULTI-TRAINER] Eclipse
10-04-2008 04:39 PM
by Horde
Last post by April<33
Today 02:59 AM
94 Replies, 2,933 Views
Go to first new post Selling 3 mil Gold for...
Today 02:23 AM
by 1x1
Last post by 1x1
Today 02:23 AM
0 Replies, 1 Views
View Single Post

 Tidy up Batch code.
Old 05-18-2008, 06:40 PM   #1 (permalink)
Junkas
Banned

Male Junkas is offline
 
Join Date: Nov 2006
Location: New Jersey
Age: 13
Posts: 953
GPoints: 54
iTrader: 0 / 0%
Junkas Is Amongst RoyaltyJunkas Is Amongst Royalty
Rep Power: 0
Tidy up Batch code.

So, lets say you are making a batch file to open a program and say something.

Here's what you could do:

Code:
@echo off
start ******
@echo text here
pause
@echo more text here (copyright, whatever)
pause
You should use categories to clean that up:

Code:
@echo off
:first
start ******
goto second

:second
@echo text here
pause
@echo more text
pause
There may be a little more code, but it is neater and easier to edit when you go back to it, the categories are also great for looping , so after :second was done, you could add a GOTO to link back the first cat.

You can also use remarks to help note things.

(This technique is shown on a short batch file, but is more useful in longer files, especially ones with inputs)
  Reply With Quote
 
Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 03:36 AM.


vBulletin skin developed by: eXtremepixels
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.06234193 seconds (100.00% PHP - 0% MySQL) with 18 queries