PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

DOS-like command prompt and (DOS) scripting on the Pocket PC

It's often asked how a DOS-like command prompt can be get on Pocket PC devices. Therefore, I've written a quikck roundup and comparison of the three available tools, PPC Command Shell, PocketCMD and PocketDOS.

The most known of them is the free PPC Command Shell in Windows Mobile Developer Power Toys. It has (somewhat limited) DOS batch compliance and is, therefore, a far better solution to DOS scripting problems than, say, PocketDOS ( http://www.pocketdos.com ). The latter doesn't even support directory names with spaces in them, meaning you won't be able to enter directories (with a lot of PPC's that use the names "Storage Card", "SD/CF Card", "iPAQ File Store" etc., this also includes memory cards and file store) that have spaces in them (see for example http://pocketpcmag.com/forum/topic.asp?TOPIC_ID=15456 on the problem).

Get it from microsoft.com (the homepage is here ). Install it and after that, go to C:\Program Files\Windows Mobile Developer Power Toys\PPC_Command_Shell\arm. Copy console.dll to \Windows on your PDA and the two other files anywhere in the file system. Then, just start cmd.exe from, say, Pocket File Explorer.

Please note that it doesn't support a lot of things; for example, the 'copy con' command to create textual files. There're, of course, no external MS-DOS programs either. Some of the latter are, incidentally, also missing from PocketDOS and it's impossible to hack to it because of the incompatible DOS version (which is a embedded DOS version). For example, I've tried very hard to make chkdsk.exe work (or, at least, to find a compatible version) under PocketDOS to find a decent PDA-based solution to the probelm described at, say, http://www.pocketpcthoughts.com/forums/ ... hp?t=39583 . I didn't succeed.

An alternative is PocketCMD. As opposed to Microsoft's solutions, it uses colors, has command history (just press Up to bring up the previous commands) and has command completion (unix-like). It is also able to enter directories with spaces in them and batchable - to an even better extent than MS' app. I like it very much.
The latter doesn't even support directory names with spaces in them, meaning you won't be able to enter directories (with a lot of PPC's that use the names "Storage Card", "SD/CF Card", "iPAQ File Store" etc., this also includes memory cards and file store) that have spaces in them


Dear Sir,

This is not correct. You can map a DOS drive letter to any folder on your device (even if it includes spaces). This can be done from the "Drives" menu in PocketDOS or by using the SETDRIVE command (type SETDRIVE /? for more information or refer to the online help provided with PocketDOS).

Thank you for your interest.
Some of the latter are, incidentally, also missing from PocketDOS and it's impossible to hack to it because of the incompatible DOS version (which is a embedded DOS version). For example, I've tried very hard to make chkdsk.exe work (or, at least, to find a compatible version) under PocketDOS


Dear Sir,

Please refer to the tutorials on our website for information on how to install other DOS versions under PocketDOS. It is possible to run DOS based disk checking utilities under PocketDOS. You will need to map the C: drive letter to a "Physical Disk" (from the "Drives" menu in PocketDOS). To disable write-protection on the disk, you will need to install the "PocketDOS DOS File System Driver" and make sure that none of the files PocketDOS is using (PocketDOS.exe & PocketDOS.SYS or your boot disk image) are located on the disk so that PocketDOS can unmount the disk from Windows CE and access it directly. Once you have done this, you can access the disk device from DOS as if it were a "real" hard drive. It is not recommended using disk repair tools unless you are sure that the tool supports the FAT32 filing system or your disk device is using not using the FAT32 filing system. The instructions for mounting disk devices as hard disks in PocketDOS can also be found in the online help (which can be accessed from the "Help" menu in PocketDOS).

Thank you for your interest.
PocketDOS wrote:
Some of the latter are, incidentally, also missing from PocketDOS and it's impossible to hack to it because of the incompatible DOS version (which is a embedded DOS version). For example, I've tried very hard to make chkdsk.exe work (or, at least, to find a compatible version) under PocketDOS


Dear Sir,

Please refer to the tutorials on our website for information on how to install other DOS versions under PocketDOS. It is possible to run DOS based disk checking utilities under PocketDOS. You will need to map the C: drive letter to a "Physical Disk" (from the "Drives" menu in PocketDOS). To disable write-protection on the disk, you will need to install the "PocketDOS DOS File System Driver" and make sure that none of the files PocketDOS is using (PocketDOS.exe & PocketDOS.SYS or your boot disk image) are located on the disk so that PocketDOS can unmount the disk from Windows CE and access it directly. Once you have done this, you can access the disk device from DOS as if it were a "real" hard drive. It is not recommended using disk repair tools unless you are sure that the tool supports the FAT32 filing system or your disk device is using not using the FAT32 filing system. The instructions for mounting disk devices as hard disks in PocketDOS can also be found in the online help (which can be accessed from the "Help" menu in PocketDOS).

Thank you for your interest.


Thanks for the clarification - I've only tried to find and/or hack a chkdsk.exe to run under the current DOS version of PocketDOS; I haven't tried to entirely change the operating system itself. I will definitely give this a try - using chkdsk.exe from under PocketDOS would be a decent PDA-based solution to fix memory card problems while on the go.