Skip to content

Commit

Permalink
Preserve working directory in startup shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDcoder committed Jul 11, 2018
1 parent 2fd5e68 commit b726886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ProxAllium.au3
Expand Up @@ -362,7 +362,7 @@ Func GUI_AutoStart()
Local $sStartupFolder = _WinAPI_ShellGetKnownFolderPath($FOLDERID_Startup)
$sShortcutPath = $sStartupFolder & '\ProxAllium.lnk'
If FileExists($sShortcutPath) Then $sShortcutPath = _TempFile($sStartupFolder, "ProxAllium_", '.lnk')
$iReturn = FileCreateShortcut(@ScriptFullPath, $sShortcutPath)
$iReturn = FileCreateShortcut(@ScriptFullPath, $sShortcutPath, @WorkingDir)
If $iReturn = 0 Then
MsgBox($MB_ICONERROR, "Cannot add to startup", "Failed to create a shortcut in the Startup folder!")
Else
Expand Down

0 comments on commit b726886

Please sign in to comment.