This commit is contained in:
Empathic Qubit 2021-04-19 22:33:52 -04:00
parent 0b0e7588bb
commit 1217b9c482

View file

@ -92,6 +92,7 @@ Function From-FileName() {
$lnkName = if($GameName) { $GameName } else { Split-Path -Leaf $FileName } $lnkName = if($GameName) { $GameName } else { Split-Path -Leaf $FileName }
$WshShell = New-Object -comObject WScript.Shell $WshShell = New-Object -comObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("$PSScriptRoot\$lnkName.lnk") $Shortcut = $WshShell.CreateShortcut("$PSScriptRoot\$lnkName.lnk")
$Shortcut.WorkingDirectory = Split-Path $FileName
$Shortcut.IconLocation = $FileName $Shortcut.IconLocation = $FileName
$Shortcut.TargetPath = 'cmd.exe' $Shortcut.TargetPath = 'cmd.exe'
$Shortcut.Arguments = '/c start "" /b /high "'+$FileName+'"' $Shortcut.Arguments = '/c start "" /b /high "'+$FileName+'"'