Skip to content

Instantly share code, notes, and snippets.

View Ucinorn's full-sized avatar

Thomas Muller Ucinorn

View GitHub Profile
# Modified from: http://stackoverflow.com/a/11010158/215200
$fromFolder = "D:\FOLDER\"
$rootName = "FILENAME"
$ext = "EXT"
$from = "{0}{1}.{2}" -f ($fromFolder, $rootName, $ext)
$fromFile = [io.file]::OpenRead($from)
$upperBound = 100MB