This PowerShell script converts a SQL 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-sql2csv.ps1Author: Markus Fleschutz | License: CC0
This PowerShell script converts the comment-based help of a PowerShell script to Markdown.
filename Specifies the path to the PowerShell script
PS> ./convert-ps2md.ps1 myscript.ps1Author: Markus Fleschutz | License: CC0
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