Привет, я хочу запустить приложения Windows 10 на панели задач.Но когда я запускаю сценарий, который оценивает мой компьютер, я ничего не получаю из сценария командной строки.
Сценарий
C:\Temp>REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFl
ags\UpgradeExperienceIndicators" /v UpgEx | findstr UpgEx if "0" == "0" GOTO
RunGWX reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlag
s\Appraiser" /v UtcOnetimeSend /t REG_DWORD /d 1 /f schtasks /run /TN "\Microso
ft\Windows\Application Experience\Microsoft Compatibility Appraiser" :CompatChe
ckRunning schtasks /query /TN "\Microsoft\Windows\Application Experience\Micros
oft Compatibility Appraiser" schtasks /query /TN "\Microsoft\Windows\Applicatio
n Experience\Microsoft Compatibility Appraiser" | findstr Ready if NOT "0" ==
"0" ping localhost 1>nul & goto :CompatCheckRunning :RunGWX schtasks /run
/TN "\Microsoft\Windows\Setup\gwx\refreshgwxconfig"
Мой результат
FINDSTR: Cannot open if
FINDSTR: Cannot open NOT
FINDSTR: Cannot open 0
FINDSTR: Cannot open ==
FINDSTR: Cannot open if
FINDSTR: Cannot open 0
FINDSTR: Cannot open 0
FINDSTR: Cannot open ping
FINDSTR: Cannot open ==
FINDSTR: Cannot open localhost
FINDSTR: Cannot open 0
FINDSTR: Cannot open GOTO
FINDSTR: Cannot open RunGWX
FINDSTR: Cannot open reg
FINDSTR: Cannot open add
FINDSTR: Cannot open HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompat
Flags\Appraiser
FINDSTR: Cannot open /v
FINDSTR: Cannot open UtcOnetimeSend
FINDSTR: Cannot open /t
FINDSTR: Cannot open REG_DWORD
FINDSTR: Cannot open /d
FINDSTR: Cannot open 1
FINDSTR: Cannot open /f
FINDSTR: Cannot open schtasks
FINDSTR: Cannot open /run
FINDSTR: Cannot open /TN
FINDSTR: Cannot open \Microsoft\Windows\Application Experience\Microsoft Compati
bility Appraiser
FINDSTR: Cannot open :CompatCheckRunning
FINDSTR: Cannot open schtasks
FINDSTR: Cannot open /query
FINDSTR: Cannot open /TN
FINDSTR: Cannot open \Microsoft\Windows\Application Experience\Microsoft Compati
bility Appraiser
FINDSTR: Cannot open schtasks
FINDSTR: Cannot open /query
FINDSTR: Cannot open /TN
FINDSTR: Cannot open \Microsoft\Windows\Application Experience\Microsoft Compati
bility Appraiser
The system cannot find the batch label specified - CompatCheckRunning