Computer Hope

Microsoft => Microsoft DOS => Topic started by: samz on September 03, 2012, 01:31:56 PM

Title: How to access PORTABLE MEDIA PLAYER with DOS command lines
Post by: samz on September 03, 2012, 01:31:56 PM
Hello,
After plug-in a SAMSUNG Galaxy S or Galaxy S2 (by USB cable), I get a simple removable drive. This volume was accessible by MS-DOS command line or .CMD script. So I was able to use my MS-DOS script to backup/restore some files/settings in my smart-phone.

When I plug-in a SAMSUNG Galaxy S3, I get a PORTABLE MEDIA PLAYER. Inside this one there is a volume named "Phone" that I can access with Windows Explorer. But it doesn't look to be accessible by DOS command lines.

So, how to access "Phone" by DOS command lines?

Thanks and regards.

CONFIG: MS Windows7 SP1 Aero disabled


DOS script to check available volumes:
Code: [Select]
@ECHO OFF
@SETLOCAL ENABLEDELAYEDEXPANSION
Call:GetVO "Drve"
REM ECHO.Drives  [%Drve%]

FOR %%f in (%Drve%) DO (
ECHO.---------------------------- %%~f
DIR /b/on "%%~f:\*.*"
ECHO.
)
GOTO:FinN


:FinN
ENDLOCAL&ECHO.&ECHO.Press To END ......&Pause>Nul&EXIT::________________________


::********************************************************** Get List Of VOLUMES
:GetVO
SET rv=%~1&::ReturnVAR
SET LiS=
FOR /f "SKIP=1 Delims=" %%e in ('WMIC LOGICALDISK GET NAME') DO (
SET DVN=%%~e
IF /i NOT "%%~e"=="" (
IF /i "!LiS!"=="" (SET LiS=!DVN:~,1!) ELSE (SET LiS=!LiS! !DVN:~,1!)
)
)
SET %rv%=!LiS:~,-2!
GOTO:EOF

[year+ old attachment deleted by admin]
Title: Re: How to access PORTABLE MEDIA PLAYER with DOS command lines
Post by: Salmon Trout on September 03, 2012, 02:46:31 PM
If you can browse a file system with Windows Explorer, then it has a drive letter. Right click any file in "Phone" and see if you can see the path in the Properties dialog.
Title: Re: How to access PORTABLE MEDIA PLAYER with DOS command lines
Post by: Squashman on September 03, 2012, 03:45:00 PM
When ICS was developed, android was switched from using UMS to MTP.  This means it does not mount as a drive letter anymore.  Been a lot of discussion on the web about this already.
Title: Re: How to access PORTABLE MEDIA PLAYER with DOS command lines
Post by: TechnoGeek on September 03, 2012, 06:52:29 PM
I think there is (or used to be) and option in windows media player to allow drive letter access. I know for sure iTunes has it with iPods; I might just be confusing it with that though  :-\.
Title: Re: How to access PORTABLE MEDIA PLAYER with DOS command lines
Post by: samz on September 04, 2012, 08:13:11 AM
I think to be close to the solution. The goal is to mount the device's storage by UMS method (USB mass storage).

http://www.xda-developers.com/android/usb-mass-storage-for-the-international-galaxy-s-iii/
http://forum.xda-developers.com/showthread.php?t=1711009

http://www.xda-developers.com/android/alt-mounter-simulates-usb-mass-storage-back-on-ice-cream-sandwich/
http://forum.xda-developers.com/showthread.php?t=1626713

Thanks guys