Skip to content

A way around file transfer limits using powershell buffers and write streams

Notifications You must be signed in to change notification settings

colinwilliams91/split-converge-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Summary:

If you have a file, such as a .zip that exceeds the max size of your mode of transfer (such as email @ 25mb or something...)

To Use:

  1. Make sure the directory you clone these scripts into is in your PATH, else, you will need to invoke with full path to file
  2. Sender Runs:
  • split-file.ps1 -inFile "C:\path\to\your\file.zip" -buffSize 4MB
  • the out files will be named "1", "2", "3", ... to the current working directory
  • you can pass whatever -buffSize you need for your file (e.g. -buffSize 100KB)
  1. Recipient Runs:
  • .\converge-files.ps1 -outFile "reassembled_file.zip" -buffSize 4MB
  • this will search the current working directory, matching filenames that are incrementing digits
  • you should pass the same -buffSize arg as you did to split-file for best results (resembling orig file)