Discussion:
Mapping a folder in a device to a drive
(too old to reply)
Mr. Man-wai Chang
2024-09-20 04:49:33 UTC
Permalink
How could I map "This PC\Nokia 1234\Internal shared storage\" to a drive
(e.g. E:\)?

Something like:

subst e: "This PC\Nokia 1234\Internal shared storage\"

I tried the subst command but it reported "Path not found"!
Paul
2024-09-20 08:49:13 UTC
Permalink
How could I map "This PC\Nokia 1234\Internal shared storage\" to a drive (e.g. E:\)?
subst e: "This PC\Nokia 1234\Internal shared storage\"
I tried the subst command but it reported "Path not found"!
This sounds like a Google problem. Why not phone
them up and ask ? :-)

You're using a USB cable, MTP protocol, and now
expect SUBST to work.

(You used an Android dialog to enable MTP access)

And on your screen, it looks like this.

Loading Image...

Paul
knuttle
2024-09-20 11:44:20 UTC
Permalink
Post by Paul
How could I map "This PC\Nokia 1234\Internal shared storage\" to a drive (e.g. E:\)?
subst e: "This PC\Nokia 1234\Internal shared storage\"
I tried the subst command but it reported "Path not found"!
This sounds like a Google problem. Why not phone
them up and ask ? :-)
You're using a USB cable, MTP protocol, and now
expect SUBST to work.
(You used an Android dialog to enable MTP access)
And on your screen, it looks like this.
https://static1.howtogeekimages.com/wordpress/wp-content/uploads/2014/07/mtp-device-in-windows-explorer-on-windows-8.png?q=50&fit=crop&w=750&dpr=1.5
Paul
In the native File Explorer screen; Click the This PC, and then the
Computer Tab. In the Computer Tab, click Map Network Drive, Map
Network Drive.
Mr. Man-wai Chang
2024-09-20 16:52:23 UTC
Permalink
Post by Paul
This sounds like a Google problem. Why not phone
them up and ask ? :-)
I tried, but failed! :)
Post by Paul
You're using a USB cable, MTP protocol, and now
expect SUBST to work.
(You used an Android dialog to enable MTP access)
Seemed that it's deprecated? USB Mass Storage???

I think I saw "PTP" in USB mode of the Android phone...

usb - Drive letter for MTP connection under Windows - Android
Enthusiasts Stack Exchange
<https://android.stackexchange.com/questions/22979/drive-letter-for-mtp-connection-under-windows>
knuttle
2024-09-20 19:55:03 UTC
Permalink
Post by Mr. Man-wai Chang
Post by Paul
This sounds like a Google problem. Why not phone
them up and ask ? :-)
I tried, but failed! :)
Post by Paul
You're using a USB cable, MTP protocol, and now
expect SUBST to work.
(You used an Android dialog to enable MTP access)
Seemed that it's deprecated? USB Mass Storage???
I think I saw "PTP" in USB mode of the Android phone...
usb - Drive letter for MTP connection under Windows - Android
Enthusiasts Stack Exchange
<https://android.stackexchange.com/questions/22979/drive-letter-for-mtp-
connection-under-windows>
This is from Google. I thought you were talking about a LAN drive, it
you are connected through USB, or other.

Setting Drive Letter

Right click Start and then choose Disk Management.
Login as Administrator.
Look at drives in the lower pane.
Right-click the drive that is in conflict.
Choose Change Drive Letter and Paths.
Paul
2024-09-20 21:22:27 UTC
Permalink
Post by Mr. Man-wai Chang
Post by Paul
This sounds like a Google problem. Why not phone
them up and ask ? :-)
I tried, but failed! :)
Post by Paul
You're using a USB cable, MTP protocol, and now
expect SUBST to work.
(You used an Android dialog to enable MTP access)
Seemed that it's deprecated? USB Mass Storage???
I think I saw "PTP" in USB mode of the Android phone...
usb - Drive letter for MTP connection under Windows - Android Enthusiasts Stack Exchange
<https://android.stackexchange.com/questions/22979/drive-letter-for-mtp- connection-under-windows>
This is from Google.  I thought you were talking about a LAN drive, it you are connected through USB, or other.
Setting Drive Letter
    Right click Start and then choose Disk Management.
    Login as Administrator.
    Look at drives in the lower pane.
    Right-click the drive that is in conflict.
    Choose Change Drive Letter and Paths.
Yes. But does that "icon" appear in the place where
you need it to appear ? Since the item is not a "disk",
it has no reason to appear in Disk Management.

I can't take pictures for this one, because I don't own a Smart Phone.
and my camera uses USB Mass Storage, which is different.

Paul
knuttle
2024-09-21 11:46:58 UTC
Permalink
Post by Paul
Post by Mr. Man-wai Chang
Post by Paul
This sounds like a Google problem. Why not phone
them up and ask ? :-)
I tried, but failed! :)
Post by Paul
You're using a USB cable, MTP protocol, and now
expect SUBST to work.
(You used an Android dialog to enable MTP access)
Seemed that it's deprecated? USB Mass Storage???
I think I saw "PTP" in USB mode of the Android phone...
usb - Drive letter for MTP connection under Windows - Android Enthusiasts Stack Exchange
<https://android.stackexchange.com/questions/22979/drive-letter-for-mtp- connection-under-windows>
This is from Google.  I thought you were talking about a LAN drive, it you are connected through USB, or other.
Setting Drive Letter
    Right click Start and then choose Disk Management.
    Login as Administrator.
    Look at drives in the lower pane.
    Right-click the drive that is in conflict.
    Choose Change Drive Letter and Paths.
