Batch or whatever to move files from pc to mobile device

October 12, 2012 at 01:18:22
Specs: Windows 7/xp/windows mobile CE
Hi, i need help to create a batch or whatever to move n° 8 .xml files (they're all with a specified name) from a folder on my pc to a windows mobile device plugged via usb. The device is equipped with a version CE of windows mobile and it's used for barcode scanning purposes.


See More: Batch or whatever to move files from pc to mobile device

Report •


#1
October 12, 2012 at 13:44:34
you should be able to just use copy or move and the name of the files.

MOVE /? from the interpreter would give you the options.

MOVE [options] [Source] [Target]

I would suggest

move /y "c:\folder\file.xml" "x:\folder\"
the c:\folder being your system
the x:\folder being your mobile
the /y to not prompt for confirmation

If you want to tell me the names of the files, the location they are in and the destination I will put a better example togeather.

:: mike


Report •

#2
October 15, 2012 at 01:52:19
Thank you mikelinus, i appreciate your help, the main trouble i had using this kind of solution was to find the destination path as it's a mobile device (i mean, how can i find the path for an external device which is not a usb drive?)..sorry in advance for the dumb question ..:)

Report •

#3
October 16, 2012 at 05:43:07
I didn't find anything to solve this kind of issue, but i assume there should be something to obtain the path for a mobile device..

Report •

Related Solutions

#4
October 16, 2012 at 22:34:11
Probably not much help, but this gives all drives, and some info. You might be able to use a volume name or serial number to locate your device. Post back if interested in followup.

@echo off & setlocal
for /f "tokens=1-2* delims=:\ " %%a in ('fsutil fsinfo drives ^| find /v ""') do (
set x=%%b
if not defined x set x=%%a
call :fd
)
goto :eof
:fd
echo drive: %x%
:: == here you might look for volume name (as set by the antiquated "label"), or a serial number
for /f "tokens=*" %%z in ('fsutil fsinfo volumeinfo %x%:\') do echo %%z
::===== end

you can use "label" to label the device with a name, then look for that name in the readout of drives. WMIservices probably has better method, but I am (as always) clueless in Kansas.


Report •

#5
October 23, 2012 at 07:58:41
so basically it's almost impossible to move files from an Hard disk to a windows mobile device...

Report •

#6
October 23, 2012 at 17:56:35
well, no, not if you have a unique label or serial number for the "drive"/device. Since the letter could be anything, you need a way to identify the device. Label or serial would be the two most likely-to-succeed candidates.
This might give you your drive letter (once you fill in the correct serial number of your mobil device)
@echo off & setlocal enabledelayedexpansion
:: fill-in-the-blank:
::like set target=0xe4ce6672
set target=___________
set x=
for /f "tokens=1-2* delims=:\ " %%a in ('fsutil fsinfo drives ^| find /v ""') do (
set x=%%b
if not defined x set x=%%a
call :fd
)
goto :eof
:fd
fsutil fsinfo volumeinfo %x%:\ | find /i "volume serial number : %target% && echo copy c:\blah\blah %x%:\whatever

Report •


Ask Question