Windows – How to add an option in the context menu in Windows Explorer to split files by 15 GB chunks

7-ziparchivingwindowswindows-explorerzip

I often need to upload files to Microsoft OneDrive, whose max size per file with my account is 15 GiB.

How can I add an entry in the context menu in Windows Explorer to split files by 15 GB chunks?

Ideally I'd prefer if one could select several files and split each of them by 15 GB chunks at once. But even just splitting 1 file would be convenient.


7-zip doesn't have this function by default:

enter image description here

I don't want to have to manually define the split for each file:

enter image description here

Best Answer

This possible solution involves editing the registry.

  1. Press Win+R, type regedit.
  2. Open HKEY_CLASSES_ROOT\*\. Select shell.
  3. Right-click shell, select New then Key. Name it Split.
  4. Double-click Default and enter Split to 15GB.
  5. Right-click the key Split, select New then Key. Name it command.
  6. Double-click Default and enter C:\Program Files\7-Zip\7zG.exe a -v15g "%2%1.zip" "%1"
  7. Right-click the file you want to split. Select Split into 15GB.
Related Question