QC

Tìm và mở ứng dụng visual studio code

 Bước 1 :

Tạo 1 file txt sau đó đổi tên file thành openvscode.bat rồi dán đoạn code sau :


@echo off

echo Đang kiểm tra ứng dụng Visual Studio Code...


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

powershell -Command ^

" $paths = @(^

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

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

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

    ); ^

  $found = $false; ^

  foreach ($path in $paths) { ^

    if (Test-Path $path) { ^

      Write-Host 'Tìm thấy Visual Studio Code trong' $path; ^

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

      $found = $true; ^

      break; ^

    } ^

  }; ^

  if (-not $found) { ^

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

  }"

pause

Thành quả


Với lệnh này bạn có thể  viết 1 chương trình đính kèm vào và chạy ngầm trên máy người khác mà họ không hay biết ............














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...