Yes. But does that "icon" appear in the place where
you need it to appear ? Since the item is not a "disk",
it has no reason to appear in Disk Management.
I can't take pictures for this one, because I don't own a Smart Phone.
and my camera uses USB Mass Storage, which is different.
Paul
What is the device you are trying to access? Is it directly
connected to the computer through USB or other ports? Are you trying to
access the device through the
Paul
2024-09-21 15:19:06 UTC
Permalink
What is the device you are trying to access?  
Is it directly connected to the computer through USB or other ports?
Are you trying to access the device through the LAN
Man-wai has an Android phone on a USB cable to his computer.

The protocol would be MTP (Media Transfer Protocol), not UMS (USB Mass Storage).

If this was USB Mass Storage, there would be a driver letter, plus a Disk Management entry.

In the My Computer window, the icon has no drive letter.
You might see a DCIM folder inside the icon, for example,
for the Android emulation of a camera interface. DCIM is the folder
where the smartphone pictures are stored, just like on a digital camera.

This would be reasonably close to what it looks like.
Vista+ should be able to do it like this. WinXP needed a driver.
Apparently in Win10, some users had to manually load the MTP driver themselves :-/ Ick.

https://static1.howtogeekimages.com/wordpress/wp-content/uploads/2014/07/mtp-device-in-windows-explorer-on-windows-8.png?q=50&fit=crop&w=750&dpr=1.5

If you want to fit a drive letter to it, it's not the kind of
setup that supports that.

*******

It means searching for arcane recipes to get the access you want.
Dokan is mentioned here, with the usual caveats about issues with
particular Dokany releases.

Note that the last item, Powershell can gain access. So it may be
possible to script the MTP device, even though it does not have
a drive letter.

https://superuser.com/questions/369959/how-do-i-access-mtp-devices-on-the-command-line-in-windows

Paul
Quincy the fifth
2024-09-22 02:15:07 UTC
Permalink
Post by Paul
What is the device you are trying to access?  
Is it directly connected to the computer through USB or other ports?
Are you trying to access the device through the LAN
Man-wai has an Android phone on a USB cable to his computer.
The protocol would be MTP (Media Transfer Protocol), not UMS (USB Mass Storage).
If it's a Nokia phone, then the drivers are missing for some reason.
https://stackoverflow.com/questions/61961648/nokia-2-2-usb-drivers-for-use-with-android-studio

That question suggests the universal drivers for the missing Nokia ones.
https://adb.clockworkmod.com/

This says there is no official Nokia driver web page for the phone.
https://www.quora.com/How-do-I-install-a-Nokia-USB-driver

It looks like lots of people are looking for the missing Nokia drivers.
https://xdaforums.com/t/nokia-usb-driver-h.3821355/

Although I can find supposed Nokia drivers on non-Nokia sites.
https://www.ytechb.com/download-nokia-usb-driver/
https://nokia-connectivity-cable-driver.en.uptodown.com/windows/download
Mr. Man-wai Chang
2024-09-21 15:19:43 UTC
Permalink
Post by knuttle
What is the device you are trying to access? Is it directly
connected to the computer through USB or other ports? Are you trying to
access the device through the LAN
It's just an Android 14 smartphone. Was curious whether its internal
storage could be accessed as a SUBST drive in Windows 10. The File
Explorer mounted it, but not in Command Prompt.

I know I could just use a SD card. :)
david
2024-09-21 22:32:03 UTC
Permalink
Post by Mr. Man-wai Chang
Post by knuttle
What is the device you are trying to access? Is it directly
connected to the computer through USB or other ports? Are you trying to
access the device through the LAN
It's just an Android 14 smartphone. Was curious whether its internal
storage could be accessed as a SUBST drive in Windows 10. The File
Explorer mounted it, but not in Command Prompt.
I know I could just use a SD card. :)
Maybe ftpuse will work?

https://www.ferrobackup.com/map-ftp-as-disk.html
knuttle
2024-09-22 01:16:44 UTC
Permalink
Post by david
Post by Mr. Man-wai Chang
   What is the device you are trying to access?   Is it directly
connected to the computer through USB or other ports?  Are you trying to
access the device through the LAN
It's just an Android 14 smartphone. Was curious whether its internal
storage could be accessed as a SUBST drive in Windows 10. The File
Explorer mounted it, but not in Command Prompt.
I know I could just use a SD card. :)
Maybe ftpuse will work?
https://www.ferrobackup.com/map-ftp-as-disk.html
Unless you have a lot of very large files to exchange, I find that
Bluetooth is the easest way to transfer files between my windows
computer nad my Motorol Android phone.

There is no problamatic set up. Once paired subsequent transfers go
relatively quick. Click the file select Bluetooth, and accept it on the
reci
Paul
2024-09-22 06:28:24 UTC
Permalink
Post by david
   What is the device you are trying to access?   Is it directly
connected to the computer through USB or other ports?  Are you trying to
access the device through the LAN
It's just an Android 14 smartphone. Was curious whether its internal storage could be accessed as a SUBST drive in Windows 10. The File Explorer mounted it, but not in Command Prompt.
I know I could just use a SD card. :)
Maybe ftpuse will work?
https://www.ferrobackup.com/map-ftp-as-disk.html
Unless you have a lot of very large files to exchange, I find that Bluetooth is the easest way to transfer files between my windows computer nad my Motorol Android phone.
There is no problamatic set up.  Once paired subsequent transfers go relatively quick.  Click the file select Bluetooth, and accept it on the recieving device.
75KB/sec or so.

