mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-10-31 17:32:27 +08:00 
			
		
		
		
	more vagrant stuff
This commit is contained in:
		
							
								
								
									
										21
									
								
								vendor/bin/set-shortcut.ps1
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								vendor/bin/set-shortcut.ps1
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| [CmdletBinding()] | ||||
| param( | ||||
|     [Parameter()] | ||||
|     [string]$SourceExe, | ||||
|     [string]$Arguments, | ||||
|     [string]$DestinationPath, | ||||
|     [string]$WorkingDirectory, | ||||
|     [String]$IconLocation | ||||
| ) | ||||
|  | ||||
| if ($IconLocation -eq '') { | ||||
|     $IconLocation = $SourceExe | ||||
| } | ||||
|  | ||||
| $WshShell = New-Object -comObject WScript.Shell | ||||
| $Shortcut = $WshShell.CreateShortcut($destinationPath) | ||||
| $Shortcut.TargetPath = $SourceExe | ||||
| $Shortcut.Arguments = $Arguments | ||||
| $shortcut.WorkingDirectory = $WorkingDirectory | ||||
| $shortcut.IconLocation = $IconLocation | ||||
| $Shortcut.Save() | ||||
		Reference in New Issue
	
	Block a user