mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-10 13:27:41 +02:00
Improved the scripts
This commit is contained in:
@ -8,14 +8,14 @@
|
||||
|
||||
param($Symlink = "", $Target = "")
|
||||
|
||||
try {
|
||||
if ($Symlink -eq "" ) {
|
||||
$Symlink = read-host "Enter filename of symlink"
|
||||
}
|
||||
if ($Target -eq "" ) {
|
||||
$Target = read-host "Enter path to target"
|
||||
}
|
||||
if ($Symlink -eq "" ) {
|
||||
$Symlink = read-host "Enter filename of symlink"
|
||||
}
|
||||
if ($Target -eq "" ) {
|
||||
$Target = read-host "Enter path to target"
|
||||
}
|
||||
|
||||
try {
|
||||
new-item -path "$Symlink" -itemType SymbolicLink -Value "$Target"
|
||||
|
||||
write-host -foregroundColor green "Done."
|
||||
|
Reference in New Issue
Block a user