Open gmgj opened 4 years ago
Hi Gary, Thanks a lot for your interest in the project.
I cannot promise any quick help, but I would definitely love to expand it to help more people.
I here by give you the job of project manager and myself as the lazy engineer 😃
Tell me what needs to be done next, I will set aside some time and do it. If we sell it one day you get 50%!
Waiting for further instructions 😃
Stay safe, Stay healthy.
From: Gary Johnson notifications@github.com Sent: Friday, March 20, 2020 7:36 PM To: WillyMoselhy/Weekend-Projects Weekend-Projects@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [WillyMoselhy/Weekend-Projects] Ideas and Observations (#1)
Thanks, Thanks a lot. I got here because I started researching using xcopy to copy new files from a cell phone to a PC. I was thinking I would use something like Mountvol to assign a drive letter to the phone and use xcopy to copy over the new files. But after realizing that the Media Transfer Protocol was a different animal than a DOS file system, I started looking for a PowerShell solution. Something that would access the underlying DEVICE SDK that windows uses for getting at MTP files.
I use a Moto X4 with Google Fi. Everything I have is backed up by Google. But still, it is nice to have other ways of transferring these files to a PC. JIC.
There are boatloads of people who are 50+ that have rudimentary computer skills. Also, they might have a nice phone, but, it does not have the same support as the big carriers. Okay, it is dead simple to use File explorer to copy and paste files, but, some people with disabilities etc can have issues
You are 90% there to what I am thinking about. I know I can clone this, and take it as my own (with attribution) but as a courtesy, I wanted to touch base with you first.
I was thinking maybe just skip the filename and go for the extensions, JPG and MP$ etc might make this more useful for other folks and phones.
Your comments Copy items from camera by month We use the file name to arrange folders File names follow this pattern yyyyMMdd_HHmmss e.g. 20200104_231922.jpg Files that do not match this pattern are excluded and reported
in my case, just a slight change is necessary
IMG_20181121_183737281.JPG 20200104_231922.jpg
a) Add IMG_ b) Make sure 281 is ignored (have not studied the regex yet)
xcopy "This PC\MTP USB Device\Internal shared storage\DCIM\Camera." "C:\JIC\test." /s /r /y /q /d
recurse subdirectories might not be needed because the phone does not use them
The main switch is \d /d [:MM-DD-YYYY] Copies source files changed on or after the specified date only. If you do not include a MM-DD-YYYY value, xcopy copies all Source files that are newer than existing Destination files. This command-line option allows you to update files that have changed.
In my testing I have seen this "MTP USB Device" for a Galaxy J7 Crown My phone shows up as a Moto X4
4) the idea is a simple setup that, you plug in the phone, push a button and maybe use a USB stick for output that people without big carries support could use to backup their photos and videos.
Since I am not a PowerShell guy, I might pay someone to do this. It would probably be easier for me to bite the bullet and do it myself, but, I will have to trick myself into thinking the pain of using a new language is worth it
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FWillyMoselhy%2FWeekend-Projects%2Fissues%2F1&data=02%7C01%7C%7C52df2764adc348f5159908d7ccf52a27%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637203225648774040&sdata=T93NIqzZ99bhMTIqQ%2BQFFOUVp6g3hM5H4slGprC%2FNqI%3D&reserved=0, or unsubscribehttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAE4QXI4AZVIA4BVI5TTUQTLRIOSQHANCNFSM4LQRAXTA&data=02%7C01%7C%7C52df2764adc348f5159908d7ccf52a27%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637203225648784045&sdata=jgdX1dm8N7%2FWFCPPxXqFid7ih9qlBnhTKqq9VtmIFfg%3D&reserved=0.
Please advise as to how you want to communicate. I wrote up a first draft of some ideas. I did not include your name as I did not have permission; however, I will do whatever you ask. https://garyjohnson53.wordpress.com/2020/03/21/backup-phone-pictures-and-videos/
I use gary.johnson.53@gmail for project work.
And THANKS again.
I posted to a few friends on FB looking for some Testers (I mean guinea pigs) to test.
I am first line tester. I have been a one man band for most of my career. I do not know PowerShell. I do not know BASH either, but, every-once in a while I BASH things
Thanks, Thanks a lot. I got here because I started researching using xcopy to copy new files from a cell phone to a PC. I was thinking I would use something like Mountvol to assign a drive letter to the phone and use xcopy to copy over the new files. But after realizing that the Media Transfer Protocol was a different animal than a DOS file system, I started looking for a PowerShell solution. Something that would access the underlying DEVICE SDK that windows uses for getting at MTP files.
I use a Moto X4 with Google Fi. Everything I have is backed up by Google. But still, it is nice to have other ways of transferring these files to a PC. JIC.
There are boatloads of people who are 50+ that have rudimentary computer skills. Also, they might have a nice phone, but, it does not have the same support as the big carriers. Okay, it is dead simple to use File explorer to copy and paste files, but, some people with disabilities etc can have issues
You are 90% there to what I am thinking about. I know I can clone this, and take it as my own (with attribution) but as a courtesy, I wanted to touch base with you first.
1) The regex pattern does not work for my Android 10 Google Fi variant photo files my example file name, IMG_20181121_183737281.JPG
I was thinking maybe just skip the filename and go for the extensions, JPG and MP$ etc might make this more useful for other folks and phones.
Your comments Copy items from camera by month We use the file name to arrange folders File names follow this pattern yyyyMMdd_HHmmss e.g. 20200104_231922.jpg Files that do not match this pattern are excluded and reported
in my case, just a slight change is necessary
IMG_20181121_183737281.JPG 20200104_231922.jpg
add some . to match IMG VID $FileNameRegex = "^....(?\d{4
a) Add IMG_ .... b) Make sure 281 is not needed ?
2) as of this edit I have changed the output folder from $YearMonth = "{0}{1}" -f $Matches.Year,$Matches.Month to $Year = $Matches.Year $YearFolder = New-Item -Path "$($TargetFolder.FullName)\$Year"
3) help in displaying a list of devices attached that might be suitable candidates to copy from
In my testing I have seen this "MTP USB Device" for a Galaxy J7 Crown My phone shows up as a Moto X4
4) the idea is a simple setup that, you plug in the phone, push a button and maybe use a USB stick for output that people without big carries support could use to backup their photos and videos.
Since I am not a PowerShell guy, I might pay someone to do this. It would probably be easier for me to bite the bullet and do it myself, but, I will have to trick myself into thinking the pain of using a new language is worth it