mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-23 14:18:38 +01:00
Rename to new-shortcut.ps1 and new-symlink.ps1
This commit is contained in:
parent
ec9253f38a
commit
3b73961014
@ -60,8 +60,6 @@ convert-ps2md.ps1, converts the comment-based help of a PowerShell script to Mar
|
||||
convert-sql2csv.ps1, converts the SQL database table to a CSV file
|
||||
convert-txt2wav.ps1, converts text into a audio .WAV file
|
||||
create-branch.ps1, creates a new branch in the current/given Git repository
|
||||
create-shortcut.ps1, creates a shortcut
|
||||
create-symlink.ps1, creates a symbolic link
|
||||
create-tag.ps1, creates a new tag in the current/given Git repository
|
||||
daily-tasks.sh, execute PowerShell scripts automatically as daily tasks (Linux only)
|
||||
decrypt-file.ps1, decrypts the given file
|
||||
@ -178,6 +176,8 @@ pull-repos.ps1, pulls updates for all Git repositories under the current/given d
|
||||
query-smart-data.ps1, queries the S.M.A.R.T. data of your HDD/SSD's and saves it to the current/given directory
|
||||
new-email.ps1, starts the default email client to write a new email
|
||||
new-script.ps1, creates a new PowerShell script
|
||||
new-shortcut.ps1, creates a new shortcut
|
||||
new-symlink.ps1, creates a new symbolic link
|
||||
reboot.ps1, reboots the local computer (needs admin rights)
|
||||
reboot-fritzbox.ps1, reboots the FRITZ!box device
|
||||
remove-empty-dirs.ps1, removes empty subfolders within the given directory tree
|
||||
|
Can't render this file because it has a wrong number of fields in line 84.
|
@ -145,8 +145,6 @@ Mega Collection of PowerShell Scripts
|
||||
| [check-xml-file.ps1](Scripts/check-xml-file.ps1) | Checks the given XML file for validity
|
||||
| [clear-recycle-bin.ps1](Scripts/clear-recycle-bin.ps1) | Removes the content of the recycle bin folder (can not be undo!)
|
||||
| [copy-photos-sorted.ps1](Scripts/copy-photos-sorted.ps1) | Copies all photos sorted by year and month
|
||||
| [create-shortcut.ps1](Scripts/create-shortcut.ps1) | Creates a shortcut
|
||||
| [create-symlink.ps1](Scripts/create-symlink.ps1) | Creates a symbolic link
|
||||
| [decrypt-file.ps1](Scripts/decrypt-file.ps1) | Encrypts the given file
|
||||
| [download-dir.ps1](Scripts/download-dir.ps1) | Downloads a directory tree from the given URL
|
||||
| [download-file.ps1](Scripts/download-file.ps1) | Downloads a file from the given URL
|
||||
@ -164,6 +162,8 @@ Mega Collection of PowerShell Scripts
|
||||
| [list-workdir.ps1](Scripts/list-workdir.ps1) | Lists the current working directory
|
||||
| [make-install.ps1](Scripts/make-install.ps1) | Installs built executables and libs to the installation directory
|
||||
| [MD5.ps1](Scripts/MD5.ps1) | Prints the MD5 checksum of the given file
|
||||
| [new-shortcut.ps1](Scripts/new-shortcut.ps1) | Creates a new shortcut
|
||||
| [new-symlink.ps1](Scripts/new-symlink.ps1) | Creates a new symbolic link
|
||||
| [publish-to-ipfs.ps1](Scripts/publish-to-ipfs.ps1) | Publishes the given files or directory to IPFS
|
||||
| [remove-empty-dirs.ps1](Scripts/remove-empty-dirs.ps1) | Removes empty subfolders within the given directory tree
|
||||
| [search-filename.ps1](Scripts/search-filename.ps1) | Searches the directory tree for filenames by given pattern
|
||||
|
@ -1,10 +1,10 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
create-shortcut.ps1 [<shortcut>] [<target>] [<description>]
|
||||
new-shortcut.ps1 [<shortcut>] [<target>] [<description>]
|
||||
.DESCRIPTION
|
||||
Creates a new shortcut file.
|
||||
.EXAMPLE
|
||||
PS> .\create-shortcut.ps1 C:\Temp\HDD C:\
|
||||
PS> .\new-shortcut.ps1 C:\Temp\HDD C:\
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
@ -26,7 +26,7 @@ try {
|
||||
$sc.Description = "$description"
|
||||
$sc.save()
|
||||
|
||||
"✔️ created shortcut $shortcut ⭢ $target"
|
||||
"✔️ created new shortcut $shortcut ⭢ $target"
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
@ -1,10 +1,10 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
create-symlink.ps1 [<symlink>] [<target>]
|
||||
new-symlink.ps1 [<symlink>] [<target>]
|
||||
.DESCRIPTION
|
||||
Creates a symbolic link file.
|
||||
Creates a new symbolic link file.
|
||||
.EXAMPLE
|
||||
PS> .\create-symlink.ps1 C:\Temp\HDD C:\
|
||||
PS> .\new-symlink.ps1 C:\Temp\HDD C:\
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
@ -19,7 +19,7 @@ try {
|
||||
|
||||
new-item -path "$symlink" -itemType SymbolicLink -Value "$target"
|
||||
|
||||
"✔️ created symlink $symlink ⭢ $target"
|
||||
"✔️ created new symlink $symlink ⭢ $target"
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
Loading…
Reference in New Issue
Block a user