Go Back   Gaming Gutter > Just Chat > Guides & Tutorials


Guides & Tutorials - Your gaming walk-thrus and tutorials.

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

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post Sig Request.
09-30-2008 10:07 PM
Last post by Pryanka
Today 05:28 PM
22 Replies, 203 Views
Go to first new post Well...
Today 05:02 PM
Last post by zombii goat
Today 05:27 PM
20 Replies, 21 Views
Go to first new post Nominating the new Kyo
Today 08:17 AM
by Kyo
Last post by Check
Today 05:27 PM
50 Replies, 264 Views
Go to first new post wat u doin.
Today 04:38 PM
by Zombies
Last post by Unregenerate Passion
Today 05:27 PM
14 Replies, 15 Views
Go to first new post rick rolling at school.
Today 04:18 PM
Last post by zombii goat
Today 05:20 PM
5 Replies, 14 Views
Reply
 
LinkBack Thread Tools Display Modes

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

Male Junkas is offline
 
Join Date: Nov 2006
Location: New Jersey
Age: 13
Posts: 953
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

 
Old 05-18-2008, 07:05 PM   #2 (permalink)
Site Programmer

Male Check is online now
 
Join Date: Feb 2008
Age: 18
Posts: 1,619
iTrader: 6 / 100%
Check Is a Lord of AwesomenessCheck Is a Lord of AwesomenessCheck Is a Lord of Awesomeness
Rep Power: 8
Needed this.
+Rep.
__________________

HOSHIT HATZ

  Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 05:28 PM.


vBulletin skin developed by: eXtremepixels
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.14334297 seconds (100.00% PHP - 0% MySQL) with 19 queries