Monday, August 14, 2006

Scripting and Automation: Creating .bat files for the Windows Mobile Device

Just like a batch file (.bat) can be used on the desktop to perform a series of tasks in a repeatable fashion, the Srego CE ToolPack Command-Line utilities provide an easy way to create scripts that interact with a connected Windows CE or Windows Mobile device.

A Batch File simply contains a list of commands that need to be run repeatedly. The commands in a batch file could be to copy files, delete files, move files, modify the registry, query the registry, launch applications, etc. A Batch File can contain complex logic such as looping, conditional statements, and use command-line parameters. Batch Files can also be assigned to shortcuts and placed on the Windows desktop so that they can easily be executed.

The Srego CE ToolPack Command-Line utilities mimic many of the desktop commands provided by the Command Prompt, so using the Srego CE ToolPack in your scripts is very easy; just use the ToolPack version of the command you would normally use on the desktop.

No comments: