windows-nt/Source/XPSP1/NT/termsrv/admtools/appcmpt/chs/setpaths.cmd

61 lines
2.3 KiB
Batchfile
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
REM ###############################################################
REM # #
REM # SetPaths #
REM # #
REM # <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>·<EFBFBD><C2B7><EFBFBD><EFBFBD>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>У<EFBFBD> #
REM # <20><><EFBFBD><EFBFBD><EFBFBD>ű<EFBFBD><C5B1><EFBFBD><EFBFBD><EFBFBD>Ӳ<EFBFBD><D3B2><EFBFBD><EFBFBD>ϵͳ·<CDB3><C2B7><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD> #
REM # <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ű<EFBFBD><C5B1><EFBFBD><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> #
REM # <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD> #
REM # #
REM # <20><><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD>:<3A><><EFBFBD><EFBFBD> COMMON_STARTUP #
REM # <20><><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD>:<3A><><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC><EFBFBD>˵<EFBFBD> COMMON_START_MENU #
REM # <20><><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD>:<3A><><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC><EFBFBD>˵<EFBFBD>\<5C><><EFBFBD><EFBFBD> COMMON_PROGRAMS #
REM # <20><>ǰ<EFBFBD>û<EFBFBD>:<3A><><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC><EFBFBD>˵<EFBFBD> USER_START_MENU #
REM # <20><>ǰ<EFBFBD>û<EFBFBD>:<3A><><EFBFBD><EFBFBD> USER_STARTUP #
REM # <20><>ǰ<EFBFBD>û<EFBFBD>:<3A><><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC><EFBFBD>˵<EFBFBD>\<5C><><EFBFBD><EFBFBD> USER_PROGRAMS #
REM # <20><>ǰ<EFBFBD>û<EFBFBD>:<3A>ҵ<EFBFBD><D2B5>ĵ<EFBFBD> MY_DOCUMENTS #
REM # <20><>ǰ<EFBFBD>û<EFBFBD><><C4A3> TEMPLATES #
REM # <20><>ǰ<EFBFBD>û<EFBFBD><>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> APP_DATA
REM # #
REM ###############################################################
REM ###############################################################
REM # <20><> GETPATHS ѡ<><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>л<EFBFBD><D0BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
REM ###############################################################
"%systemroot%\Application Compatibility Scripts\ACRegL.exe" "%TEMP%\getpaths.cmd" COMMON_PATHS "HKLM\Software" "" GETPATHS
If Not ErrorLevel 1 Goto Cont1
Echo.
Echo <20>޷<EFBFBD><DEB7><EFBFBD><EFBFBD><EFBFBD>ͨ<EFBFBD>û<EFBFBD><C3BB>û<EFBFBD>·<EFBFBD><C2B7><EFBFBD><EFBFBD>
Echo.
Goto Failure
:Cont1
Call "%TEMP%\getpaths.cmd"
Del "%TEMP%\getpaths.cmd" >Nul: 2>&1
REM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5>ȷ<EFBFBD><C8B7><EFBFBD><EFBFBD>˵<EFBFBD><CBB5>ִ<EFBFBD>гɹ<D0B3>
REM COMMON_START_MENU = %COMMON_START_MENU%
REM COMMON_STARTUP = %COMMON_STARTUP%
REM COMMON_PROGRAMS = %COMMON_PROGRAMS%
REM USER_START_MENU = %USER_START_MENU%
REM USER_STARTUP = %USER_STARTUP%
REM USER_PROGRAMS = %USER_PROGRAMS%
REM MY_DOCUMENTS = %MY_DOCUMENTS%
REM TEMPLATES = %TEMPLATES%
REM APP_DATA= %APP_DATA%
Set _SetPaths=SUCCEED
Goto Done
:Failure
Echo.
Echo <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>ͨ<EFBFBD>û<EFBFBD><C3BB>û<EFBFBD>·<EFBFBD><C2B7><EFBFBD>IJ<EFBFBD>ѯû<D1AF>гɹ<D0B3>!
Echo <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ű<EFBFBD><C5B1><EFBFBD>Ӧ<EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޷<EFBFBD><DEB7><EFBFBD>װ<EFBFBD>ɹ<EFBFBD><C9B9><EFBFBD>
Echo <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E2A3AC><EFBFBD><EFBFBD>һ<EFBFBD>Ρ<EFBFBD>
Echo.
Set _SetPaths=FAIL
REM <20><>ͣ
Goto Done
:Done