WorkDir
This commit is contained in:
parent
0b0e7588bb
commit
1217b9c482
1 changed files with 1 additions and 0 deletions
|
@ -92,6 +92,7 @@ Function From-FileName() {
|
|||
$lnkName = if($GameName) { $GameName } else { Split-Path -Leaf $FileName }
|
||||
$WshShell = New-Object -comObject WScript.Shell
|
||||
$Shortcut = $WshShell.CreateShortcut("$PSScriptRoot\$lnkName.lnk")
|
||||
$Shortcut.WorkingDirectory = Split-Path $FileName
|
||||
$Shortcut.IconLocation = $FileName
|
||||
$Shortcut.TargetPath = 'cmd.exe'
|
||||
$Shortcut.Arguments = '/c start "" /b /high "'+$FileName+'"'
|
||||
|
|
Loading…
Add table
Reference in a new issue