It's best to take a stopwatch, and make note of the time it takes
for the BT transfer, then measure the bulk size of all that was transferred,
divide the two to get the kilobytes per second of the thing. When file
sharing over BT, I've had a couple indicators be off by as much as a
factor of 4 versus the real transfer speed. A lot of the other parts
of Windows, the transfer speeds are "more normal". But I think people
have occasionally seen ridiculously high measurements made (100000 MB/sec
or something).

75KB/sec is the same transfer speed as a floppy diskette (as a rough metric).

Transfer over a USB2 cable, could go faster, but it depends on
what protocol is being used. A large folder of files, might end up
being quite slow to transfer, because MTP directory information could be
exchanged over and over again. MTP is not an overly efficient protocol.
I don't know how ADB transfers work, to make a comment about them.

*******

You could (try) to plug a USB to Ethernet cable into your phone, and
use a wired network connection. But the testing of such adapters
(whether the USB2 ASIX or the USB3 ASIX), is definitely for the brave.
For example, two people with the exact same model of phone, got different
results using the same Ethernet adapter purchase.

The considered opinion on transfer options being WebDAV or FTP, if
you had some kind of secure network connection. I prefer to keep signals
on cables, rather than RF means (because I can see my neighbors electronics
from here when I scan, and I don't want to be seen even remotely close
to his stuff!).

https://stackoverflow.com/questions/64910317/mount-mtp-device-on-windows

Someone there got an mtpmount to work, but that's basically mtpdrive
"without the support". It still uses Dokany as near as I can tell from
the description. And then you need the exact right version of Dokany
for things to work. And Dokany is only going to continue to work,
as long as Windows Defender tolerates it.

It would be easier to use the phone from Linux, and just boot up a
Linux for a phone session. Maybe then you'd get some amount of
the file system to appear. If Windows Phone support features were used,
I would expect only the DCIM portion to be accessible, and no reason
for the access to be useful (drive letter).

Microsoft could do their own MTPmount using a native win32 method if
they wanted. They have 7000 developers after all... If Linux can do it,
so can they.

WSL2/WSLg does not have a strong /dev component, so you cannot trick
the machine into gaining access to the phone that way. For example, the
graphics stack is not accelerated, it's a software stack.

*******

You could install VirtualBox in Windows, put Linux in a VirtualBox Guest,
use USB passthru, to route the phone USB connector to the Linux Guest,
then use MTPfs in Linux to gain access to the phone. Perfectly do-able.
But I doubt Man-wai wants this much trouble for a mere phone session.
I routinely do stupid stuff like that :-) But I can't test any of
this, because there is no smartphone here to test with.

Paul
Andrew
2024-09-20 20:15:53 UTC
Permalink
Post by Mr. Man-wai Chang
How could I map "This PC\Nokia 1234\Internal shared storage\" to a drive
(e.g. E:\)?
subst e: "This PC\Nokia 1234\Internal shared storage\"
I tried the subst command but it reported "Path not found"!
I mount the entire Android linux file system to Windows as a drive every
day - but - I don't use the Windows SUBST command to do that linux mount.
Loading Image...

This is what I use every day on Windows 10(via a batch script, of course):
net use I: \\***@8000\DavWWWRoot /USER:foo bar
net use X: \\***@9000\DavWWWRoot
Which is nicely summarized for you in this set of my own screenshots.
<Loading Image...>

I add a few Win10 tricks to make external sd card syspath easier since you
often use the Android linux command line to operate Android over Windows.
<Loading Image...>

And, of course, I set the USB (or Wi-Fi) file transfer for the connection.
<Loading Image...>

Here are just some representative examples of how Android === Windows/Linux
<Loading Image...> Android mounted
<Loading Image...> Starting WebDAV servers
<Loading Image...> Mount Android system filesys
<Loading Image...> Look at /etc/resolv.conf
<Loading Image...> Can use the command line
<Loading Image...> Look at the dnsproxy file
<Loading Image...> Both sdcards mounted
<Loading Image...> Mount the entire filesystem
<Loading Image...> Each sdcard is a drive letter
<Loading Image...> FOSS general purpose solution
<Loading Image...> Free Android WebDAV servers
<Loading Image...> Mount sdcards read & write
<Loading Image...> As Windows drive letters
<Loading Image...> Over Wi-Fi on your home LAN
<Loading Image...> Mirroring Android on Windows
<Loading Image...> A third free WebDAV server

Once set up correctly, the Android file system is just a drive on Windows.
<Loading Image...> Android mnt as drive letter
Such that you can slide APKs from Windows and they auto-install on Android.
<Loading Image...> Drag APK from Windows

The Windows (or Linux) keyboard, mouse, clipboard and sound cards all work
perfectly with Android mirrored onto your PC monitor, using FOSS software.
<Loading Image...> powershell hide-console trick

One question I have of the linux experts is WHY, without being rooted, when
I mount the Android internal sdcard onto Windows, I can read most of the
Android root filesystem, and write to some of the root filesystem, but not
all? <https://i.postimg.cc/2SxM8V16/rootfilesystem.jpg>

What's the difference?
Mr. Man-wai Chang
2024-09-21 15:24:34 UTC
Permalink
Post by Andrew
Which is nicely summarized for you in this set of my own screenshots.
<https://i.postimg.cc/1zrmSmQc/davroot.jpg>
Thanks. This solution involves the use of networking.
Andrew
2024-09-21 22:24:24 UTC
Permalink
Post by Mr. Man-wai Chang
Post by Andrew
Which is nicely summarized for you in this set of my own screenshots.
<https://i.postimg.cc/1zrmSmQc/davroot.jpg>
Thanks. This solution involves the use of networking.
Assuming your Nokia "something" is an Android phone... below
are all the methods I know of to "seamlessly connect" it to a PC.

