public final class RemoteFile
Allows you to access a file on the device from the desktop during the conduit synchronization.
It may only be used on files stored using a file system, therefore, it cannot be used to handle files on the PalmOS
internal memory. But you may use it to handle files on the device's built-in memory or an inserted external card.
Lists the files contained in a folder.
The strings returned are the names of the files and directories contained within this folder. This method returns
null if the folder can't be read or if the operation fails. Path names ends with /, so it is easy to distinguish
them from a file.
On Palm OS, passing an empty string will return all installed cards. The flash memory slot will be named
builtin (which is usually slot 1). Then, to copy to/from a slot, you must use slot:/full_path_to_file
public static boolean copyToRemote(String srcFile,
Copies a file from the desktop to the remote device, creating the target folder if necessary.
srcFile - The file on the desktop.
dstFile - The target file on the remote device. Note: this CANNOT be a folder name, but the target file name
true if the operation succeeds.
public static boolean copyFromRemote(String srcFile,
Copies a file from the remote device to the desktop.
srcFile - The file on the remote device.
dstFile - The target file on the desktop. Note: this CANNOT be a folder name, but the target file name instead.
public static int exec(String command,
Remotely executes the specified command on the connected device. Works only on WinCE devices.
The arguments launchCode and wait are not used and their value is ignored. However, they may be used in the future
so the usage of default values is recommended.
command - the command to execute
args - command arguments
launchCode - ignored, use 0.
wait - ignored, use false.
0 if successful, otherwise a system specific error code is returned.