Skip to content

ZephrFish/ChunkyIngress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

ChunkyIngress

Solving problems I didn't think I'd have on a Saturday with clipboard copy pasta limits with Powershell.

Essentially, this script will take an input file, copy it to the clipboard in chunks, and allow you to paste it into an environment that only allows copying of text, not files. I built it because I was hitting clipboard limits for pasting things into an env.

Usage

First, load the module. Then, the script will split the file supplied into the selected KBs and copy it to your clipboard. It will do this until the file is entirely copied and tell you to hit enter each time.

ipmo .\ChunkyIngress.ps1
Invoke-ChunkyIngress -filePath "C:\Users\dev\ChunkyIngress.7z"

Once you've pasted the file into your env simply use the following PowerShell to rebuild the file:

$BuildMahFile = [Convert]::FromBase64String("")
[IO.File]::WriteAllBytes('ChunkyIngress.7z', $BuildMahFile)

Example

image

Invoke-ChunkyIngress -filePath "C:\Users\dev\ChunkyIngress.7z"
Chunk 0 copied to clipboard. Press Enter to copy next chunk or Ctrl+C to exit.


Chunk 1 copied to clipboard. Press Enter to copy next chunk or Ctrl+C to exit.


Chunk 2 copied to clipboard. Press Enter to copy next chunk or Ctrl+C to exit.


Chunk 3 copied to clipboard. Press Enter to copy next chunk or Ctrl+C to exit.


Chunk 4 copied to clipboard. Press Enter to copy next chunk or Ctrl+C to exit.


Chunk 5 copied to clipboard. Press Enter to copy next chunk or Ctrl+C to exit.


Total chunks created: 6

About

Solving problems I didn't think I'd have on a saturday with clipboard copy pasta limits with powershell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published