You can use the following two commands:
load
- works with emulator.exe
and sdk.exe
close
- works only with sdk.exe
The load command specifies the filename or URL to be loaded on an SDK instance.
The syntax of the load command is: load <value>
The values you can use are:
MMS filename
WML filename
URL string
JAD filename
JAR filename
For example:
To load a local WML file:
sdk load C:\welcome.wml
To load a local MIDlet:
emulator load mymidlet.jar
To load a remote WML file:
sdk load http://server.domain/welcome.wml
You can imply the load command when you are not working within a shell
(see Sending repeated
commands with a CLI shell). To imply the load command, omit load and
type the name of the content file. For example: sdk mymidlet.jar
You
can use the close command only with sdk.exe.
The close
command
works in two ways, depending on whether you are within a shell or outside
a shell (see Sending
repeated commands with a CLI shell):
When you use close by itself within a shell, close terminates the shell.
Running instances are left running. To terminate the instance, you must use
close with -exit
.
The close command by itself outside a shell does nothing, unless you
use it with either -exit
or -exitall.
The syntax of the close command is: close -option
Unlike
other options, -exit
and -exitall
work only
with the close command and, when used, must immediately follow the
command. For example:
sdk close -exit
orsdk close
-exitall
Use
the -exit
option with the close command to close one of the
following:
Within a shell: the SDK instance within the shell.
Outside a shell: the SDK instance you specify with -Xuse
or
the SDK instance with the highest number.
Use
the -exitall
option with the close
command
outside a shell to close all running SDK instances. For example, the following
command closes all open SDK instances: sdk close -exitall