Update autoupdate.bat, add autogen support [*.autogen]

fix tab remove end lines ^M
pull/1160/head
asmtron 3 days ago committed by GitHub
parent 4407278752
commit df24782fb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -105,24 +105,24 @@ for %%i in (%*) do (
) )
) )
if not %arg_unknown%==0 ( if not %arg_unknown%==0 (
call :header call :header
call :missing_arg call :missing_arg
goto :eof goto :eof
) )
if %arg_help%==1 ( if %arg_help%==1 (
call :header call :header
call :usage_arg call :usage_arg
goto :eof goto :eof
) )
if %arg_taskadd%==1 ( if %arg_taskadd%==1 (
call :header call :header
echo [+] add autorun of %autoupdate_bat% on startup in the schedule task. echo [+] add autorun of %autoupdate_bat% on startup in the schedule task.
schtasks /create /f /sc ONSTART /tn "RDP Wrapper Autoupdate" /tr "cmd.exe /C \"%~dp0autoupdate.bat\" -log" /ru SYSTEM /delay 0000:10 schtasks /create /f /sc ONSTART /tn "RDP Wrapper Autoupdate" /tr "cmd.exe /C \"%~dp0autoupdate.bat\" -log" /ru SYSTEM /delay 0000:10
powershell "$settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries; Set-ScheduledTask -TaskName 'RDP Wrapper Autoupdate' -Settings $settings" powershell "$settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries; Set-ScheduledTask -TaskName 'RDP Wrapper Autoupdate' -Settings $settings"
goto :eof goto :eof
) )
if %arg_taskremove%==1 ( if %arg_taskremove%==1 (
call :header call :header
echo [-] remove autorun of %autoupdate_bat% on startup in the schedule task^^! echo [-] remove autorun of %autoupdate_bat% on startup in the schedule task^^!
schtasks /delete /f /tn "RDP Wrapper Autoupdate" schtasks /delete /f /tn "RDP Wrapper Autoupdate"
goto :eof goto :eof
@ -791,7 +791,7 @@ exit /b
WScript.Echo oAutoGen.GenerateTermsrvINIEntries(args(0), args(1), args(2), args(3)) WScript.Echo oAutoGen.GenerateTermsrvINIEntries(args(0), args(1), args(2), args(3))
Set oAutoGen = Nothing Set oAutoGen = Nothing
Wscript.Quit Wscript.Quit
Class AUTOGEN Class AUTOGEN
Public Function GenerateTermsrvINIEntries(fileVersion, iniPath, termsrvPath, symbolFile) Public Function GenerateTermsrvINIEntries(fileVersion, iniPath, termsrvPath, symbolFile)
'On Error Resume Next 'On Error Resume Next
Dim architecture: architecture = 0 Dim architecture: architecture = 0
@ -1324,3 +1324,4 @@ exit /b
</script></job> </script></job>
</package> </package>

Loading…
Cancel
Save