QC

Mở zalo dùng batch

 Bước 1 : Tạo file Open_Zalo.bat như sau

 hoặc mở txt rồi đổi tên và đuôi file như trên.

Đoạn code như sau :

@echo off

echo Đang kiểm tra ứng dụng Zalo...


REM Kiểm tra Zalo trong Program Files và AppData thông qua PowerShell

powershell -Command ^

" $paths = @(^

    [System.IO.Path]::Combine($env:ProgramFiles, 'Zalo'), ^

    [System.IO.Path]::Combine($env:ProgramFiles, 'Zalo'), ^

    [System.IO.Path]::Combine($env:ProgramFiles, 'Zalo'), ^

    [System.IO.Path]::Combine($env:LOCALAPPDATA, 'Programs\Zalo')^

    ); ^

  $found = $false; ^

  foreach ($path in $paths) { ^

    if (Test-Path $path) { ^

      Write-Host 'Tìm thấy Zalo trong' $path; ^

      Start-Process -FilePath (Join-Path -Path $path -ChildPath 'Zalo.exe'); ^

      $found = $true; ^

      break; ^

    } ^

  }; ^

  if (-not $found) { ^

    Write-Host 'Không tìm thấy Zalo trên máy tính này.'; ^

  }"


pause

Nhân vào .bat file và zalo bật lên.










Easy remote control

Remotely control an LED with ease. Devices and components Arduino Nano 33 BLE with headers Box 525 Resistors precision 1% - 17 values Breadb...