1. You can connect the Android phone to Windows 10 by Bluetooth,
by Wi-Fi (over the LAN or by ad hoc Wi-Fi) or by USB cable.

Most people just plug the phone into Windows (just like any other
USB device) and Windows automatically installs the driver for it.
*Install OEM USB drivers*
<https://developer.android.com/studio/run/oem-usb>

If the correct driver isn't installed, every manufacturer provides it.
Acer -> https://www.acer.com/worldwide/support/
Alcatel -> https://www.alcatelmobile.com/support/
Asus -> https://www.asus.com/support/Download-Center/
Blackberry -> https://swdownloads.blackberry.com/Downloads/entry.do?code=4EE0932F46276313B51570F46266A608
Dell -> https://support.dell.com/support/downloads/index.aspx?c=us&cs=19&l=en&s=dhs&~ck=anavml
FCNT -> https://www.fcnt.com/support/develop/#anc-03
HTC -> https://www.htc.com/support
Huawei -> https://consumer.huawei.com/en/support/index.htm
Intel -> https://www.intel.com/software/android
Kyocera -> https://kyoceramobile.com/support/drivers/
Lenovo -> https://support.lenovo.com/us/en/GlobalProductSelector
LGE -> https://www.lg.com/us/support/software-firmware
Motorola -> https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481/
MTK -> http://online.mediatek.com/Public%20Documents/MTK_Android_USB_Driver.zip
Samsung -> https://developer.samsung.com/galaxy/others/android-usb-driver-for-windows
Sharp -> http://k-tai.sharp.co.jp/support/
Sony -> https://developer.sonymobile.com/downloads/drivers/
Toshiba -> https://support.toshiba.com/sscontent?docId=4001814
Xiaomi -> https://web.vip.miui.com/page/info/mio/mio/detail?postId=18464849&app_version=dev.20051
ZTE -> http://support.zte.com.cn/support/news/NewsDetail.aspx?newsId=1000442

2. Either way (BT, Wi-Fi or USB) there are a multitude of connection tools.
Offhand, some of the Android/Windows file-sharing solutions are
AirDroid <https://www.airdroid.com/personal/>
ADB <https://developer.android.com/tools/adb>
AFT MTP client <https://whoozle.github.io/android-file-transfer-linux/>
DirectNetDrive <http://www.directnet-drive.net/>
FTPUse <https://www.ferrobackup.com/download/FtpUseInst.exe>
Fb-adb Android Linux shell <https://github.com/facebook/fb-adb>
Ftpuse <https://www.ferrobackup.com/map-ftp-as-disk.html>
Go-mtpfs MTP FUSE filesystem <https://github.com/hanwen/go-mtpfs>
Gphotofs Camera Linux mount <http://www.gphoto.org/proj/gphotofs/>
JMTP FS <https://github.com/JasonFerrara/jmtpfs>
KDEconnect <https://play.google.com/store/apps/details?id=org.kde.kdeconnect>
Kies Connect <https://www.samsung.com/africa_en/support/kies/>
LibIconv <http://gnuwin32.sourceforge.net/packages/libiconv.htm>
LibMTP <https://github.com/hanwen/go-mtpfs>
LibMTP <https://sourceforge.net/projects/libmtp/>
LibMTP library MTP implementation <http://libmtp.sourceforge.net>
LibUSB Win32 <http://libusb-win32.sourceforge.net/>
LibUsbK <https://sourceforge.net/projects/libusb-win32/>
LibiConv <http://gnuwin32.sourceforge.net/packages/libiconv.htm>
MTP support on KDE <https://cgit.kde.org/kio-mtp.git>
MTPDrive <http://mtpdrive.com/download.html>
MTPSync <https://www.adebenham.com/mtpsync/>
MTPdude <http://mtpdude.sourceforge.net>
MTPfs FUSE filesystem <https://www.adebenham.com/mtpfs/>
NetDrive 1.3.2.0 <https://filehippo.com/download_netdrive/12615/>
NetDrive 3.6.571 <http://netdrive.net/ (deprecated)
Nitroshare <https://play.google.com/store/apps/details?id=net.nitroshare.android>
PhoneLink <https://www.samsung.com/us/support/answer/ANS00083910/>
SFTP Net Drive <https://www.nsoftware.com/sftp/netdrive/>
SideSync <https://play.google.com/store/apps/details?id=com.sidesync.freeapp>
SMB Cifs (client) X-Plore <https://play.google.com/store/apps/details?id=com.lonelycatgames.Xplore>
SMB Cifs (root) <https://play.google.com/store/apps/details?id=com.imperioustech.www.sambaserver>
Scrcpy/sndcpy <https://github.com/Genymobile/scrcpy>
Termux copy <https://github.com/termux>
WebDav <https://play.google.com/store/apps/details?id=com.theolivetree.webdavserver>
WebDrive <https://webdrive.com/download/>
XNJB Mac OS X GUI <http://www.wentnet.com/projects/xnjb/>
(this is mostly offhand so I likely missed as many as I listed)

Personally, for myself, I'd mount the entire Android filesystem onto
Windows as a read/write Windows drive letter over Wi-Fi using WebDav.

See also FTPUse above which also creates a Windows networked share.

Or, if I'm running commands from Windows to disable, install or
otherwise manipulate applications, I use adb over Wi-Fi or USB.

If I'm already using adb, then I may as well use screencopy and
soundcopy to do _all_ the Android manipulations from the PC alone.

But most people just plug the Android phone into Windows to drag and
drop any file in the user partition between the devices using that PC.

