From 1217b9c482163065b92dd49136e938dd395e26ab Mon Sep 17 00:00:00 2001 From: empathicqubit Date: Mon, 19 Apr 2021 22:33:52 -0400 Subject: [PATCH] WorkDir --- create.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/create.ps1 b/create.ps1 index 5c60aa4..032448b 100644 --- a/create.ps1 +++ b/create.ps1 @@ -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+'"'