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"!
On Fri, 9/20/2024 12:49 AM, Mr. Man-wai Chang wrote:
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"!
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
On 20/9/2024 4:49 pm, Paul wrote:
This sounds like a Google problem. Why not phone
them up and ask ? :-)
I tried, but failed! :)This is from Google. I thought you were talking about a LAN drive, it
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>
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"!
On 09/20/2024 12:52 PM, Mr. Man-wai Chang wrote:
On 20/9/2024 4:49 pm, Paul wrote:This is from Google. I thought you were talking about a LAN drive, it you are connected through USB, or other.
This sounds like a Google problem. Why not phone
them up and ask ? :-)
I tried, but failed! :)
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>
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.
Mr. Man-wai Chang wrote on Fri, 20 Sep 2024 12:49:33 +0800 :
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"!
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. https://i.postimg.cc/2SxM8V16/rootfilesystem.jpg
This is what I use every day on Windows 10(via a batch script, of course): net use I: \\192.168.0.2@8000\DavWWWRoot /USER:foo bar net use X: \\192.168.0.2@9000\DavWWWRoot Which is nicely summarized for you in this set of my own screenshots.
<https://i.postimg.cc/1zrmSmQc/davroot.jpg>
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. <https://i.postimg.cc/W3V7D7xc/webdav.jpg>
And, of course, I set the USB (or Wi-Fi) file transfer for the connection. <https://i.postimg.cc/JnDTWH9M/usb01.jpg>
Here are just some representative examples of how Android === Windows/Linux <https://i.postimg.cc/6371SxNd/mountandroidonwindows.jpg> Android mounted <https://i.postimg.cc/k5F8sLbc/filesys01.jpg> Starting WebDAV servers <https://i.postimg.cc/RZtw6WC2/filesys02.jpg> Mount Android system filesys <https://i.postimg.cc/Zngy0SGT/filesys03.jpg> Look at /etc/resolv.conf <https://i.postimg.cc/nzFmPTKt/filesys04.jpg> Can use the command line <https://i.postimg.cc/PJF1ZZwn/filesys05.jpg> Look at the dnsproxy file <https://i.postimg.cc/BvJdKWzt/webdav06.jpg> Both sdcards mounted <https://i.postimg.cc/cJLK1wt0/webdav07.jpg> Mount the entire filesystem <https://i.postimg.cc/qv6HJ7GN/webdav08.jpg> Each sdcard is a drive letter <https://i.postimg.cc/D0qMxTMB/webdav09.jpg> FOSS general purpose solution <https://i.postimg.cc/wM4Z45pN/webdav10.jpg> Free Android WebDAV servers
<https://i.postimg.cc/BQyRxCN9/webdav11.jpg> Mount sdcards read & write <https://i.postimg.cc/yYWwgGmy/webdav12.jpg> As Windows drive letters <https://i.postimg.cc/QtbR1GY0/webdav13.jpg> Over Wi-Fi on your home LAN <https://i.postimg.cc/JhjpnRgh/webdav14.jpg> Mirroring Android on Windows <https://i.postimg.cc/gcKXV6F7/webdav16.jpg> A third free WebDAV server
Once set up correctly, the Android file system is just a drive on Windows. <https://i.postimg.cc/hjkVFyqJ/scrcpy07.jpg> Android mnt as drive letter
Such that you can slide APKs from Windows and they auto-install on Android. <https://i.postimg.cc/wvsbcNBz/scrcpy05.jpg> 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. <https://i.postimg.cc/5NrK7jtg/scrcpy16.jpg> 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?
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?
You're using webdav to allow the file system to be exported like it was a file share.
And that is working over Wifi, which I don't think the OP wants.
Another method is Android ADB (SDK). That is for the USB cable and Developer Mode (not rooted).
https://stackoverflow.com/questions/20834241/how-to-use-adb-command-to-push-a-file-on-device-without-sd-card
adb pull /system/etc/hosts . (as /etc is a symlink on Android)
adb push adb push hosts /system/etc/hosts
adb shell
su
mount -o rw,remount /system
adb push C:\platform-tools\hosts /system/etc/
It's a good thing Man-wai enjoys complicated solutions.
Isn't that what using a phone is all about ?
I can't explain the details of Android for you, except to say that
Google loves complicated file system mounting schemes. They like
to have a ton of partitions. When other OSes are capable of
putting the entire design in a single partition.
You can put mounts on top of mounts, and apply permissions
to them, such that the mount point is not "readable" by an external
user. Any folder can be used as a mount point.
A file like /etc/mtab , keeps track of the mounts which are currently in place.
(Have been applied in a sense.) But depending on what the designer wants,
you can also make mounts invisible from a logging perspective. The loopback mounts in Ubuntu, have been made invisible (because they were annoying to
the eye, in certain contexts, and the mounts were caused by the Snap packaging subsystem).
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"!
On Fri, 20 Sep 2024 12:49:33 +0800, Mr. Man-wai Chang wrote:
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"!
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
On 9/20/24 20:59, JJ wrote:
On Fri, 20 Sep 2024 12:49:33 +0800, Mr. Man-wai Chang wrote:
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"!
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/
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
On 21/9/2024 7:46 pm, knuttle wrote:
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. :)
This is what I use every day on Windows 10(via a batch script, of course): >> net use I: \\192.168.0.2@8000\DavWWWRoot /USER:foo bar
net use X: \\192.168.0.2@9000\DavWWWRoot
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.
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 ¡V User mode file system library for windows with FUSE Wrapper"
https://news.ycombinator.com/item?id=12554024
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).
On 09/21/2024 6:32 PM, david wrote:
Using <news:vcmo6f$1l1ao$1@toylet.eternal-september.org>, Mr. Man-wai Chang >> wrote: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.
On 21/9/2024 7:46 pm, knuttle wrote:
  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
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.
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.
It's odd that only Nokia doesn't supply its own Android USB drivers.
Personally, I long ago forgot that the SUBST command even existed, so
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.
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.
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.
powershell
get-childItem | sort-object -prop lastWriteTimeUtc | forEach { "{0} {1}" -f $_.lastWriteTimeUtc.toString("yyyyMMddHHmmssffff"), $_.name } > dated.txt
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. :)
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?
Note that nowhere does it say anywhere in any of these program
notes that they all default to "DavWWWRoot" meaning the home share.
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. :)
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 468 |
Nodes: | 16 (2 / 14) |
Uptime: | 34:56:07 |
Calls: | 9,444 |
Calls today: | 1 |
Files: | 13,594 |
Messages: | 6,111,294 |