3. Of those, plenty are ad hoc Wi-Fi & USB file-sharing solutions.
Kies Connect <https://www.samsung.com/africa_en/support/kies/>
Nitroshare <https://play.google.com/store/apps/details?id=net.nitroshare.android>
KDEconnect <https://play.google.com/store/apps/details?id=org.kde.kdeconnect>
FTPUse <https://www.ferrobackup.com/download/FtpUseInst.exe>

I've used every single one of them, where my suggestion is NitroShare
because of its simplicity (but all work, just in different ways).

4. You can set up Android to act differently whenever you connect to USB
Android12 Settings > Developer options > Default USB configuration
(o) Transferring files <---- AFAIK, this is the default
(_) USB tethering
(_) MIDI
(_) Transferring images
(_) Charging phone only
I wouldn't change this from the default of "Transferring files).

5. Of course, you can do everything using just adb (on Wi-Fi or USB).

First, find the name of the desired package:
C:\> adb shell pm list packages | findStr /i "osmand"
C:\> adb shell pm list packages <--- list all packages on the device
C:\> adb shell pm list packages -f -3 <--- list third-party packages
C:\> adb shell pm list packages -d <--- list only the disabled packages
C:\> adb shell pm list packages -s <--- list only the system packages
C:\> adb shell pm list packages -u <--- list only uninstalled packages
C:\> adb shell dumpsys package packages <--- list package information
C:\> adb shell pm dump net.osmand.plus <--- list info on a package

Find out the full path to the desired package:
C:\> adb shell pm path net.osmand.plus

Copy the installer (which is always saved on Android!) to Windows.
C:\> adb pull /data/app/long-nasty-path-net.osmand.plus/osmand-base.apk

With this method you can copy all the APKs over in one robocopy command.
C:\> adb shell dumpsys package packages | findStr /i ".apk$"
The result is every app ever installed gets a Windows backup of its APK.

Stop the desired package:
C:\> adb shell am force-stop net.osmand.plus

Disable the desired package:
C:\> adb shell pm disable-user --user 0 net.osmand.plus

Remove the desired package:
C:\> adb shell pm uninstall --user 0 net.osmand.plus

Note if adb can see it, then adb can copy it over to Windows.
C:\> adb pull "/data/data/com.pkg.test/files/" .

Even if you're not rooted (most people aren't) you can copy your
Windows HOSTS file to Android if you know a few of the tricks.
<https://superuser.com/questions/938751/i-am-trying-to-push-the-file-using-adb-to-my-android-device>

Note also that "local adb" eliminates the need for the Windows PC.
<https://play.google.com/store/apps/details?id=com.draco.ladb>

5. Most Android phones have an sdslot so another option is to use
Android to put the video onto that sd card and pop it into the PC.

Having tested every single file copy method ever proposed on both
the Windows and Android newsgroups, my recommendation is simple:
a. Connect your Android phone to Windows by USB (for KISS simplicity).
b. If the phone doesn't show up in "My Computer" install OEM drivers.
c. Usually that works

If you can't get the OEM drivers to work, then I'd try the WebDav
servers on Android (unfortunately SMB servers on Android have issues).

If you can't get the WebDav servers to work, then I'd use adb with
scrcpy/sndcpy which completely mirrors the phone onto the PC.

That's mostly what I do all day every day.

One advantage is my phone becomes 20 inches tall by 9 inches wide
on my computer monitor - and I can use the mouse, keyboard & clipboard.

Also, the sound is the one coming out of the computer and not the
phone - so I can loudly watch all the YouTube videos I want using either
NewPipe or PipePipe (which is YouTube but without ever seeing an ad).
<https://newpipe.net>
<https://f-droid.org/en/packages/org.schabi.newpipe/>

<https://github.com/InfinityLoop1308/PipePipe>
<https://f-droid.org/en/packages/InfinityLoop1309.NewPipeEnhanced/>

The microphone though, is delayed, for reasons unknown to me,
which I've never been able to resolve so I turn one source off.
Mr. Man-wai Chang
2024-09-22 13:46:28 UTC
Permalink
Post by Andrew
Assuming your Nokia "something" is an Android phone... below
are all the methods I know of to "seamlessly connect" it to a PC.
Thank you....
Andrew
2024-09-22 18:07:46 UTC
Permalink
Post by Mr. Man-wai Chang
Post by Andrew
Assuming your Nokia "something" is an Android phone... below
are all the methods I know of to "seamlessly connect" it to a PC.
Thank you....
I'm always here, as is Paul and as are others, to help people out.
I suspect the lack of the "correct" drive "could" be the issue you face.

It's odd that only Nokia doesn't supply its own Android USB drivers.
<https://www.google.com/search?q=nokia+windows+android+driver>

Personally, I long ago forgot that the SUBST command even existed, so
here's a description of how to use SUBST in various circumtances.
<https://winaero.com/create-virtual-drive-from-a-folder-in-windows-10/>

For most of us who forgot about the SUBST command long ago, here are
examples of people mounting drives using SUBST in cmd & powershell.
<https://serverfault.com/questions/24400/in-windows-how-to-mount-folder-as-a-drive>

A search for the OP shows also that there is a "Virtual SUBST" program.
<https://www.ntwind.com/software/visual-subst.html>
"Visual Subst provides you with a clean, simple and distraction-free
user interface where you can manage all your virtual and network drives
at once. It solves four main issues with the built-in 'SUBST' and
'NET USE' commands: it enables editable drive labels, creates UAC drives
for elevated applications, manages Recycle Bin for deleted items
and it restores virtual drives after reboots."

This shows a guy with the opposite problem, in that he has the SUBST drive
and wants to get rid of it for his Android phone working with Windows.
<https://forums.unrealengine.com/t/local-disk-z-appeared-after-building-for-android/397713/8>

