This commit is contained in:
Michael H.G. Schmidt 2024-12-02 12:16:45 +01:00
parent b8e94d7a1e
commit b7cf3825b5
2 changed files with 7 additions and 13 deletions

View File

@ -297,6 +297,9 @@ rem ... remove stupid public folders
call cleanup-publicdir.cmd call cleanup-publicdir.cmd
echo. echo.
rem ... remove the drive letter of partition 2 on boot drive
call remove-drive-letter.cmd
echo add read access rights to all users on public icons ... echo add read access rights to all users on public icons ...
icacls %PUBLIC%\Desktop\*.lnk /grant Users:R icacls %PUBLIC%\Desktop\*.lnk /grant Users:R
echo. echo.

View File

@ -1,16 +1,10 @@
@echo off @echo off
set T=c:\TEMP set T=%SystemDrive%\TEMP
set DPARTSCRIPT=%T%\diskpart.txt set DPARTSCRIPT=%T%\diskpart.txt
rem create temp directory ... echo ####### %0 #######
mkdir %T% 1>nul 2>nul
rem ===== echo Removing drive letter ...
rem MAIN
rem =====
echo Removing Drive Letter ...
echo.
> %DPARTSCRIPT% ( > %DPARTSCRIPT% (
@echo.select disk 0 @echo.select disk 0
@ -31,8 +25,5 @@ echo Drive letter removed.
rem cleanup ... rem cleanup ...
del /F %DPARTSCRIPT% 1>nul 2>nul del /F %DPARTSCRIPT% 1>nul 2>nul
echo. echo ####### %0 #######
echo ======
echo READY.
echo ======