ClickTools

File work, made quick.

Copy-ready commands for everyday document and folder work. More tools can be added here later.

These commands can modify files or create folders. Check the current directory and the command before running any write/rename command.
PDF

Merge PDFs

Combine multiple PDF files into one PDF using PDFtk.

PDFtk
pdftk img1.pdf img2.pdf img3.pdf output combined.pdf

Images → PDF

Convert images into a PDF using ImageMagick.

ImageMagick
magick .\img1.jpg .\pylib.png img3.pdf
Files & Folders

Add name before files

Prefix every file in the current directory with a name.

PowerShell
$name="Rohani Sharma"; Get-ChildItem -File | Rename-Item -NewName { "$name`_$($_.Name)" }

Create case folders

Create the standard applicant, student, financial and letter structure.

PowerShell
$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 /F

Check files

List files with size and creation time; highlight files over 4.75 MB.

PowerShell
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 }