Goto or Jump-to command?

I've got VI with a while loop. I'd like to jump to a certain point in that VI when a condition is met. Is there a Goto or JumpTo block? I see that there is a "Jump to Label on Condition.flx" block but that looks like it's only for onboard programming.
Thanks

jcarmody wrote:
This sounds like a job for a State Machine.
Agreed!
See here.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • How to code: "Goto end if previous command not successful" in PL-SQL?

    I want to proceed with all the remaining statements in a PL-SQL script only if a certain, previous command was executed sucessfully.
    How can I code:
    "Goto end if previous command execution not successful"
    or even better:
    "Goto tag "errorcase" if previous command execution not successful"
    If a goto is not possible maybe an if clause is:
    if (previous command execution not successful) (
    Peter

    user559463 wrote:
    I though that every command writes its exit code into a central system variable like RETURNCODE or ERRORLEVEL.Not in most languages today. They use exceptions.
    What do use return codes are external APIs that one call (as DLLs or shared objects) - such as OpenGL, MAPI, DirectSound, etc.
    But inside a language itself, exceptions are the correct and proper way to deal with errors - not return codes.

  • Results from conditions not passed to Jump query

    Dear all,
    I have created a summary query and I have a condition applied on it. The condition is 'KF' < 4. I get the results of the query. I have changed the Calculate Result As to 'Total' to show the total of only the records that are displayed.
    However I have a jump query on it and when I goto the Jump query, it shows all the records though they dont satisfy the conditions. I want the drill down report to show the results of only those values displayed in the Summary report.
    Is there a setting where I can change to get the required result.
    Any helpful reply would be awarded.
    thanks,
    KK

    Hey Roberto,
    Thank you for the reply. Yes I would also need to have the same condition in the reciever query. However, my condition is on result values in the reciever query. To explain u clearly...
    I have the data as below in my cube
    Material   QTY
    123     10
    124     20
    125     30
    126     40
    I have a summary query for which I want a condition where QTY < 40
    When I enter Material 123;124;125;126 I get the result as below
    Material   QTY
    123     10
    124     20
    125     30
    When I drill down I get the below result
    123     1     2
    123     2     4
    123     3     4
    <b>Result          10</b>
    124     1     5
    124     2     10
    124     3     5
    <b>Result          20</b>
    125     1     10
    125     2     10
    125     3     10
    <b>Result          30</b>
    126     1     10
    126     2     20
    126     3     10
    <b>Result          40</b>
    I cannot apply the same condition in the reciever query because I want the condition to be applied on the result rows. I have created one more formula KF with SUMCT(QTY) and applied condition on that but it still doesnt work.
    Any suggestions would be highly appreciated.
    thanks,
    KK

  • Command issue in smartform main window table footer

    Hello Experts ,
    I got an issue , that really puzzled me ! hope you could help .
    In my smart form main window I have a loop node inside loop node is a table , and there is a footer in this table node.
    in footer event , I only set check box 'at page Break' , and in footer , I created a command to goto another page, but when I preview the layout , there comes an error : 'Page break is allowed only in the main window' . I didn't create any command outside the mainwindow.
    anyone know how this happened ? how should I correct it ?
    or you can tell me antother method to goto a new page when page break .
    Thank you in advance!
    Kevin
    Edited by: kevin wang on Mar 13, 2010 12:46 PM

    Hi,
      The problem may due to not Selecting at the "End of Table" in the footer node.
    My Assumption: According to my understanding since you have selected with at "Page break" only, this night be triggering at every page break and since you have mentioned Goto Next page using command node without printing on the current page.
    You can try by selecting the "At the End of Table" for Footer node, then it should work correctly.
    If you want a Page break after the Footer, then place it after Footer Node, then it should work.
    Thanks & Regards,
    Vamsi.
    Edited by: Vamsi Krishna on Mar 13, 2010 1:42 PM

  • Jump Indirect Values

    Can someone point me to a resource that breaks down what the numbers are for each of the objects in DVD SP? (Or is there a 'info window' in DVDSP that I can click on an object and find out its number?)
    I'd like to be able to use the "Jump Indirect" command - but unless I can get a list of what values are assigned... I am not sure how I can use this.
    From looking through various forums I've gathered:
    Menus count by 32 starting at 32
    Tracks count by 128 starting at 49280
    Chapters count by 1 starting at the "Track #"
    Buttons? (Menu # +1 maybe?)
    Slide Shows?
    Angles?
    Audio Streams?

    I've figured out slideshows:
    Slides count by 128 starting at 49664
    I can't figure out how to jump into the middle of a slideshow - the "Jump Indirect #" doesn't work like chapters and tracks...
    Message was edited by: Christopher Osborn1

  • DVDAE error message, since upgrade to DVDSP4

    Hi,
    I just checked my projects for errors with the Demo version of DVDAfteredit. There I got the following errormessage for all projects i builded with DVD_SP 4:
    #PGC Command Errors
    #PreCommands from "Subpic-mapping»Video Title Sets»VTS 1»VTSM 1 Menus»Deutsch»VTSM PGC 59"
    12:     GoTo Line 15
    * Line value too large. Only 14 instruction lines in Pre-Command Area.
    The error occurs on 7-8 different PGCs aleways in this VTS.
    I didnt had this error on projects build with DVD SP 3.
    As i see, DVD SP internal scripting is building a "goto" command that is jumping behind the last line.
    As i dont understand the whole script, i dont know when this wrong goto command might be executed and how to correct this.
    I believe a cheap programmed Player may fail when it comes to this command.
    Can someone confirm this error, or better direct me to a solution?
    As i have DLT deadline in 2 days im a bit frightened about that thing. (I dont want to think about the yet replicated discs...)
    Thanks,
    Matthes

    Thanks Matthes,
    I agree with Aldershot. It sounds to me like it is just a DVDSP issue. I wanted to know if myDVDEDit agreed with DVDAE, and it does, so that clearly rules out any mistake that might have been made by DVDAE. In essence, you got a second opinion, and they both agree.
    Sounds like something in the project upgrade, or just the build got lost.
    What does the script mean, is another question. The GoTo command is a way of nesting multiple command strings within the same script.
    For example:
    If r0==1 Goto10
    If r0==2 Goto20
    Now, I might have two somewhat unique scripts that start on line 10 and on line 20, and I don't want to execute both of them, just one of them. So I create a condition based on a register value that will execute either one of these two scripts based on the value of register 0, aka r0.
    GoTo is actually a command you can learn, and use within DVDSP's own scripting capabilities. So it's actually in your user manual as well. Many spec commands do not exist in Apple's DVDSP script IDE, but Goto does exist there. As you learn to script, you will sometimes run into a situation where one set of script commands doesn't actually perform the duty you would like. You will create an IF THEN approach, and that is what Goto offers. It allows me to split a script in multiple scripts, all within the same larger script.
    That's a bit abstract to think about, but I hope it makes some sense.

  • HP Express Card Mini Remote Mappings, Issues, Woahs, Questions.

    Ok, I am trying to actually get this Mini-Remote to be useful for my DV5-1235DX.
    First, is there an easy way to remap the buttons on the remote control?  I will never use HP Smart DVD.  I do not use HP Smart Menu.  I will not use Media Center.  I prefer my own software over those packages. 
    1). Any way to map those buttons to something else and stop the calls they make starting the existing software?
    2). Is there a full list of which media functions the remaining buttons are mapped to?  I have found some so far provided below.
    Remote Button Virtual Key Media Key
    Stop VK_MEDIA_STOP MEDIA_STOP
    Rewind MEDIA_FASTFORWARD
    Play/Pause VK_MEDIA_PLAY_PAUSE MEDIA_PLAY_PAUSE
    Fast Forward MEDIA_REWIND
    Previous VK_MEDIA_PREVIOUS_TRACK MEDIA_PREVIOUSTRACK
    Next VK_MEDIA_NEXT_TRACK MEDIA_NEXTTRACK
    Up MEDIA_CHANNEL_UP
    Down MEDIA_CHANNEL_DOWN
    Direction Up VK_UP
    Direction Down VK_DOWN
    Direction Left VK_LEFT
    Direction Right VK_RIGHT
    OK VK_RETURN
    Back VK_BROWSER_BACK BROWSER_BACKWARD
    Settings "i" Volume Down VK_VOLUME_DOWN VOLUME_DOWN
    Mute VK_VOLUME_MUTE VOLUME_MUTE
    Volume Up VK_VOLUME_UP VOLUME_UP
    As can be seen I am still missing some key buttons and their matched Media Key Function Name. 
    I would appreciate any and all help on finding the missing button functions and remapping the current app start calls.
    Thank you very much in advance for your time,
    Kelly
    P.S. - EDIT: A programmer friend pointed out the IR Software/Driver may be sending virtual keys and not just media key signals.  With that I was able to map a few more to their virtual key and can use those buttons now as well.
    With this new information I can now map all buttons except the little "i" and the 5 buttons across the top (Power, DVD, SmartMenu, Display Switch, MediaCenter).
    P.P.S. - Is there even an application that does anything when pressing the "i" button on the remote?  I've tried almost every application that was installed on the laptop and not one has responded when pressing that button.  The HP User Guides section 'HP Mobile Remote Control (Select Models Only) > Button quick reference' lists this button as Settings and says:
    "Press to display system information. The button may also be used to display settings menus for some multimedia software."  It does not display system information and I have yet to find any software it displays anything in.
    Message Edited by kelendral on 2009-04-25 07:48 PM

    Well, I called HP Support today.
    They verified the only reaction they could get from that "Settings" button on a similar model (they did not have the exact DV5-1235dx on hand) was to interrupt the screen saver.  This is the exact and only behavoir I have found with that key.
    They were also unable to provide any technical information (such as remote code, key being emulated, virtual key command, or media key mapping).
    So basically on a similar model device they experienced the exact same thing, the key appears to have no function in any of the software provided by HP.
    It is very disappionting that their technical support was so lacking that they could not describe the functionality of the key even after being sent up a level and passed over to a third tech.
    Until I figure out the mapping of this key, it appears to be a nice way to remotely interrupt the screensaver.  Then again any of the other keys will do that as well.
    I did find some use for knowing both the VK and MK mappings.  Media Player Classic HomeCinema allows the use of either VK or MK mapping.  It also allows the use of both.  By using both some keys can be made to perform double duty.
    Example:  MPC-HC has the Play function mapped to MK of MEDIA_PLAY_PAUSE.  By mapping the VK of VK_MEDIA_PLAY_PAUSE to one of the Jump Backward commands [eg Jump Backward (medium)] then hitting the Play/Pause key while something is playing will pause playback, and do a short rewind.  It will also do another short rewind and start playing again on the next press.  
    Example 2: MPC-HC has the Mute function mapped to MK VOLUME_MUTE.  By mapping the VK of VK_VOLUME_MUTE to Toggle Subtitles then pressing Mute will mute the sound and turn subtitles on.  Press again to turn subtitles off and turn the sound back on.
    This remote is similar to other HP laptops and so if you happen to know a piece of software which responds to the 'Settings i' button on any model of the HP laptop with any express card style remote running Windows Vista 64-bit please give a shout.
    Thanks again,
    Kelly

  • How do I stop automatic loading of the next page as I scroll to the bottom of an internet page that has a number of pages?

    When I search with Google, as I scroll to near the bottom of the page, the next page of results automatically loads. I can never get to and use the similar searches, or "Searches related to ***", which are at the bottom of the page, as the next page loads and focuses at the top of that next page. Also, there is a bar with the page number, and a field with a "Jump to" command with a pop down arrow with page numbers, and up and down arrows beside it which go up or down one page if used.
    This does not happen with, say, Bing, nor if I use Int Expl (aagh).
    I have no autopage type of add-ons, or plugins.. I may have had an add-on at one time. There are a bunch of autopager "strings", or lines, in about:config. How do you remove them, if that is the problem?
    How do I stop this from happening? It is extremely annoying.
    Thanks,
    SK

    hello, can you try to replicate this behaviour when you launch firefox in safe mode once? if not, maybe an addon is interfering here...
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]

  • Error while trying to import using OdiImportObject

    When trying to import project using OdiImportObject from command prompt the following error is encountered...
    E:\ODIHome\oracledi\bin>startcmd.bat OdiImportObject -FILE_NAME=E:\slot\ego\patch\115\odi\US\mode\MFOL_PIM.xml -IMPORT_MODE=SYNONYM_INSERT_UPDATE
    OracleDI: Starting Command OdiImportObject -FILE_NAME=E:\slot\ego\patch\115\odi\
    US\model\MFOL_PIM.xml -IMPORT_MODE=SYNONYM_INSERT_UPDATE
    +com.sunopsis.tools.core.exception.SnpsSimpleMessageException: Import failed. No+
    work repository name was defined and the import failed in the master repository.*
    at com.sunopsis.dwg.tools.ImportObject.actionExecute(ImportObject.java)
    at com.sunopsis.dwg.function.SnpsFunctionBaseRepositoryConnected.execute
    +(SnpsFunctionBaseRepositoryConnected.java)+
    at com.sunopsis.dwg.tools.ImportObject.main(ImportObject.java)
    at com.sunopsis.dwg.tools.OdiImportObject.main(OdiImportObject.java)
    The required work repository name, master repository credentials and driver details have been provided in the Odiparams.bat file

    I have digged through the Startcmd codes and for odiimportobject it calls
    for %%a in (SnpsImportObject OdiImportObject) do if %%a == %1 goto CONNECTED_COMMAND_WITHOUT_WORK_REP
    %ODI_JAVA_START% com.sunopsis.dwg.tools.%* -SECURITY_DRIVER=%ODI_SECU_DRIVER% -SECURITY_URL=%ODI_SECU_URL% -SECURITY_USER=%ODI_SECU_USER% -SECURITY_PWD=
    %ODI_SECU_ENCODED_PASS% -USER=%ODI_USER% -PASSWORD=%ODI_ENCODED_PASS%
    and it does not have any mention about work rep name in the parameters.
    I can't figure out the reason why its not working but the solution ican suggest is that instead of default use this
    for %%a in (SnpsImportObject OdiImportObject) do if %%a == %1 goto CONNECTED_COMMAND
    as connected command reads the work rep name from the odiparams file and that solve your issue.
    Might be you can look into metalink for the most appropriate reason why your command is not working. But for the time being the solution i gave will work .

  • MAXL problem for launching a script in order to disconnect users in a cube

    Hello,
    I would like to know how i can launch a maxl script in order to disconnect users who are connected on a cube. When i do this :
    IEssDomain dom2 = ess.signOn(USER, PASSWORD, false, null, PROVIDER);
    cv = dom2.openCubeView("EssaiBis", SERVEUR, APPNAME, CUBENAME);
    IEssMaxlSession maxl = dom2.openMaxlSession("maxl", SERVEUR);
    String strQuery = "alter application "+APPNAME+" unload database "+CUBENAME+";";
    maxl.execute(strQuery);
    maxl.close();
    The APPNAME, the CUBENAME, the SERVEUR, the USER, the PASSWORDn and the PROVIDER (embedded) are OK. However, it jumps the commands which are under the : IEssMaxlSession maxl = dom2.openMaxlSession("maxl", SERVEUR);
    So, the problem seems to be here.
    Thanks you for your help.
    Vinou

    It seems that it doesn't take the "+" in the script on the forum ^^

  • Control Drop Zone with Button State

    Does anyone know if you can control the display of a drop zone with the state of a button. I am working on an exercise video and would like change an image based on the selected state of three different buttons.

    Use auto actions on your buttons to jump to new (almost identical) menus with different drop zone video. Auto action can be set in the Button Property Inspector/Advanced Tab. Auto-action will automatically goto the jump target (another menu) upon selection of the button. Don't set an auto-action on the button the jumps to your desired target track.
    eg. - Create 3 menus A, B and C.
    "Menu A" should have: 1) "Button A" as the default selected button and a jump target to whatever track you want, 2) "Button B" should have auto-action that jumps to "Menu B" and 3) "Button C" should have auto-action that jumps to "Menu C".
    "Menu B" should have: 1) "Button B" as the default selected button, and a jump target to whatever track you want, 2) "Button A" should have auto-action that jumps to "Menu A" and 3) "Button C" should have auto-action that jumps to "Menu C".
    "Menu C" should have: 1) "Button C" as the default selected button, and a jump target to whatever track you want, 2) "Button A" should have auto-action that jumps to "Menu A" and 3) "Button B" should have auto-action that jumps to "Menu B".
    -k
    G5   Mac OS X (10.4.3)  
    G5   Mac OS X (10.4.3)  

  • Checking SAP notes on Solution Manager

    Hi...
    I need to get a report with all the SAP notes applied in my ERP environment.
    If I use tx code snote, on ERP, I can find this, but I need something on Solution Manager, like a report...
    What can I do?!
    Thank's in advance.

    Hi,
    If you have already configured Diagnostics,(Solution manager Diagnostics - SMD and its a must for this activity), call Txn-> Solman_workcenter -> Root cause Analysis-> End to End Analysis->Select your system <SID>-> Change Analysis-> Select the Time Frame->goto notes ->Jump in-> to change Reporting ->Export the Result(if needed).
    Or
    Under RCA- Call system Analysis -> Change Reporting -> Select the instance and Get the suitable Extractor to get this :).
    Hope this helps.
    PS: If you have not configured Diagostics yet, Do configure it in first place, other wise, you don't have an option in solman and had to ge the individual reports from remote/satellite systems :(.
    Kindly revert for any issues.
    Thanks,
    Jagan

  • WAD Analysis Row Selection value by JS

    Hi Experts,
    I created in Web Application designer (7.10 P2) an Analysis Item with row selection single.
    What I want is to catch (via JavaScript or others?) the selected row (rowid?) and the values of the fields of the selected row to jump to an other Query using this values as Filter/Variables.
    Any ideas welcome
    Bernd

    Hi Bernd,
    you can use the Report-Report interface to jump to a new target:
    http://help.sap.com/saphelp_nw70/helpdata/en/42/d43307f3ef6bb4e10000000a1553f6/frameset.htm
    Once the assignment is made with TA RSBBS, you can select one line in your analysis item,
    right-click, select 'Goto' and jump to the target. The selection made is transfered to the target according to
    the settings in RSBBS.
    Best regards,
    Alexander Bauer

  • Stop and go to left locator

    "stop and go to left locator" is not what is should be! Now it is "play from left locator" and that is since 7.2.1! Anyone else with this problem? What is solution?
    Thanks for help
    Dual 2.5, TiBook 1GHz   Mac OS X (10.4.3)  

    I couldn't work out what your problem is.
    Are you saying that the "Stop, Goto Left Locator" key command is missing in 7.2.1, or that the "Stop, Goto Left Locator" performs wrongly?
    You've checked your key commands to make sure they are assigned correctly?
    (It works here on 7.1.1, I can't test later versions...)

  • Recompile with -Xlint:unchecked for details???

    hi friends ,
    im using jdk-6-windows-i586. and apache-tomcat-5.5.26.
    In development phase i got the following error while compiling
    BeerExpert.java file. This is my model.
    Note: BeerExpert.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    But the class file is created. Is this any type of error or just warning msg.
    What is the meaning of this and what to do for it.
    Then I recompile the file with javac -Xlint BeerExpert.java or javac -Xlint:unchecked BeerExpert.java
    and the warning msg. appered as-
    BeerExpert.java:9: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.List
    brands.add("Jack Amber");
    error pos::: ^ error or warning position pointed by compiler
    4 warnings
    my source code is-
    package com.example.model;
    import java.util.*;
    public class BeerExpert {
    public List getBrands(String color) {
    List brands = new ArrayList();
    if(color.equals("amber")) {
    brands.add("Jack Amber");
    brands.add("Red Moose");
    else {
    brands.add("Jail Pale Ale");
    brands.add("Gout Stout");
    return(brands);
    Any suggestions what to do? Please..
    Thanx in advance.

    hi i have the same problem but my compiler is different
    it says note: stream.java uses or overrides depricated API
    recompile with XLINT:deprication for details
    @echo off
    :def
    color 0F
    :main
    cls
    title irans's Perfect Compiler
    echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    echo :: Welcome to the ultimate Serverbatch!
    echo ::
    echo :: Choose one of the options below by entering
    echo :: the corrensponding letter and pressing enter.
    echo ::
    echo :: Need a batch file created?
    echo :: http://www.Moparscape.org/smf.
    echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    echo :::: Main options:
    echo :::: com = Compile your server.
    echo :::: run = Run your server.
    echo :::: aur = Runs your server with autorestart.
    echo :::: bac = Backup your server files.
    echo ::::
    echo :::: Other options;
    echo :::: set = Change settings.
    echo :::: loc = Location list (co-ordinates)
    echo :::: upd = Updates
    echo :::: cmd = Command generator
    echo :::: cre = Credits
    echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    echo ::
    set /p mainc=:: Choice:
    if %mainc%==com goto com
    if %mainc%==run goto run
    if %mainc%==aur goto aur
    if %mainc%==bac goto bac
    if %mainc%==set goto set
    if %mainc%==loc goto loc
    if %mainc%==upd goto upd
    if %mainc%==cmd goto cmd
    if %mainc%==cre goto cre
    if %mainc%==COM goto com
    if %mainc%==RUN goto run
    if %mainc%==AUR goto aur
    if %mainc%==BAC goto bac
    if %mainc%==SET goto set
    if %mainc%==LOC goto loc
    if %mainc%==UPD goto upd
    if %mainc%==CMD goto cmd
    if %mainc%==CRE goto cre
    goto main
    :com
    cls
    title Compiling...
    echo :: Preparing for compile...
    echo :: Auto-setting envriomental variables...
    echo ::
    goto com2
    :com2
    title Compiling...
    echo :: Scanning for latest JDK version...
    echo ::
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_10\BIN" (GOTO COM10)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_09\BIN" (GOTO COM09)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_08\BIN" (GOTO COM08)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_07\BIN" (GOTO COM07)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_06\BIN" (GOTO COM06)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_05\BIN" (GOTO COM05)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_04\BIN" (GOTO COM04)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_03\BIN" (GOTO COM03)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_02\BIN" (GOTO COM02)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_01\BIN" (GOTO COM01)
    goto comerrorxxx
    :COM10
    echo :: Found JDK 1.6.0_10
    SET CLASSPATH=Files\Java\jdk1.6.0_10\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_10\bin
    echo :: Results:
    javac *.java
    echo :: Done!
    pause
    goto main
    :COM09
    echo :: Found JDK 1.6.0_09
    SET CLASSPATH=Files\Java\jdk1.6.0_09\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_09\bin
    echo :: Results:
    javac *.java
    echo :: Done!
    pause
    goto main
    :COM08
    echo :: Found JDK 1.6.0_08
    SET CLASSPATH=Files\Java\jdk1.6.0_08\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_08\bin
    echo :: Results:
    javac *.java
    echo :: Done!
    pause
    goto main
    :COM07
    echo :: Found JDK 1.6.0_07
    SET CLASSPATH=Files\Java\jdk1.6.0_07\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_07\bin
    echo :: Results:
    javac *.java
    echo :: Done!
    pause
    goto main
    :COM06
    echo :: Found JDK 1.6.0_06
    SET CLASSPATH=Files\Java\jdk1.6.0_06\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_06\bin
    echo :: Results:
    javac *.java
    echo :: Done!
    pause
    goto main
    :COM05
    echo :: Found JDK 1.6.0_05
    SET CLASSPATH=Files\Java\jdk1.6.0_05\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_05\bin
    echo :: Results:
    javac *.java
    echo :: Done!
    pause
    goto main
    :COM04
    echo :: Found JDK 1.6.0_04
    SET CLASSPATH=Files\Java\jdk1.6.0_04\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_04\bin
    echo :: Results:
    javac *.java
    echo :: Done!
    pause
    goto main
    :COM03
    echo :: Found JDK 1.6.0_03
    SET CLASSPATH=Files\Java\jdk1.6.0_03\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_03\bin
    echo :: Results:
    javac *.java
    echo :: Done!
    pause
    goto main
    :COM2
    echo :: Found JDK 1.6.0_02
    SET CLASSPATH=Files\Java\jdk1.6.0_02\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_02\bin
    echo :: Results:
    javac *.java
    echo :: Done!
    pause
    goto main
    :COM01
    echo :: Found JDK 1.6.0_01
    SET CLASSPATH=Files\Java\jdk1.6.0_01\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_01\bin
    echo :: Results:
    javac *.java
    echo :: Done!
    pause
    goto main
    :COMERRORXXX
    echo :: No version of JDK 1.6 was detected.wtf impossible
    pause
    goto main
    :run
    cls
    title Running Server...
    echo :: Port:
    echo :: 43594
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_10\BIN" (GOTO RUN10)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_09\BIN" (GOTO RUN09)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_08\BIN" (GOTO RUN08)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_07\BIN" (GOTO RUN07)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_06\BIN" (GOTO RUN06)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_05\BIN" (GOTO RUN05)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_04\BIN" (GOTO RUN04)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_03\BIN" (GOTO RUN03)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_02\BIN" (GOTO RUN02)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_01\BIN" (GOTO RUN01)
    :RUN10
    echo :: Running using JDK 1.6.0_10...
    SET CLASSPATH=Files\Java\jdk1.6.0_10\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_10\bin
    java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
    echo :: Failed!
    pause
    goto main
    :RUN09
    echo :: Running using JDK 1.6.0_09...
    SET CLASSPATH=Files\Java\jdk1.6.0_09\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_09\bin
    java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
    echo :: Failed!
    pause
    goto main
    :RUN08
    echo :: Running using JDK 1.6.0_08...
    SET CLASSPATH=Files\Java\jdk1.6.0_08\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_08\bin
    java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
    echo :: Failed!
    pause
    goto main
    :RUN07
    echo :: Running using JDK 1.6.0_07...
    SET CLASSPATH=Files\Java\jdk1.6.0_07\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_07\bin
    java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
    echo :: Failed!
    pause
    goto main
    :RUN06
    echo :: Running using JDK 1.6.0_06...
    SET CLASSPATH=Files\Java\jdk1.6.0_06\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_06\bin
    java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
    echo :: Failed!
    pause
    goto main
    :RUN05
    echo :: Running using JDK 1.6.0_05...
    SET CLASSPATH=Files\Java\jdk1.6.0_05\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_05\bin
    java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
    echo :: Failed!
    pause
    goto main
    :RUN04
    echo :: Running using JDK 1.6.0_04...
    SET CLASSPATH=Files\Java\jdk1.6.0_04\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_04\bin
    java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
    echo :: Failed!
    pause
    goto main
    :RUN03
    echo :: Running using JDK 1.6.0_03...
    SET CLASSPATH=Files\Java\jdk1.6.0_03\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_03\bin
    java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
    echo :: Failed!
    pause
    goto main
    :RUN02
    echo :: Running using JDK 1.6.0_02...
    SET CLASSPATH=Files\Java\jdk1.6.0_03\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_03\bin
    java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
    echo :: Failed!
    pause
    goto main
    :RUN01
    echo :: Running using JDK 1.6.0_01...
    SET CLASSPATH=Files\Java\jdk1.6.0_03\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_03\bin
    java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
    echo :: Failed! Need JDK 1.6.0_xx
    pause
    cls
    goto main
    :bac
    :backup
    cls
    title Backing up files...
    echo :: Backing up files...
    if not exist Backup mkdir Backup
    if not exist Backup\characters mkdir Backup\characters
    if not exist Backup\connectedFrom mkdir Backup\connectedFrom
    if not exist Backup\data mkdir Backup\data
    if not exist Backup\flagged mkdir Backup\flagged
    if not exist Backup\logs mkdir Backup\logs
    if not exist Backup\moreinfo mkdir Backup\moreinfo
    if not exist Backup\savedGames mkdir Backup\savedGames
    Echo Starting Backup Copy
    copy /V /Y /A *.txt .\Backup\
    copy /V /Y /A *.java .\Backup\
    copy /V /Y /A *.class .\Backup\
    copy /V /Y /A *.cfg .\Backup\
    copy /V /Y /A *.bat .\Backup\
    copy /V /Y /A bans .\Backup\bans
    copy /V /Y /A characters .\Backup\characters
    copy /V /Y /A characters .\Backup\characters
    copy /V /Y /A connectedFrom .\Backup\connectedFrom
    copy /V /Y /A data .\Backup\data
    copy /V /Y /A flagged .\Backup\flagged
    copy /V /Y /A logs .\Backup\logs
    copy /V /Y /A moreinfo .\Backup\moreinfo
    copy /V /Y /A savedGames .\Backup\savedGames
    echo :: Done.
    pause
    cls
    goto main
    :set
    cls
    echo :: Enter one of the following to change background colour.
    echo :: B0 = Black
    echo :: B1 = Blue
    echo :: B2 = Green
    echo :: B3 = Cyan
    echo :: B4 = Red
    echo :: B5 = Purple
    echo :: B6 = Yellow
    echo :: B7 = White
    echo.
    echo :: Enter one of the following to change text colour.
    echo :: T0 = Black
    echo :: T1 = Blue
    echo :: T2 = Green
    echo :: T3 = Cyan
    echo :: T4 = Red
    echo :: T5 = Purple
    echo :: T6 = Yellow
    echo :: T7 = White
    set /p s=:: Choice:
    if %s%== B0 (set b=0)
    if %s%== B1 (set b=1)
    if %s%== B2 (set b=2)
    if %s%== B3 (set b=3)
    if %s%== B4 (set b=4)
    if %s%== B5 (set b=5)
    if %s%== B6 (set b=6)
    if %s%== B7 (set b=F)
    if %s%== T0 (set t=0)
    if %s%== T1 (set t=1)
    if %s%== T2 (set t=2)
    if %s%== T3 (set t=3)
    if %s%== T4 (set t=4)
    if %s%== T5 (set t=5)
    if %s%== T6 (set t=6)
    if %s%== T7 (set t=F)
    color %b%%t%
    pause
    cls
    goto main
    :loc
    cls
    echo :: Below is a list of locations with their coordinates.
    echo ::
    echo :: Varrock - 3210 3424
    echo :: Falador - 2964 3378
    echo :: Lumbridge - 3222 3218
    echo :: Camelot - 2757 3477
    echo :: East Ardougne 2662 3305
    echo :: West Ardougne 2529 3307
    echo :: Al Kharid 3293 3174
    echo :: Khalphite Lair 3226 3107
    echo :: Yannille 2606 3093
    echo :: Tutorial Island 3094 3107
    echo :: Barbarian Village 3082 3420
    echo :: Entrana 2834 3335
    echo :: Heroes Guild 2902 3510
    echo :: Rangers Guild 2658 3439
    echo :: Catherby 2813 3447
    echo :: Seers Village 2708 3492
    echo :: Fishing Guild 2603 3414
    echo :: Isafdar 2241 3238
    pause
    cls
    goto main
    :upd
    cls
    echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    echo :: Latest updates:
    echo ::
    echo :: 1) Added Location list.
    echo :: 2) Fixed backup commands.
    echo :: 3) Added settings option.
    echo :: 4) Fixed backup to cover more file types.
    echo :: 5) Added autorestarter. This was incredibly difficult for me to do.
    echo :: 6) Added command generator.
    echo :: 7) Auto-sets enviromental variables when compiling.
    echo :: 8) Released On Mopar Forums
    echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    pause
    cls
    goto main
    :cmd
    :Star
    Set /p CmdName=Command Input?
    Set /p RUSure=Are you sure you want the commands input: %CmdName%(yes,no)?
    If %RUSure%==no GOTO Star
    If not Exist CommandsFolder MD Commands Folder
    Echo else if(command.equalsignorecase("%CmdName%")) >> ".\Commands\%CmdName% Command.txt"
    Echo { >> ".\Commands\%CmdName% Command.txt"
    cls
    set /p AY=addItem(yes,no)?
    If %AY%==YES Goto addItem
    If %AY%==yes Goto addItem
    If %AY%==no Goto endCode
    If %AY%==NO Goto endCode
    :addItem
    cls
    set /p ID=ItemID?
    cls
    set /p Amount=Amount Of that Item?
    cls
    echo addItem(%ID%,%Amount%); >> ".\Commands\%CmdName% Command.txt"
    Set /P AT=Add item, add tele or finish command.(AI,T,End)
    If %AT%==ai GOTO addItem
    If %AT%==Ai GOTO addItem
    If %AT%==AI GOTO addItem
    If %AT%==aI GOTO addItem
    If %AT%==T GOTO Tele
    If %AT%==t GOTO Tele
    If %AT%==end GOTO endCode
    If %AT%==END GOTO endCode
    If %AT%==EnD GOTO endCode
    If %AT%==eNd GOTO endCode
    If %AT%==ENd GOTO endCode
    If %AT%==enD GOTO endCode
    if %AT%==End Goto endcode
    if %type%==* goto error
    echo.
    goto error
    :error
    cls
    echo Commands invalid. Only use commands from the menu.
    pause
    goto menu
    :endCode
    cls
    Echo } >> ".\Commands\%CmdName% Command.txt"
    Set /p Again=Make Another (yes, No)?
    If %Again%==yes GOTO Star
    If %Again%==no goto fin
    If %Again%==YES GOTO Star
    If %Again%==NO goto fin
    :Tele
    cls
    Set /P X=XCoord Tele?
    Set /P Y=YCoord Tele?
    Echo teleportToX = %X% >> ".\Commands\%CmdName% Command.txt"
    Echo teleportToY = %Y% >> ".\Commands\%CmdName% Command.txt"
    Set /P AT=addItem Or Another Tele(not Used In Same Command Usually(AI,T,End)
    If %AT%==ai GOTO addItem
    If %AT%==Ai GOTO addItem
    If %AT%==AI GOTO addItem
    If %AT%==aI GOTO addItem
    If %AT%==T GOTO Tele
    If %AT%==t GOTO Tele
    If %AT%==end GOTO endCode
    If %AT%==END GOTO endCode
    If %AT%==EnD GOTO endCode
    If %AT%==eNd GOTO endCode
    If %AT%==ENd GOTO endCode
    If %AT%==enD GOTO endCode
    if %AT%==End Goto endcode
    :fin
    echo Command creation complete. Find it in the commands folder.
    pause
    cls
    goto main
    :aur
    cls
    echo :: Have you already set up your autorestarter? (Y/N)
    set /p ans=:: Answer:
    if %ans%==y goto ansyes
    if %ans%==n goto ansno
    goto main
    :ansyes
    cls
    call autorestart.bat
    echo Not Found!
    pause
    goto main
    :ansno
    cls
    echo :: How long between auto restarts?
    set /p hlb=:: (10min, 12min, 14min, 16min, 18min, 20min):
    if %hlb%==10min goto min10
    if %hlb%==12min goto min12
    if %hlb%==14min goto min14
    if %hlb%==16min goto min16
    if %hlb%==18min goto min18
    if %hlb%==20min goto min20
    :min10
    del ProcessKiller.bat
    del Autorestart.bat
    del Runner.bat
    echo :start >> ProcessKiller.bat
    echo PING 1.1.1.1 -n 1 -w 600000 >> ProcessKiller.bat
    echo tskill java >> ProcessKiller.bat
    echo start call runner >> ProcessKiller.bat
    echo goto start >> ProcessKiller.bat
    echo java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server >> Runner.bat
    echo exit >> Runner.bat
    echo @echo off >> Autorestart.bat
    echo :start >> Autorestart.bat
    echo Start call "Runner.bat" >> Autorestart.bat
    echo call "ProcessKiller.bat" >> Autorestart.bat
    echo pause >> Autorestart.bat
    echo goto start >> Autorestart.bat
    goto donexd
    :min12
    del ProcessKiller.bat
    del Autorestart.bat
    del Runner.bat
    echo :start >> ProcessKiller.bat
    echo PING 1.1.1.1 -n 1 -w 720000 >> ProcessKiller.bat
    echo tskill java >> ProcessKiller.bat
    echo start call runner >> ProcessKiller.bat
    echo goto start >> ProcessKiller.bat
    echo java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server >> Runner.bat
    echo exit >> Runner.bat
    echo @echo off >> Autorestart.bat
    echo :start >> Autorestart.bat
    echo Start call "Runner.bat" >> Autorestart.bat
    echo call "ProcessKiller.bat" >> Autorestart.bat
    echo pause >> Autorestart.bat
    echo goto start >> Autorestart.bat
    goto donexd
    :min14
    del ProcessKiller.bat
    del Autorestart.bat
    del Runner.bat
    echo :start >> ProcessKiller.bat
    echo PING 1.1.1.1 -n 1 -w 840000 >> ProcessKiller.bat
    echo tskill java >> ProcessKiller.bat
    echo start call runner >> ProcessKiller.bat
    echo goto start >> ProcessKiller.bat
    echo java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server >> Runner.bat
    echo exit >> Runner.bat
    echo @echo off >> Autorestart.bat
    echo :start >> Autorestart.bat
    echo Start call "Runner.bat" >> Autorestart.bat
    echo call "ProcessKiller.bat" >> Autorestart.bat
    echo pause >> Autorestart.bat
    echo goto start >> Autorestart.bat
    goto donexd
    :min16
    del ProcessKiller.bat
    del Autorestart.bat
    del Runner.bat
    echo :start >> ProcessKiller.bat
    echo PING 1.1.1.1 -n 1 -w 960000 >> ProcessKiller.bat
    echo tskill java >> ProcessKiller.bat
    echo start call runner >> ProcessKiller.bat
    echo goto start >> ProcessKiller.bat
    echo java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server >> Runner.bat
    echo exit >> Runner.bat
    echo @echo off >> Autorestart.bat
    echo :start >> Autorestart.bat
    echo Start call "Runner.bat" >> Autorestart.bat
    echo call "ProcessKiller.bat" >> Autorestart.bat
    echo pause >> Autorestart.bat
    echo goto start >> Autorestart.bat
    goto donexd
    :min18
    del ProcessKiller.bat
    del Autorestart.bat
    del Runner.bat
    echo :start >> ProcessKiller.bat
    echo PING 1.1.1.1 -n 1 -w 1080000 >> ProcessKiller.bat
    echo tskill java >> ProcessKiller.bat
    echo start call runner >> ProcessKiller.bat
    echo goto start >> ProcessKiller.bat
    echo java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server >> Runner.bat
    echo exit >> Runner.bat
    echo @echo off >> Autorestart.bat
    echo :start >> Autorestart.bat
    echo Start call "Runner.bat" >> Autorestart.bat
    echo call "ProcessKiller.bat" >> Autorestart.bat
    echo pause >> Autorestart.bat
    echo goto start >> Autorestart.bat
    goto donexd
    :min20
    del ProcessKiller.bat
    del Autorestart.bat
    del Runner.bat
    echo :start >> ProcessKiller.bat
    echo PING 1.1.1.1 -n 1 -w 1200000 >> ProcessKiller.bat
    echo tskill java >> ProcessKiller.bat
    echo start call runner >> ProcessKiller.bat
    echo goto start >> ProcessKiller.bat
    echo java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server >> Runner.bat
    echo exit >> Runner.bat
    echo @echo off >> Autorestart.bat
    echo :start >> Autorestart.bat
    echo Start call "Runner.bat" >> Autorestart.bat
    echo call "ProcessKiller.bat" >> Autorestart.bat
    echo pause >> Autorestart.bat
    echo goto start >> Autorestart.bat
    goto donexd
    :donexd
    echo :: Autorestart configuration is complete. Choose 'y' at the menu.
    pause
    cls
    goto aur
    goto main
    :cre
    cls
    echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    echo :: Thanks you for using irans's ultimate Serverbatch!
    echo ::
    echo :: Thanks to:
    echo :: iran4life
    echo ::
    echo :: And you, if you have decided to use this
    echo :: instead of a different serverbatch (compiler).
    echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    pause
    cls
    goto main
    for some reason when i compile it says note: stream.java uses or overrides depricated API
    recompile with XLINT:deprication for details
    is there any errors ?
    help plz ive been trying for weeks and i went to ur link and still couldnt find...
    Edited by: imascape on Nov 5, 2008 8:18 PM

Maybe you are looking for