Thursday, January 11, 2007

ceJump

The ceJump utility is one of the more arcane tools in the Srego CE ToolPack. The tool is arcane because it is not obvious from its name what it does and there is no Command Prompt equivalent for the desktop. This posting’s goal is to help clarify what this tool is for and help users get more out of the Srego CE ToolPack Command-Line tools.

The concept behind ceJump is simple. It provides a quick way to edit a file located on the connected device from the desktop. The same tasks can be accomplished with other tools in the CE ToolPack. It may be enlightening to see what the process is using the other tools to better understand what ceJump actually does.

Let’s say we have a file on the device called addprop.txt. This file is located in the \my documents directory and is a simple text file. I need to edit the entries in this file fairly frequently to tune the application using it. Here is the process with using ceJump:

cepull "\my documents\addprop.txt" c:\temp\addprop.txt

notepad c:\temp\addprop.txt

cepush c:\temp\addprop.txt "\my documents\addprop.txt"

With ceJump, the process is much simpler:

ceJump "\my documents\addprop.txt"

If the current directory on the device (set with ceCD.exe) is \my documents, then you could simply say:

ceJump addprop.txt

The ceJump utility will automatically pull the specified file from the connected device to the system temp directory on the desktop, then launches the associated application via the operating system shell. When the user exits the launched application, the file is checked to see if it had been modified. If the file had been modified it is automatically pushed back to the connected device. The utility “Jumps” over all of the steps for moving the file back and forth between the device and the desktop. Granted, you must be editing a file that the desktop shell has an association for, but your productivity with working with these files can be greatly increased.


No comments: