This PowerShell script converts one or more PowerShell scripts to .bat batch files.
Filepattern Specifies the file pattern
PS> ./convert-ps2bat.ps1 *.ps1Author: Markus Fleschutz | License: CC0
This PowerShell script converts a MySQL database table to a .CSV file.
server Specifies the server's hostname or IP address
database Specifies the database name
username Specifies the user name
password Specifies the password
query Specifies the SQL query
PS> ./convert-mysql2csv.ps1Author: Markus Fleschutz | License: CC0
This PowerShell script converts Markdown file(s) into HTML.
FilePattern Specifies the file pattern to the Markdown file(s)
PS> ./convert-md2html.ps1 *.mdAuthor: Markus Fleschutz | License: CC0
This PowerShell script converts your command history into a PowerShell script. It saves all your commands into a script for automation (executed by e.g Jenkins or AutoHotkey).
path Specifies the file path of the new script ('script-from-history.ps1' by default)
PS> ./convert-history2ps1.ps1✅ Converted your command history into the PowerShell script: script-from-history.ps1Author: Markus Fleschutz | License: CC0
This PowerShell script converts .DOCX file(s) into Markdown.
FilePattern Specifies the file pattern to the .DOCX file(s)
PS> ./convert-docx2md *.docxAuthor: Markus Fleschutz | License: CC0
This PowerShell script creates a new compressed .ZIP file from a directory (including subfolders).
dirPath Specifies the path to the directory
zipPath Specifies the path to the target .ZIP file (default is dirPath.zip)
PS> ./convert-dir2zip.ps1 C:\Windows Win.zip✅ Converted into compressed Win.zip in 291s.Author: Markus Fleschutz | License: CC0
This PowerShell script compresses the given directory (including subfolders) into a compressed .7z file. It also preserves symbolic links and requires that 7-zip is installed.
dirPath Specifies the path to the directory (to be entered by default)
targetFile Specifies the path to the target file (.7z by default)
PS> ./convert-dir27z.ps1 C:\Windows Win.7z✅ Converted 📂C:\Windows into Win.7z in 291s.Author: Markus Fleschutz | License: CC0
This PowerShell script converts a .CSV file into a text file and prints it.
Path Specifies the path to the .CSV file
PS> ./convert-csv2txt salaries.csvAuthor: Markus Fleschutz | License: CC0
This PowerShell script configures your Git user settings.
fullName Specifies the user's full name
emailAddress Specifies the user's email address
favoriteEditor Specifies the user's favorite text editor
PS> ./configure-git.ps1 "Joe Doe" joe@doe.com vim⏳ (1/5) Searching for Git executable... git version 2.42.0.windows.1⏳ (2/5) Asking for user details...⏳ (3/5) Saving basic settings (autocrlf,symlinks,longpaths,etc.)...⏳ (4/5) Saving user settings (name,email,editor)...⏳ (5/5) Saving user shortcuts ('git br', 'git ls', 'git st', etc.)...✅ Saved your Git configuration to ~/.gitconfig in 11s.Author: Markus Fleschutz | License: CC0
This PowerShell script removes the content of the recycle bin folder permanently. IMPORTANT NOTE: this cannot be undo!
PS> ./clear-recycle-binAuthor: Markus Fleschutz | License: CC0