Executing client commands without using webutil

Hi,
Overview: Our dba is busy enough to be disturbed for configuring webutil for me to execute client commands like client_host, client_text_io, etc.
The forms resides on unix server, then I want to implement a feature that writes data to a file then to be saved in the client's
local directory.
Question: I was just wondering if I can or is it possible to execute client commands specifically windows commands without using client_host?
Any help would be much appreciated.

I think i found a way on how to do it, using Runtime.getRuntime().exec

Similar Messages

  • Without using webutil how to read an image from client or own system

    Hi,
    I am trying to read image from my own system.
    (if I click on button (browse) then it should open an dialog box then i can select image from it. then I press another button(save) it should be store in the database.)
    So, i want read image without using webutil package how to do it.
    If i want read image from client system please tell me how to do it.
    I am getting with webutil package but there is any other chance to get the image.

    Please keep in mind that Forms 10g is a release not a version.  Also, since you are running on Windows 7 64 bit - you should be using Forms 10g Release 2 (version 10.1.2.0.2) and a patchset to upgrade this to version 10.1.2.3.0.
    Now, to answer your question - I happen to agree with MarkReichman, WebUtil would be my preferred method, but since you don't want to use WebUtil then the only other way would be to use a 3rd party Java Bean.  I prefer WebUtil because it is supported by Oracle and I can contact them with any issues.
    Craig...

  • How do you Spell Check w/ Word, Without using webutil?

    In our v6 forms we were able to use MS Word's spell check, how can I do this with a 10g form without using webutil?

    Jim, thanks for the update. Some of the recent version of Jinitiator have included bug fixes relating to proxies. (though I suppose Support has gone through this with you).
    I don't want to confuse the issue here but while Oracle Forms 10g is only certified on certain JVMs etc, we did run some webutil specific certification tests on Sun JDK 1.4.2 and that was ok (but again please cross reference this the Forms client certification since this testing was just and aside for the webutil QA).
    If you need this functionality I think it would be worth seeing if a bug can be identified in Jinit and seeing if we can fix that -you may have worked with Support on this already...but as I said, check with the latest Jinit anyway to make sure. (1.3.1.17 or 18 I think off the top of my head)
    Thanks
    Grant

  • Execute a command without thread

    Hi....i have to execute a command in DOS and i'm using runtime java class with its method exec(). The process works perfectly but in my code i have to execute that command without a thread because the successive operations will work only if the command terminated correctly. What can i do to resolve it?

    String cmd = input.getTxtDb2Cmd();
    Process p = Runtime.getRuntime().exec(cmd);
    int r = p.waitFor();
    if (r != 0)
    throw new RuntimeException("db2 command failed");
    i've to invoke a db2 command that import a txt file in a db table. After this code i've some operations that works with this table so i've to terminate this import before execute other functions.

  • Executing bat file without using Runtime.exec()??

    Hi all
    From my java App ,I am running a bat file. This is what I did:
    When I press 'execute' button inside my App, it runs a bat file through Runtime.exec() method. Since exec() runs it through cmd.exe, get a DOS window when I press Execute button. If I manually runs my app from command promt , I dont get it. But I have to create a short cut of my main class in the desktop. This is happening when I run my app from desktop icon.
    Now I want to eleminate DOS popup everytime I press execute button. Would anyone pls give an idea how to run bat file without using Runtime.exec()? Any suggestion will be helpful.
    Thanks

    jscell
    Thanks for taking time to answer to my problem .
    Here is what my problem: I create a shortcut of my main class in the desktop. Through this shortcut ,I run my java App. My App has a execute button, When I press this button , It run another bat file through Runtime.exec() method, and show some result in the result PAnel. NOw what happen , I get a DOS command window , everytime I press execute button. , Which is very annoying . But If I run my App thorugh command promt by executing: "java myApp", then I dont get this DOS popup. But I have to create a shortcut in the desktop, so other can use it conveniently.
    NOw I am not sure why I am getting this DOS window in the middle of my Application. IS it for using Runtime.exec() method? or for running bat file through my application? Can anyone pls tell me? I am kind of new to java, and I am learning lot of stuff from this forum .
    Would u pls suggest me about how to eleminate this DOS popup when I press execute button.
    Regrds

  • Trying to find a way to execute from command prompt using java....

    I want to find a way to execute a command from the command line using a java program this is my code:
    import java.io.*;
    public class SQLHopefully
         public static void main(String[] args)
              try{
              Runtime rt = Runtime.getRuntime();
              Process proc = rt.exec("cmd /k start cmd.exe");
              OutputStream out = proc.getOutputStream();
              System.out.println(out);
              out.write("test.txt".getBytes()); //I THOUGHT THIS WOULD WORK
              InputStream stdin = proc.getErrorStream();
              InputStreamReader isr = new InputStreamReader(stdin);
              BufferedReader br = new BufferedReader(isr);
              String line = null;
              while ( (line = br.readLine()) != null) {
              System.out.println(line);
              stdin = proc.getInputStream();
              isr = new InputStreamReader(stdin);
              br = new BufferedReader(isr);
              line = null;
              while ( (line = br.readLine()) != null) {
              System.out.println(line);
              int exitVal;
              try {
              exitVal = proc.waitFor();
              } catch (InterruptedException e) {
              throw new IOException(e.getMessage());
              if (exitVal != 0) {
              throw new IOException("Exit value was " + exitVal ");
              }catch(IOException e)
              {System.out.println("ummmmm");}
    I hope my code is readable. I am trying to get the command prompt that comes up from the Runtime.exec() to run a file called "test.txt" I know it would be easier to just do it by executing it from java but I want to see if it is possible this way. I thought the out.write would do the trick but I was wrong. Somebody help please....
    Nate

    First read this article:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    Second, you should probably send the Enter key to the shell if you want anything to happen. (Not that I know whether it will work, but I do know it won't work if you don't press Enter.)

  • Run command without using ./

    Hi,
    Maybe I place this question in a wrong forum. But I guess there is somebody who knows.
    How to run command under Linus platform without using ./ ?
    For instance, I run ./crs_stat.
    How can I run crs_stat ?

    Hi,
    Thanks all.
    The values of the export,
    [oracle@css-rac1 ~]$ echo $ORA_CRS_HOME
    /u01/app/crs/product/11.1.0/crs
    [oracle@css-rac1 ~]$ echo $PATH
    /u01/app/crs/product/11.1.0/crs/bin:/u01/app/oracle/product/11.1.0/db_1/bin:/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/oracle/bin

  • Problem in downloading a file from AS to client through form using webutil

    I am running oracle 10g sever & devloper 10g in the same machine. Almost every thing is working properly from a client PC in the network except the following aspect :-
    From client pc, through form, I have created one export(dmp file) which is being saved in the AS. Now I want this file to be downloaded from AS to this client PC.
    I have tried webutil_file.copy_file(server_filename,client_copy_name) which is not working. the error trace file says "Unable to open source file in server" & "Unable to read WebUtil configuration file".
    I have also tried webutil_file_transfer.AS_to_Client_with_progress
    which results in unsuccessful from server to client.
    I modified the webutil.cfg file as :=
    transfer.database.enabled=TRUE
    transfer.appsrv.enabled=TRUE
    transfer.appsrv.accessControl=FALSE
    transfer.appsrv.workAreaRoot=D:\temp
    transfer.appsrv.read.1=D:\temp
    transfer.appsrv.write.1=D:\temp
    Please help me out from this situation

    hi
    Welcome to OTN.
    try to use.
    Client_host()sarah

  • How to execute a sequence without using an User Interface

    Hi,
    I have programatically generated a TestStand Sequence File. I used C# and the TestStand API. I opened the .seq file in the default TestStand User Interface and the Sequence File runs perfectly.
    However, when I created a NewExecution using the Engine object created in the porgram, it seems that the sequence never starts execution. Please look at the following code snippet:
    // TSStep and TSSequence was created before 
    TSSequence.InsertStep(TSStep, 0, StepGroups.StepGroup_Main); SequenceFile TSSequenceFile = TSEngine.NewSequenceFile();
    TSSequenceFile.InsertSequenceEx(0, TSSequence);
    TSSequenceFile.Save("SeqGen.seq");  Execution TSExecution = TSEngine.NewExecution(TSSequenceFile, "Seq_0", null, false, ExecutionTypeMask.ExecTypeMask_Normal, System.Type.Missing, System.Type.Missing, System.Type.Missing);while (TSSequenceFile.IsExecuting == true) ; // this flag never changes to false  
    TSEngine.ReleaseSequenceFileEx(TSSequenceFile, 0);
    I know the sequence is not being executed because a COM Server (written as a Local Server in a .EXE) should start when the step within the sequence be executed.
    Any ideas why the sequence is not executing properly ?
    PacSoft

    Hi Pacsoft,
    Check out this example,
    I posted it in a former thread.
    Note: Also downloaded the .seq from the former thread! NEVER acept savings to Ni. -INI files !!!
    Greetings
    juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=
    Attachments:
    ConsoleApplication2.zip ‏55 KB

  • WDS with unattended.xml, client starts without using unattended.xml

    Hi all,
    i've a server W2K12 with WDS (properly installed). I created the file unattended.xml, put it in the folder of my WDS deployment and in the WDS server.
    The ouput of the my unattended.xml is:
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="windowsPE">
            <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
    xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance">
                <SetupUILanguage>
                    <UILanguage></UILanguage>
                </SetupUILanguage>
                <InputLocale>en-us</InputLocale>
                <SystemLocale>en-us</SystemLocale>
                <UILanguage>en-us</UILanguage>
                <UILanguageFallback>en-us</UILanguageFallback>
            </component>
            <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm"http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance">
                <ImageInstall>
                    <OSImage>
                        <InstallTo>
                            <DiskID>0</DiskID>
                            <PartitionID>1</PartitionID>
                        </InstallTo>
                        <InstallFrom>
                            <MetaData wcm:action="add">
                                <Key>/Image/Name</Key>
                                <Value>Windows Server 2012 SERVERSTANDARD</Value>
                            </MetaData>
                        </InstallFrom>
                    </OSImage>
                </ImageInstall>
                <UserData>
                    <AcceptEula>true</AcceptEula>
                </UserData>
                <DiskConfiguration>
                    <Disk wcm:action="add">
                        <CreatePartitions>
                            <CreatePartition wcm:action="add">
                                <Order>1</Order>
                                <Size>10000</Size>
                                <Type>Primary</Type>
                            </CreatePartition>
                        </CreatePartitions>
                        <ModifyPartitions>
                            <ModifyPartition wcm:action="add">
                                <Active>true</Active>
                                <Extend>true</Extend>
                                <Format>NTFS</Format>
                                <Label></Label>
                                <Letter>C</Letter>
                                <Order>1</Order>
                                <PartitionID>1</PartitionID>
                            </ModifyPartition>
                        </ModifyPartitions>
                        <DiskID>0</DiskID>
                        <WillWipeDisk>true</WillWipeDisk>
                    </Disk>
                </DiskConfiguration>
                <WindowsDeploymentServices>
                    <Login>
                        <Credentials>
                            <Domain>lol.local</Domain>
                            <Password>AAAA2015</Password>
                            <Username>Administrator</Username>
                        </Credentials>
                    </Login>
                    <ImageSelection>
                        <InstallTo>
                            <DiskID>0</DiskID>
                            <PartitionID>1</PartitionID>
                        </InstallTo>
                    </ImageSelection>
                </WindowsDeploymentServices>
            </component>
        </settings>
        <settings pass="oobeSystem">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance">
                <UserAccounts>
                    <AdministratorPassword>
                        <Value>QQBuAGQAcgBlAGEANwA5AGMAdgBBAGQAbQBpAG4AaQBzAHQAcgBhAHQAbwByAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                        <PlainText>false</PlainText>
                    </AdministratorPassword>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>QQBuAGQAcgBlAGEANwA5AGMAdgBQAGEAcwBzAHcAbwByAGQA</Value>
                                <PlainText>false</PlainText>
                            </Password>
                            <DisplayName>Administrator</DisplayName>
                            <Group>Administrators</Group>
                            <Name>Admin</Name>
                        </LocalAccount>
                    </LocalAccounts>
                    <DomainAccounts>
                        <DomainAccountList wcm:action="add">
                            <Domain>lol.local</Domain>
                        </DomainAccountList>
                    </DomainAccounts>
                </UserAccounts>
                <AutoLogon>
                    <Password>
                        <Value>QQBuAGQAcgBlAGEANwA5AGMAdgBQAGEAcwBzAHcAbwByAGQA</Value>
                        <PlainText>false</PlainText>
                    </Password>
                    <Username>Administrator</Username>
                    <Enabled>true</Enabled>
                </AutoLogon>
                <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine> cmd.exe /c a:set-power-config.bat</CommandLine>
                        <Description>Turn off all power saving and timeouts</Description>
                        <Order>2</Order>
                        <RequiresUserInput>true</RequiresUserInput>
                    </SynchronousCommand>
                </FirstLogonCommands>
            </component>
            <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance">
                <InputLocale>en-us</InputLocale>
                <UILanguage>en-us</UILanguage>
                <UILanguageFallback>en-us</UILanguageFallback>
                <UserLocale>en-us</UserLocale>
            </component>
        </settings>
        <settings pass="specialize">
            <component name="Microsoft-Windows-ServerManager-SvrMgrNc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
    xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance">
                <DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon>
            </component>
            <component name="Microsoft-Windows-IE-ESC" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance">
                <IEHardenAdmin>false</IEHardenAdmin>
                <IEHardenUser>false</IEHardenUser>
            </component>
            <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
    xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance">
                <SearchScopes>
                    <Scope wcm:action="add">
                        <ScopeDefault>true</ScopeDefault>
                        <ScopeUrl>http://www.google.com/search?q={searchTerms}</ScopeUrl>
                        <ScopeKey>Google</ScopeKey>
                        <ScopeDisplayName>Google</ScopeDisplayName>
                    </Scope>
                </SearchScopes>
                <DisableAccelerators>true</DisableAccelerators>
                <DisableFirstRunWizard>true</DisableFirstRunWizard>
                <Home_Page>about:blank</Home_Page>
            </component>
            <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
    xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance">
                <fDenyTSConnections>false</fDenyTSConnections>
            </component>
            <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance">
                <FirewallGroups>
                    <FirewallGroup wcm:action="add" wcm:keyValue="Remote Desktop">
                        <Active>true</Active>
                        <Group>RemoteDesktop</Group>
                        <Profile>all</Profile>
                    </FirewallGroup>
                </FirewallGroups>
            </component>
            <component name="Microsoft-Windows-TerminalServices-RDP-WinStationExtensions" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
    xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi=">http://www.w3.org/2001/XMLSchema-instance">
                <UserAuthentication>0</UserAuthentication>
            </component>
            <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance">
                <Identification>
                    <Credentials>
                        <Domain>lol.local</Domain>
                        <Password>AAAA2015</Password>
                        <Username>admin</Username>
                    </Credentials>
                </Identification>
            </component>
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <ComputerName>W2K12Test</ComputerName>
            </component>
        </settings>
        <settings pass="offlineServicing">
            <component name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <EnableLUA>false</EnableLUA>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="wim:c:/images/install.wim#Windows Server 2012 R2 SERVERSTANDARD" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>
    When the client starts instead of going in automatic screen appears windows where I am asked to choose which operating system to install.
    What is wrong?
    Please, DON'T GIVE ME LINKS, BUT THE SOLUTIONS on how to fix it
    Thank you in advance.

    There seems to be some confusion here. What you have posted is a customized unattend.xml file used in WDS deployments, however most MDT deployments won't use these highly customized unattend.xml files, instead using it's own unattend.xml template files.
    FOr example when choosing the SKU type, WDS will allow you to select the type from the unattend.xml file <InstallTo> element above.
    In MDT, however, the SKU Index is chosen and applied manually through a dism.exe /apply image.
    And although your unattend.xml file is interesting, I can't tell what the problem is just by looking at it.
    If you are still having problems, best thing is to start looking through panther logs to see where the OS got confused looking for the image source.
    Check out my help file:
    How to debug problems in Windows Setup (Panther)
    Keith Garner - Principal Consultant [owner] -
    http://DeploymentLive.com

  • How to open pdfs directly in acrobat reader client side without using browser

    When I sent a request to the pdf through servlet
    the requested pdf is coming in a browser , but I want it to open in acrobat reader only . Is it possible ?

    Hi,
    Yes you can open in acroread. I am not sure about syntax. Cheak it in API's of java.lang.
    It is somehow like this.
    System.exec("<location of acroread>",<pdf file name>);
    Check if it helps.
    Thanks
    Parsu
    iAS dev support team

  • Execute DOS command from java application

    Hello,
    I want to execute a DOS command (MOVE, in order to move an image from a folder to an other) from a java application. How can I do this?
    Francesco

    Yes I have tested it and it is working but only when executing a bacth file. For instance:
    Runtime rt = Runtime.getRuntime();
    try{
         Process proc = rt.exec("move.bat");
    }catch(Exception ex){
         ex.printStackTrace();
    }and the command in move.bat is:
    move c:\\temp\\*.gif C:\\temp2
    You don't have to use double slashes in batch files, only in Java. But anyway it is working both ways.
    It is not working when you try to execute the command without the batch file:
    Process proc = rt.exec("move c:\\temp\\*.gif C:\\temp2"); -> this will not work.
    It should work. Try to execute another command to see what happens.

  • Expdp command without directory method

    hi,
    i wanted to use expdp command without using create directory method as i do not have create directory access
    thanks
    expdp hr/hr DIRECTORY=dpump_dir2 DUMPFILE=expfull.dmp FULL=y NOLOGFILE=y
    thanks

    The answer, which is already given is no, but...
    Data pump recognizes a default directory object is defined. If it is defined, the if you do not wpspecify a directory, dim files will be created there, I forget what it is called, but just try to export with a directory object.
    The answer to the second question is... It depends. If the daatypes are compatible, it should work. The only way tot tell is to try it.
    If you changes varchar2(20) to varchar2(30) I would assume yes.
    If you changed clob to number, I would guess no.
    Dean

  • Multiple Hit Button Without Using The Timeline

    Hello. I'm pretty much a beginner when it comes to flash. So,
    I assume there's been a post about this topic already. But, does
    anyone know how to script a code that lets you hit a button
    multiple times to execute an action without using the time line.
    For example. on
    http://www.group94.com/ website
    under menu / projects they use arrows to move the text on the y
    axis. Every time you click down on the text, it shifts upwards. I
    assume this a multiple hit action since the text shifts to? Can
    anyone help. Thanks.
    George

    Well, every action assigned to a button is executed multiple
    times when the button is hit repeatedly. I assume you mean kind of
    different actions? This could be done with a counter variable and a
    switch statement, like this:
    var count:Number = 0;
    button.onRelease = function(){
    count++;
    switch(count){
    case 1:
    // actions for 1st click
    break;
    case 2:
    break;
    case 5:
    count = 0; // reset counter
    break;
    However, in the website you linked, I suppose they don't do
    it this way, but with a more dynamic approach: Load the data (links
    and linktext) from a xml or text file, then build an array out of
    the contents and display the first entries. When the button is
    clicked, the first entry goes off, the next entry comes in. When
    the end of the array is reached, go back to entry 1 (not sure they
    do that, I didn't try it so far). So you would need a function,
    like displayNext(), that executes on every click and checks for
    itself which is the next entry to display and goes through the
    array this way.
    That's just a guess how they did it, or rather, how I would
    do it. ;)
    hth,
    blemmo

  • EXECUTE DOS COMMANDS WITH JAVA

    I'm new to java and I want to execute dos commands by java
    can someone help me by by anyway?
    like tell me the packages or methods I need
    or give me links to sites?
    thanks

    No Arguments:
    try {
            // Execute a command without arguments
            String command = "ls";
            Process child = Runtime.getRuntime().exec(command);
            // Execute a command with an argument
            command = "ls /tmp";
            child = Runtime.getRuntime().exec(command);
        } catch (IOException e) {
        }With Arguments:
    try {
            // Execute a command with an argument that contains a space
            String[] commands = new String[]{"grep", "hello world", "/tmp/f.txt"};
            commands = new String[]{"grep", "hello world", "c:\\Documents and Settings\\f.txt"};
            Process child = Runtime.getRuntime().exec(commands);
        } catch (IOException e) {
        }

Maybe you are looking for