diff --git a/Data/scripts.csv b/Data/scripts.csv index 9b9bba21..210bedf8 100644 --- a/Data/scripts.csv +++ b/Data/scripts.csv @@ -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 diff --git a/README.md b/README.md index dc9cabb0..0b840911 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/Scripts/create-shortcut.ps1 b/Scripts/new-shortcut.ps1 similarity index 84% rename from Scripts/create-shortcut.ps1 rename to Scripts/new-shortcut.ps1 index 9278b339..51f70ab4 100755 --- a/Scripts/create-shortcut.ps1 +++ b/Scripts/new-shortcut.ps1 @@ -1,10 +1,10 @@ <# .SYNOPSIS - create-shortcut.ps1 [] [] [] + new-shortcut.ps1 [] [] [] .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])" diff --git a/Scripts/create-symlink.ps1 b/Scripts/new-symlink.ps1 similarity index 76% rename from Scripts/create-symlink.ps1 rename to Scripts/new-symlink.ps1 index 24be125e..7a29ac5e 100755 --- a/Scripts/create-symlink.ps1 +++ b/Scripts/new-symlink.ps1 @@ -1,10 +1,10 @@ <# .SYNOPSIS - create-symlink.ps1 [] [] + new-symlink.ps1 [] [] .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])"