show code js

顯示具有 windows 標籤的文章。 顯示所有文章
顯示具有 windows 標籤的文章。 顯示所有文章

2023年2月9日 星期四

BCD rebuild 0xc000000e

  • use rufus create usb win os
  • use this usb to start and into fix your computer
  • open cmd mode, start fix
    • diskpart
      • list disk
      • select disk 0 (target disk)
      • list volume
      • select volume 4 (target area, FAT32)
      • assign letter Z
      • exit
    • rd /s /q “Z:\EFI\”
    • bootrec /fixboot 
    • bcdboot “C:\Windows” /l zh-tw /s Z: /f UEFI
    • reboot and start your os on hdd
  • if happen access is denied, keep in cmd mode
    • format Z: /FS:FAT32 /y
    • bcdboot "C:\Windows" /s Z: /f UEFI /l zh-tw
    • reboot and start your os on hdd

link: https://thinker-evans.blogspot.com/2020/02/windows-10-uefi-bootloaderwindows-10.html

2022年3月3日 星期四

cmd check code in file

 @echo off

@cls


for /F "delims= tokens=1" %%i in (C:\code.txt) do (


IF /I %%i==your_code ( GOTO ISOK ) ELSE ( GOTO ISNG )

)


@echo Check Error


GOTO ISEND


:ISOK


@echo Check Pass


GOTO ISEND


:ISNG


@echo Check Fail


:ISEND


@echo Done

windows event clear

 @wevtutil cl Security

@wevtutil cl Application

@wevtutil cl Setup

@wevtutil cl System

@wevtutil cl "DFS Replication"

@wevtutil cl "Windows PowerShell"