Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/06/2024 in all areas

  1. And so it seems. As I now recall all my experiments with the command-line you gave me. The following is what I have just tried, in a BAT file, and it returns an error. D:\Projects\GOG-CLI\Curl\curl.exe -L -s -w '%{url_effective}' -r 0-0 -o /dev/null --cookie gogcom_cookies.txt "https://www.gog.com/downloads/underground_blossom_demo/en1installer0" So it shows the following in the console window. And then and old memory surfaced about % being used in a BAT file. That sometimes you need to use %% instead of %. And bugger me, that worked. And so maybe now I can get aria2 to work ... if that was the issue.
    1 point
  2. Just use $CmdLineRaw or $CmdLine[1] in your second script, so for example: Script 1 While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $btnYes Global $Reboot = 1 Run(@ScriptDir & "\PatchDelayRed.exe True") Exit Case $btnNo GUISetState(@SW_HIDE) msg3() Exit EndSwitch WEnd Script 2 AutoItSetOption("TrayIconHide", 1) Global $Reboot = False If $CmdLine[0] >= 1 Then $Reboot = $CmdLine[1] If $Reboot = False Then Do Sleep(5000) ;Sleep for two hours Run(@ScriptDir & "\PatchRebootRed_Eng.exe") Exit Until $Reboot = True ElseIf $Reboot = True Then MsgBox(0, "", "Rebooting Now") Exit EndIf
    1 point
×
×
  • Create New...