Add script

This commit is contained in:
daleclack 2024-05-02 20:46:03 +08:00
parent 5bc6d86424
commit df3d78bcb2
2 changed files with 14 additions and 8 deletions

View File

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>800</width> <width>640</width>
<height>600</height> <height>360</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -18,14 +18,14 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>9</x> <x>9</x>
<y>-1</y> <y>9</y>
<width>791</width> <width>621</width>
<height>431</height> <height>291</height>
</rect> </rect>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<item row="0" column="0"> <item row="0" column="0">
<widget class="QListWidget" name="listWidget"/> <widget class="QListView" name="listView"/>
</item> </item>
</layout> </layout>
</widget> </widget>
@ -35,8 +35,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>800</width> <width>640</width>
<height>30</height> <height>23</height>
</rect> </rect>
</property> </property>
</widget> </widget>

6
tools/hyper-v.cmd Normal file
View File

@ -0,0 +1,6 @@
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del hyper-v.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
pause