pmqs / Fix-OneDrive-Zip

Fix OneDrive Zip files >4Gig
266 stars 24 forks source link

Add some guidance on running the script on a Windows environment #1

Closed pmqs closed 1 year ago

pmqs commented 4 years ago

There have been a couple of Windows users who have had difficulty in running the script.

Can use this reply below as the starting point for some new documentation

This tool is run from a Windows terminal shell, like cmd or PowerShell.

Start by downloading the code from GitHub onto your Windows box. You only need to download the file "fix-onedrive-zip"

To run my code on Windows you first need to check if you have Perl installed. For Linux systems this isn't an issue, because they all ship with one. On Windows you need to install one, if you don't already have it. To find out, run up cmd (type Windows-R, the type cmd). You should now be a terminal window. Type "perl -v"

On my setup it prints this

C:\Users\xx>perl -v

This is perl 5, version 30, subversion 1 (v5.30.1) built for MSWin32-x64-multi-thread

Copyright 1987-2019, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

If you don't get that, install one of the Windows Perl distributions. http://strawberryperl.com/ is a good choice. Pick the 64-bit option & install. (http://strawberryperl.com/download/5.32.0.1/strawberry-perl-5.32.0.1-64bit.msi)

Finally, to fix your file, copy my script to the same directory as your zip file, then open a cmd terminal in that directory and run --

perl fix-onedrive-zip yourfile.zip
megmasson commented 3 years ago

Hi Paul, I'm a perl novice but I've been searching for a means to open large zip files. I've followed all the steps outlinedabove for a windows user. However I keep getting the following error: Can't open perl script "fix-onedrive-zip-new": No such file or directory

Any pointers would be greatly appreciated.

Thanks, Megan

pmqs commented 3 years ago

Hey Megan,

I assume you are running Windows and you have perl installed?

If that is the case then the most straightforward way to run the script is to make sure that both the fix-onedrive-zip script and the zip file you want to fix are in the same directory.

If that is the case, then open a command window and run

perl fix-onedrive-zip yourfile.zip

If that doesn't work, can you get me a log (or screenshots) of what you tried please?

pmqs commented 3 years ago

Sorry Megan - don't see any screenshots. Try adding them directly to the issue vla the link https://github.com/pmqs/Fix-OneDrive-Zip/issues/1 rather than via an email reply.

megmasson commented 3 years ago

Hi Paul, Please see the screen print below. Thanks for the help.

Screenprint

pmqs commented 3 years ago

Hey Megan

your command window isn't open in the directory where the zip file & my script live. The files are in a OneDrive folder ending in Golder 2021, while you command window is open in the directory C:\Users\Megan.

Unfortunately I can't see the full path where OneDrive lives. Lets assume C: for now

In the command window change directory to the OneDrive folder. I'm guessing the full path below - fix if I've missed anything.

cd "\Users\Megan\OneDrive\Documents\Golder 2021"

Now try running the Perl command again.

pmqs commented 1 year ago

doc updates are in https://github.com/pmqs/Fix-OneDrive-Zip/commit/f53793d5a243dad363b45d51551ebf2a06d13299