Created
May 28, 2016 17:05
-
-
Save YR-ZR0/d88a9f88d0052d835aeda2700ff2f05e to your computer and use it in GitHub Desktop.
Fast Copy to Startup folder (PowerShell)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Script to Copy shortcuts to Startup Folder | |
[System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") | Out-Null | |
$OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog | |
$OpenFileDialog.ShowDialog()|Out-Null | |
$File = $OpenFileDialog.filename | |
$startup = [environment]::getfolderpath("Startup") | |
Copy-Item $File $startup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment