Merge PDFs
Combine multiple PDF files into one PDF using PDFtk.
pdftk img1.pdf img2.pdf img3.pdf output combined.pdf
Copy-ready commands for everyday document and folder work. More tools can be added here later.
Combine multiple PDF files into one PDF using PDFtk.
pdftk img1.pdf img2.pdf img3.pdf output combined.pdf
Convert images into a PDF using ImageMagick.
magick .\img1.jpg .\pylib.png img3.pdf
Prefix every file in the current directory with a name.
$name="Rohani Sharma"; Get-ChildItem -File | Rename-Item -NewName { "$name`_$($_.Name)" }Create the standard applicant, student, financial and letter structure.
$app="Rohani Sharma"; $student="Rahul Yadav"; @("$app (Applicant)","Financial Documents","Letter","Relationship Documents","$student (Student)","Insurance","Financial Documents\$app Side","Financial Documents\$student Side","Letter\$app (SOP & GS)","Letter\$student (SOP & GS)") | ForEach-Object { New-Item -ItemType Directory -Path $_ -Force | Out-Null }; tree /FList files with size and creation time; highlight files over 4.75 MB.
Get-ChildItem -Recurse -File | ForEach-Object -Begin { $c=0 } -Process { $c++; $color = if ($_.Length -gt 4.75MB) { "Red" } else { "White" }; Write-Host ("{0,-60} | {1,8:N2} MB | {2:yyyy-MM-dd HH:mm:ss}" -f $_.Name, ($_.Length/1MB), $_.CreationTime) -ForegroundColor $color } -End { Write-Host "`nTotal File Count: $c" -ForegroundColor Green }