so yea... i plan to remove the MoTD feature. it tends to freeze up and that can get quite annoying. im also changing a url soon
--------------------- MERGED ---------------------------
dysfunctional as fuck (or rather it was slower than i would have ever expected) takes 15 secs just to load a message from a text file
:
--------------------- MERGED ---------------------------
too make up for it i may give y'all "lightshot portable" also cause im bored.
--------------------- MERGED ---------------------------
lightshot_portable_poc.bat:
Code:
@echo off
cls
Color 0A
if not exist .\bin\ mkdir .\bin\
if not exist .\data\AppData\Roaming\ mkdir .\data\AppData\Roaming\
if not exist .\extra\ mkdir .\extra\
echo "l" to launch lightshot
echo "d" to download lightshot (first time)
echo "e" to extract lightshot
echo "u" to update lightshot
set /p goto="choice: "
goto %goto%
:d
cls
echo ' Set your settings > .\bin\downloadwget.vbs
echo strFileURL = "https://eternallybored.org/misc/wget/current/wget.exe" >> .\bin\downloadwget.vbs
echo strHDLocation = "wget.exe" >> .\bin\downloadwget.vbs
echo. >> .\bin\downloadwget.vbs
echo ' Fetch the file >> .\bin\downloadwget.vbs
echo Set objXMLHTTP = CreateObject("MSXML2.XMLHTTP") >> .\bin\downloadwget.vbs
echo. >> .\bin\downloadwget.vbs
echo objXMLHTTP.open "GET", strFileURL, false >> .\bin\downloadwget.vbs
echo objXMLHTTP.send() >> .\bin\downloadwget.vbs
echo. >> .\bin\downloadwget.vbs
echo If objXMLHTTP.Status = 200 Then >> .\bin\downloadwget.vbs
echo Set objADOStream = CreateObject("ADODB.Stream") >> .\bin\downloadwget.vbs
echo objADOStream.Open >> .\bin\downloadwget.vbs
echo objADOStream.Type = 1 'adTypeBinary >> .\bin\downloadwget.vbs
echo. >> .\bin\downloadwget.vbs
echo objADOStream.Write objXMLHTTP.ResponseBody >> .\bin\downloadwget.vbs
echo objADOStream.Position = 0'Set the stream position to the start >> .\bin\downloadwget.vbs
echo. >> .\bin\downloadwget.vbs
echo Set objFSO = Createobject("Scripting.FileSystemObject") >> .\bin\downloadwget.vbs
echo If objFSO.Fileexists(strHDLocation) Then objFSO.DeleteFile strHDLocation >> .\bin\downloadwget.vbs
echo Set objFSO = Nothing >> .\bin\downloadwget.vbs
echo. >> .\bin\downloadwget.vbs
echo objADOStream.SaveToFile strHDLocation >> .\bin\downloadwget.vbs
echo objADOStream.Close >> .\bin\downloadwget.vbs
echo Set objADOStream = Nothing >> .\bin\downloadwget.vbs
echo End if >> .\bin\downloadwget.vbs
echo. >> .\bin\downloadwget.vbs
echo Set objXMLHTTP = Nothing >> .\bin\downloadwget.vbs
cscript.exe .\bin\downloadwget.vbs
move wget.exe .\bin\wget.exe
.\bin\wget.exe http://downloads.sourceforge.net/portableapps/7-ZipPortable_16.04.paf.exe
move 7-ZipPortable_16.04.paf.exe .\extra\7-ZipPortable_16.04.paf.exe
.\extra\7-ZipPortable_16.04.paf.exe /destination="%CD%\bin\"
:u
.\bin\wget.exe https://sourceforge.net/projects/innounp/files/latest/download?source=typ_redirect
rename "download@source=typ_redirect" innounp.rar
move innounp.rar .\extra\innounp.rar
:: is not required to be set. will be set in release
.\bin\7-ZipPortable\App\7-Zip%arch%\7z.exe x .\extra\innounp.rar * -o.\bin\innounp\
.\bin\wget.exe https://app.prntscr.com/build/setup-lightshot.exe
move setup-lightshot.exe .\extra\setup-lightshot.exe
:e
.\bin\innounp\innounp.exe -q -x -y -dtemp .\extra\setup-lightshot.exe
rmdir /s /q .\bin\lightshot\
xcopy .\temp\{app}\* .\bin\lightshot\ /e /i /y
rmdir /s /q .\temp\
:l
set "appdata=%CD%\data\appdata\roaming\"
start .\bin\lightshot\Lightshot.exe
exit
--------------------- MERGED ---------------------------
also my main way of finding out things:
1. <program>.exe /?
2. open with 7zip
3. analyze with uniextract to see what kinda archive it is and get necessary extractors
anyone could do it really :^)
--------------------- MERGED ---------------------------
cemu, obs, and kodi have 1. new url's and 2. no motd so faster loading again. update if you want