And this shows a guy on Android who is told SUBST was worse than Dokany
but that Round-sync was better (although it seems to mount SMB shares).
<https://community.cryptomator.org/t/unable-to-share-vault-on-local-network-when-using-winfsp-local-drive/12398/3>

Here is the Round Sync - Rclone for Android web page for those who care:
<https://github.com/newhinton/Round-Sync>

I downloaded it, to test it for the OP, but I'm going on a trip so I won't
have results until later - but the OP might want to take a look at it.
<https://github.com/newhinton/Round-Sync/releases/tag/v2.5.6>
<https://github.com/newhinton/Round-Sync/releases/download/v2.5.6/roundsync_v2.5.6-oss-universal-release.apk>
Name: roundsync_v2.5.6-oss-universal-release.apk
Size: 116786852 bytes (111 MiB)
SHA256: F6827968A7D234CD5440F5C5CCD37F944D4E96C33180EBECEBBBE96992CDCE2F

It seems naturally intuitive to use SMB with Windows - so it's worth a try.
Tom Del Rosso
2024-09-23 21:41:46 UTC
Permalink
Post by Andrew
I'm always here, as is Paul and as are others, to help people out.
Where is here for you? I'm posting in alt.msdos.batch.nt.
Post by Andrew
It's odd that only Nokia doesn't supply its own Android USB drivers.
I think it's odd that it needs a special driver when my flip phone of 20
years ago would simply emulate a USB drive, so it didn't need a special
driver. I know MTP works like a client-server database to prevent file
corruption, but I don't see why the Windows version of the MTP protocol
can't include the ability to assign a drive letter, since Windows
depends on letters.
Post by Andrew
Personally, I long ago forgot that the SUBST command even existed, so
In alt.msdos.batch.nt we haven't even forgotten the REPLACE command but
XCOPY /U works better.

I even remember trying RECOVER on floppies but it never worked. Norton
Utilities had an equivalent that did work.
Post by Andrew
A search for the OP shows also that there is a "Virtual SUBST"
program. <https://www.ntwind.com/software/visual-subst.html>
"Visual Subst provides you with a clean, simple and distraction-free
user interface where you can manage all your virtual and network
drives at once. It solves four main issues with the built-in
'SUBST' and 'NET USE' commands: it enables editable drive labels,
creates UAC drives for elevated applications, manages Recycle Bin
for deleted items and it restores virtual drives after reboots."
This shows a guy with the opposite problem, in that he has the SUBST
drive and wants to get rid of it for his Android phone working with
Windows.
<https://forums.unrealengine.com/t/local-disk-z-appeared-after-building-for-android/397713/8>
And this shows a guy on Android who is told SUBST was worse than
Dokany but that Round-sync was better (although it seems to mount SMB
shares).
<https://community.cryptomator.org/t/unable-to-share-vault-on-local-network-when-using-winfsp-local-drive/12398/3>
Here is the Round Sync - Rclone for Android web page for those who
care: <https://github.com/newhinton/Round-Sync>
I downloaded it, to test it for the OP, but I'm going on a trip so I
won't have results until later - but the OP might want to take a look
at it. <https://github.com/newhinton/Round-Sync/releases/tag/v2.5.6>
<https://github.com/newhinton/Round-Sync/releases/download/v2.5.6/roundsync_v2.5.6-oss-universal-release.apk>
Name: roundsync_v2.5.6-oss-universal-release.apk
Size: 116786852 bytes (111 MiB)
F6827968A7D234CD5440F5C5CCD37F944D4E96C33180EBECEBBBE96992CDCE2F
It seems naturally intuitive to use SMB with Windows - so it's worth a try.
--
Defund the Thought Police
Andrew
2024-09-24 14:33:17 UTC
Permalink
Post by Tom Del Rosso
Post by Andrew
It's odd that only Nokia doesn't supply its own Android USB drivers.
I think it's odd that it needs a special driver when my flip phone of 20
years ago would simply emulate a USB drive, so it didn't need a special
driver. I know MTP works like a client-server database to prevent file
corruption, but I don't see why the Windows version of the MTP protocol
can't include the ability to assign a drive letter, since Windows
depends on letters.
Well, let's clarify that word "needs" since my experience has been that
almost everything I plug into Windows that needs a driver, gets one.

The question here, is when things aren't working, do you have the "right"
driver, and the answer is that Nokia doesn't seem to make that driver.

So the OP is stuck with whatever driver that Windows felt was appropriate.
Obviously, my suggestion is the generic driver suggested by Google for adb.

That's because adb does everything you could want a program to do, although
just plugging an Android phone into Windows pretty much works for everyone.

As far as I recall, we still don't know the OP's Android USB settings.
<https://i.postimg.cc/JnDTWH9M/usb01.jpg> USB default settings
Post by Tom Del Rosso
Post by Andrew
Personally, I long ago forgot that the SUBST command even existed, so
In alt.msdos.batch.nt we haven't even forgotten the REPLACE command but
XCOPY /U works better.
Yeah, I forget about XCOPY & ROBOCOPY myself, and I wrote, oh, way back in
the 90's I guess, entire twenty page tutorials on how to use DEBUG better.
Post by Tom Del Rosso
I even remember trying RECOVER on floppies but it never worked. Norton
Utilities had an equivalent that did work.
I don't even remember RECOVER, but I do remember losing every file and then
gaining them back, minus the first character & minus the long file names.

