Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perfect!!! Windows users, pls read. #46

Open
tfernanddes opened this issue Aug 11, 2024 · 2 comments
Open

Perfect!!! Windows users, pls read. #46

tfernanddes opened this issue Aug 11, 2024 · 2 comments

Comments

@tfernanddes
Copy link

Thank you for your work!
Tried another script that i found here on github and didn't work.
Your script worked perfect on Windows 11.

First I needed to change the script policy on Windows to unrestricted opening the powershell as admin.

Paste the line below

Set-ExecutionPolicy Unrestricted

After that I downloaded yarn.

Open CMD as admin

Type the line below

corepack enable
yarn
yarn -v
yarn set version stable
yarn

After that.. go to the script folder. go to src > open config.ts

Enable extensions that you may have on your photos, save and close.

Go pack to the main folder of the script, right click > open in terminal..

Now just type the following:
yarn
yarn start --inputDir D:\Takeout --outputDir D:\Photos --errorDir D:\PhotosError

the line above is just an example. You need to edit it according to your folders

Then press enter and wait the magic to happen 🥇

@mian196
Copy link

mian196 commented Dec 10, 2024

Thanks a lot man, it worked like a charm from 1000s of pics with no date taken have date taken now finally but there are some few files left in error folder. so i checked json it have formatted time but not the the creation time so is there a way i can fix them if its few it would be easy but its like few hundred. anyway thanks for your instructions!

@Kevsosmooth
Copy link

Few question what does
Corepack enable do?

Secondly after going to the src folder I could not help but think how the command line know does it know to begin running the program being at the source?

For example
yarn start --inputDir D:\Takeout --outputDir D:\Photos --errorDir D:\PhotosError

just from this line what lets it know to run this program? is it the start part?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants