View Single Post
  #2  
Old October 20th 18, 03:37 PM posted to comp.mobile.android,alt.comp.os.windows-10,microsoft.public.windowsxp.general
Frank Slootweg
external usenet poster
 
Posts: 1,226
Default From Windows, how can we open a command line on the Android filesystem?

Arlen Holder wrote:
[...]
I have one key question for anyone on this ng who knows Windows well, which
is whether my "assumption" is accurate that we need to "mount" the Android
filesystem as a "removable drive" (i.e., with a "drive letter") in order to
be able to run any Windows command on that Android filesystem?


You do not *need* a drive letter, because 'DOS' commands can also use
a Network Share (in contrast to a Network Drive). For example:

dir \\DISKSTATION\Frank

Where 'DISKSTATION' is my NAS.

The only limitation I'm aware of, is that you cannot 'cd' into a
Network Share, while you can 'cd' into anything which has a drive
letter:

C:\home\frankscd \\DISKSTATION\Frank
'\\DISKSTATION\Frank'
CMD does not support UNC paths as current directories.

C:\home\frankscd M:
M:\

That said, having a drive letter is a *nice* thing to have, as most of
the solutions you mention, need one anyway.

[...]

o WiFi + "network location" + "net use" (to get a drive letter)
http://www.bild.me/bild.php?file=8605173dir05.jpg


Hmmm! This seems to be a nice one! I can't remember seeing you use
'net use' by itself.

Does this setup mean you have:

- A WebDAV server - i.e. extra software - on your Android device.

- *No* *extra* software ('net use' is part of Windows) on your Windows
device.

?

If so, I think this is the best WiFi solution sofar (till you get a
(non-root) SMB server on Android to work).

I have no experience with 'weird' UNC paths such as the one you're
using ('\\192.168.1.6@8080\DavWWWRoot\'), but it would be interesting to
see if you can use such UNC paths directly in a 'DOS' command, i.e.
*without* assigning a drive letter with 'net use'.

I.e. like I can use (see above)

dir \\DISKSTATION\Frank

perhaps you can use something like

dir \\192.168.1.6@8080\DavWWWRoot

Note: Something *like* that. I'm not saying that exact syntax is
correct.

My suggestion might seem silly: Using a drive letter (X is much
cleaner than the '192.168.1.6@8080\DavWWWRoot' mess, but as you can put
this 'mess' into an environment variable, it can be made clean, i.e.

dir %Android%\Mobi_Usage_AppBackup

[...]

As always, this effort is for everyone - so please improve where you can!

Ads