Someone recently posted this powershell, though, for listing files in the
order they were created, which is useful when datestamps are necessary.
C:\> powershell
PS\> get-childItem | sort-object -prop lastWriteTimeUtc | forEach { "{0} {1}" -f $_.lastWriteTimeUtc.toString("yyyyMMddHHmmssffff"), $_.name } > dated.txt
Mr. Man-wai Chang
2024-09-24 14:52:03 UTC
Permalink
Post by Andrew
So the OP is stuck with whatever driver that Windows felt was appropriate.
Obviously, my suggestion is the generic driver suggested by Google for adb.
That's because adb does everything you could want a program to do, although
just plugging an Android phone into Windows pretty much works for everyone.
As far as I recall, we still don't know the OP's Android USB settings.
<https://i.postimg.cc/JnDTWH9M/usb01.jpg> USB default settings
Give me some time... too many ideas to try. :)

Thank you all! May the Force and farces be with you!!!!
Andrew
2024-09-24 18:34:33 UTC
Permalink
Post by Mr. Man-wai Chang
Post by Andrew
As far as I recall, we still don't know the OP's Android USB settings.
<https://i.postimg.cc/JnDTWH9M/usb01.jpg> USB default settings
Give me some time... too many ideas to try. :)
My suggestion is to try only one. WebDav. It's the best, in my experience.

I've tested *every* (free) suggestion (which didn't require making an
account) that was ever suggested (to my knowledge) on the Windows
newsgroup, so my advice below is based on this one question only:
"How could I map "This PC\Nokia 1234\Internal shared storage\"
to a drive (e.g. E:\)?"

By that question, I "assume" you mean:
"How could I map an Android phone filesystem to a Windows drive letter?"

That one question, I've been doing for years, where this newsgroup has
helped me do that, so to give back to the newsgroup, my suggestion is this:

1. Install any free WebDav server on your Android phone, where I recommend:
<https://play.google.com/store/apps/details?id=com.theolivetree.webdavserver>
I notice it says it has ads. I don't see ads. I never see ads.
My version may be older or it could be my DNS server ad blocking.

There are other free WebDAV servers but that's the simplest, AFAIK.

2. Set it up the simplest way possible - use all the defaults as one
mistake in a path will screw you. Don't set up login/password either.
Wait until it's working fine before adding those complexities.

Note that nowhere does it say anywhere in any of these program
notes that they all default to "DavWWWRoot" meaning the home share.

3. Mount that default home share onto Windows, where I suggest you
set up Android Wi-Fi to your home LAN to be a static IP address.
C:\> net use P: \\***@8080\DavWWWRoot

Now your internal sd card is mounted as drive "P:" on Windows.
From there, you can get as fancy as you want to get.

For example, I've found I need a second WebDAV server to mount the external
sdcard, and then you need to know the Android linux path to that card,
which is why I format all my sdcards with the same volume label.

One of the accidentally amazing things about mounting Android file systems
onto Windows as a drive letter is, for some reason, even though you're not
rooted, you can read (and write to) most of the file system, even parts
which you can't even see directly from the phone itself.

If someone can explain that magic to me, I'd love to know why that happens.
Andrew
2024-09-24 22:51:28 UTC
Permalink
Post by Andrew
Note that nowhere does it say anywhere in any of these program
notes that they all default to "DavWWWRoot" meaning the home share.
To the OP, I can't stress how IMPORTANT that sentence is above, as not
knowing that sentence cost me probably days (elapsed time) in getting the
solution to work because you're at the mercy of file specifications and how
they may differ between Android and Windows when you mount your sd card.

It's actually surprisingly shocking that not only is "DavWWWRoot"
universally used by all WebDav servers (AFAIK), but NONE of them seem to
tell you that. WTF?

I don't get it - but it cost me a lot of time NOT knowing that keyword.

It shows up nowhere in the settings. Nowhere in the help. Nowhere.
You are supposed to magically know it.

Now you know this is the *simplest* connection you can perform:
net use E: \\***@8080\DavWWWRoot

But there's a lot more you can do once you get that simple setup going.
net use /?
The syntax of this command is:

NET USE
[devicename | *] [\\computername\sharename[\volume] [password | *]]
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[***@dotted domain name]
[/SMARTCARD]
[/SAVECRED]
[/REQUIREINTEGRITY]
[/REQUIREPRIVACY]
[/WRITETHROUGH]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]
Bill Powell
2024-09-24 23:09:32 UTC
Permalink
Post by Andrew
It's actually surprisingly shocking that not only is "DavWWWRoot"
universally used by all WebDav servers (AFAIK), but NONE of them seem to
tell you that. WTF?
The reason is that DavWWWRoot has absolutely nothing to do with Android.

Nor does DavWWWRoot have anything to do with the Android Webdav server APK.
You could grep Android Webdave server source code & you'd never find it.

Nobody on Android knows about it but those on Windows use it all the time.

It's a Windows-only keyword so only people who know Windows know of it.
https://community.fabric.microsoft.com/t5/Desktop/What-exactly-is-DavWWWRoot/td-p/1827535

Everyone who knows Windows well has been using it for years though.
https://answers.microsoft.com/en-us/msoffice/forum/all/sharepoint-explorer-mapping-folders-via-davwwwroot/7e121644-d3df-4001-a624-c5b7d6541013

It's just not something Android users have come across before.
https://stackoverflow.com/questions/21706142/what-is-davwwwroot

DavWWWRoot is a special keyword recognized by Windows Shell. There is no
such folder on your WebDAV server and you should not create it. You also
will not find any DavWWWRoot name in requests to your server. The
DavWWWRoot keyword tells the Windows Mini-Redirector driver, which handles
WebDAV requests, that you are connecting to the root of WebDAV server.

