Wednesday, June 30, 2004
Copy Files To Mobile Device Easily
Posted by Kris Kumar in "ARTICLE" @ 03:00 PM
When you are done reading this article, you will be able to setup the right click shortcut menu options on your PC. You can configure them according to your needs, set them up so that you can easily transfer files to the mobile device folders you access frequently. Once these right click shortcuts are in place, you will no longer have to Copy-Paste the files manually and also don't have to navigate through a maze of folders to get to the target folder, at least not for the frequently used folders.
Let�s get started!
I have two methods, the first one is simple to setup, and the second one is a little tricky but adds context sensitivity. Let�s say you want the right click shortcut to show up only for .CAB files or for .MP3 files, then the second approach is the one that you need. The first one works well, but don't you want the computer to be smart enough to sense what you want to do :-) This article will focus on the first method. Stay tuned to SPT for another article on method 2, coming soon. :wink:
The requirements for this solution are:
- Windows 2000/XP based desktop
- Windows Mobile Smartphone or Pocket PC
- Must be proficient with Notepad :-)
- WindowsMobilePowerToys.msi must be installed
The heart of this solution is CECopy a free utility provided by Microsoft in the Windows Mobile Power Toys. CECopy enables command prompt based copy of files from PC to device. In this article we will learn to utilize its functionality without getting into the command prompt or DOS hell.
The only limitation I am aware of (and it may be a big one for you) is that you cannot select multiple files and copy them to the device. You will have to Right Click each individual file and copy it to the device one by one. Or copy the whole folder.
This approach adds a Copy to Device shortcut to the 'Send To' menu.
Once you have installed CECopy (it gets installed when WindowsMobilePowerToys.msi is installed). Locate the CECopy.exe, and note its path. On my machine its path is C:\Program Files\Windows Mobile Developer Power Toys\CECopy. Depending on your system drive, the path or drive letter may vary. Check out the ReadMe.txt in the CECopy folder, if you want to learn more about the CECopy functionality.
Next let�s launch the friendly editor, the Notepad. And add the following line.
"C:\Program Files\Windows Mobile Developer Power Toys\CECopy\CECopy.exe" %1 "dev:\<devicefolderhere>"
Replace <devicefolderhere> with the mobile device folder that you frequently write files to. e.g. If you want to copy CAB files then you may want to replace <devicefolderhere> with \IPSM\Windows\Start Menu\Accessories. If you copy MP3 files then maybe you can replace it with \Storage Card\Music. Or for documents and other miscellaneous files - \Storage Card\My Documents.
Following are the valid examples:
"C:\Program Files\Windows Mobile Developer Power Toys\CECopy\CECopy.exe" %1 "dev:\IPSM\Windows\Start Menu\Accessories"
"C:\Program Files\Windows Mobile Developer Power Toys\CECopy\CECopy.exe" %1 "dev:\Storage Card\Music"
"C:\Program Files\Windows Mobile Developer Power Toys\CECopy\CECopy.exe" %1 "dev:\Storage Card\My Documents"
Make sure that the path is valid. And do not forget to include the double quotes (") around the CECopy.exe path and the dev: path.
Now save this file as a Batch (.BAT) file. Give it a descriptive name, like Copy 2 Mobile Device - <shortfoldernamedescription>. The <shortfoldernamedescription> can be Music, My Documents, or Accessories depending on the command being saved or performed in the file. So the following are valid examples of the file names:
Copy 2 Mobile Device - Music folder.bat
Copy to My Smartphone - Accessories folder.bat
Copy to My Documents on Mobile Device.bat
Once the .BAT file is saved, create a Shortcut link for it by right clicking the .BAT file and then selecting 'Create Shortcut' option from the popup menu. You may want to edit the shortcut file name, so that the prefix 'Shortcut to' is removed. You may want to pretty it up, by assigning an icon to the shortcut file. Right click the shortcut, select 'Properties' and then select 'Change Icon'.
Now its time to move the shortcut file from its current location to the following folder. C:\Documents and Settings\<loggedInUserName>\SendTo
Depending on the way Windows is installed on your machine the drive letter may change. The <loggedInUserName> is the Windows login name for whom the shortcut is to be created. In most cases it will be your login id.
Copy the shortcut file to the above folder. And its time to test our little utility. Right click on any file and select the 'Send To' option from the popup menu. And you will see your shortcut in the list. Select it and you will see a command console window popup that will transfer the selected file to the target folder on the device.
I will have the method 2 published soon. Don't change the channel and keep watching this site. :-)
- Discuss this story [10 replies]