forked from Samuel-VandePut/LASoT-Experiment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuninstall.bat
47 lines (40 loc) · 1.5 KB
/
uninstall.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
cd /d %~dp0
setlocal
rem mkdir %cd%\2048\target\rapports
rem xcopy /s %cd%\2048\target\pit-reports %cd%\2048\target\rapports
rem xcopy /s %cd%\2048\target\reneri %cd%\2048\target\rapports
set TEMPDIR=%TEMP%\ZIP
set FILETOZIP=%cd%\2048\target\pit-reports
set OUTPUTZIP=rapports.zip
:: preparing VBS script
echo Set objArgs = WScript.Arguments > _zipIt.vbs
echo InputFolder = objArgs(0) >> _zipIt.vbs
echo ZipFile = objArgs(1) >> _zipIt.vbs
echo Set fso = WScript.CreateObject("Scripting.FileSystemObject") >> _zipIt.vbs
echo Set objZipFile = fso.CreateTextFile(ZipFile, True) >> _zipIt.vbs
echo objZipFile.Write "PK" ^& Chr(5) ^& Chr(6) ^& String(18, vbNullChar) >> _zipIt.vbs
echo objZipFile.Close >> _zipIt.vbs
echo Set objShell = WScript.CreateObject("Shell.Application") >> _zipIt.vbs
echo Set source = objShell.NameSpace(InputFolder).Items >> _zipIt.vbs
echo Set objZip = objShell.NameSpace(fso.GetAbsolutePathName(ZipFile)) >> _zipIt.vbs
echo if not (objZip is nothing) then >> _zipIt.vbs
echo objZip.CopyHere(source) >> _zipIt.vbs
echo wScript.Sleep 12000 >> _zipIt.vbs
echo end if >> _zipIt.vbs
@ECHO Zipping, please wait...
mkdir %TEMPDIR%
xcopy /y /s %FILETOZIP% %TEMPDIR%
WScript _zipIt.vbs %TEMPDIR% %OUTPUTZIP%
del _zipIt.vbs
rmdir /s /q %TEMPDIR%
@ECHO ZIP Completed.
if exist javahome.txt (
set /p javahome=<javahome.txt
setx JAVA_HOME "%javahome%" /m
)
if exist oldpath.txt (
set /p oldpath=<oldpath.txt
setx PATH "%oldpath%" /m
)
code --uninstall-extension undefined_publisher.lasot
pause