So if you knew Windows like everyone else does, you'd have known that the
reason it's not mentioned anywhere in your Android documentation is that
it's a common Windows variable (much like %Path% & %Comspec% are).
Mr. Man-wai Chang
2024-09-25 10:25:13 UTC
Permalink
Post by Bill Powell
Post by Andrew
It's actually surprisingly shocking that not only is "DavWWWRoot"
universally used by all WebDav servers (AFAIK), but NONE of them seem to
tell you that. WTF?
The reason is that DavWWWRoot has absolutely nothing to do with Android.
Nor does DavWWWRoot have anything to do with the Android Webdav server APK.
You could grep Android Webdave server source code & you'd never find it.
....
So if you knew Windows like everyone else does, you'd have known that the
reason it's not mentioned anywhere in your Android documentation is that
it's a common Windows variable (much like %Path% & %Comspec% are).
Well... I just don't understand why the Command Prompt cannot do
whatever File Explorer is doing, including merely a drive letter for a
folder visible to File Explorer via a command. Maybe Powershell is the
new hope? I dunno....

It's unrelated to Android nor iOS. :)
Bill Powell
2024-09-25 14:20:36 UTC
Permalink
Post by Mr. Man-wai Chang
Well... I just don't understand why the Command Prompt cannot do
whatever File Explorer is doing, including merely a drive letter for a
folder visible to File Explorer via a command. Maybe Powershell is the
new hope? I dunno....
It's unrelated to Android nor iOS. :)
DavWWWRoot is a special keyword recognized by Windows Shell so you should
be able to do what you want, if you run a webdav server on Windows.

Have I done that? No. But why shouldn't you be able to run a Windows webdav
server & set DavWWWRoot to the desired nokia device on the command line?

Maybe you can install & test a Windows webdav server from this listing.
https://medevel.com/15-os-webdav-servers/

After the Windows webdav server is running, I see batch mount scripts here.
https://help.nextcloud.com/t/2023-which-is-the-best-free-webdav-client-with-drive-letter-assignation-windows/157294/3

This says you need to set the registry BasicAuthLevel Value data to 2.
https://www.thewindowsclub.com/how-to-map-webdav-in-windows

Let us know how it works, as I see no reason (yet) why it shouldn't work to
mount anything you can see in the Windows file explorer as a drive letter.
Mr. Man-wai Chang
2024-09-26 09:56:53 UTC
Permalink
Post by Bill Powell
...
Let us know how it works, as I see no reason (yet) why it shouldn't work to
mount anything you can see in the Windows file explorer as a drive letter.
Thank you all again!
JJ
2024-09-21 03:59:13 UTC
Permalink
Post by Mr. Man-wai Chang
How could I map "This PC\Nokia 1234\Internal shared storage\" to a drive
(e.g. E:\)?
subst e: "This PC\Nokia 1234\Internal shared storage\"
I tried the subst command but it reported "Path not found"!
SUBST will only work for real file system path. e.g. physical drives, and
network drives.

Some paths seen via Explorer, are shell paths. i.e. virtual paths which only
exist in shell context. e.g. paths of Control Panel applets, MTP devices
T
2024-09-21 04:54:47 UTC
Permalink
Post by JJ
Post by Mr. Man-wai Chang
How could I map "This PC\Nokia 1234\Internal shared storage\" to a drive
(e.g. E:\)?
subst e: "This PC\Nokia 1234\Internal shared storage\"
I tried the subst command but it reported "Path not found"!
SUBST will only work for real file system path. e.g. physical drives, and
network drives.
Some paths seen via Explorer, are shell paths. i.e. virtual paths which only
exist in shell context. e.g. paths of Control Panel applets, MTP devices
Try this:
https://www.mtpdrive.com/
Paul
2024-09-21 07:17:38 UTC
Permalink
Post by T
Post by JJ
Post by Mr. Man-wai Chang
How could I map "This PC\Nokia 1234\Internal shared storage\" to a drive
(e.g. E:\)?
subst e: "This PC\Nokia 1234\Internal shared storage\"
I tried the subst command but it reported "Path not found"!
SUBST will only work for real file system path. e.g. physical drives, and
network drives.
Some paths seen via Explorer, are shell paths. i.e. virtual paths which only
exist in shell context. e.g. paths of Control Panel applets, MTP devices
https://www.mtpdrive.com/
That's Dokan based.

I don't know if there are any knowledgeable reviews of that layer or not.

https://github.com/dokan-dev/dokany/discussions/1237

It's like an IFS (installable file system) or a FUSE. It allows
doing stuff like mtpdrive, among other things.

Usually, Dokan products are distributed to a relatively small number
of customers. And there isn't a lot of casual comment out there
about how well it works.

"Dokany – User mode file system library for windows with FUSE Wrapper"

https://news.ycombinator.com/item?id=12554024

Paul
JJ
2024-09-22 00:29:26 UTC
Permalink
Post by Paul
That's Dokan based.
I don't know if there are any knowledgeable reviews of that layer or not.
https://github.com/dokan-dev/dokany/discussions/1237
It's like an IFS (installable file system) or a FUSE. It allows
doing stuff like mtpdrive, among other things.
Usually, Dokan products are distributed to a relatively small number
of customers. And there isn't a lot of casual comment out there
about how well it works.
"Dokany – User mode file system library for windows with FUSE Wrapper"
https://news.ycombinator.com/item?id=12554024
Paul
Dokan is a pain in the ass to setup. I can't argue its potential of
providing user-mode based file system driver. I was actually hoping to use
it to implement my own FS driver. But the setup... ugh.
Konrad
2024-10-04 14:06:58 UTC
Permalink
Hi,

I'm doing this via WLAN.
On the Android site I run CX file explorer, and start his FTP server.
On Windows I run RaiDrive.
That works very well. Also file timestamps and attributes have the
correct values.

Regards
Konrad

Loading...