Computer >> Hướng Dẫn Máy Tính >  >> Hệ Thống >> Windows

Cách mở ứng dụng Microsoft Store từ Command Prompt

Hướng dẫn mở ứng dụng Microsoft Store từ Command Prompt. Bạn có thể mở bất kỳ ứng dụng Store nào qua command line nếu có:

  1. Package Family Name của App.
  2. App ID.

Mỗi ứng dụng Store có Package Family Name và App ID duy nhất. Xem App ID bằng cách mở file XML trong thư mục cài đặt app.

Cách mở ứng dụng Microsoft Store từ Command Prompt

Cách mở ứng dụng Microsoft Store từ Command Prompt

Các bước:

  1. Mở hộp thoại Run.
  2. Gõ lệnh mô tả dưới đây > Enter.
  3. Tạo shortcut desktop của app muốn mở từ command line.
  4. Chuột phải shortcut > Properties. Ghi nhớ Target Type.
  5. Mở PowerShell, gõ lệnh sau > Enter. Sẽ tạo file text.
  6. Mở cửa sổ User Profile trong File Explorer.
  7. Mở file text vừa tạo.
  8. Tìm PackageFamilyName trong file đó.
  9. Copy đường dẫn cài đặt app.
  10. Mở file AppxManifest.xml.
  11. Ghi nhớ App ID.
  12. Mở Command Prompt, chạy lệnh mô tả sau > Enter.

Chi tiết:

Mở Run, gõ lệnh sau > Enter:

shell:AppsFolder

Chuột phải app Store muốn mở > Create shortcut. Cảnh báo > Yes.

Đến Desktop, chuột phải shortcut vừa tạo > Properties.

Tab Shortcut, ghi nhớ Target Type.

Cách mở ứng dụng Microsoft Store từ Command Prompt

Mở Windows PowerShell từ Start. Copy lệnh sau, paste > Enter. Tạo file text:

get-appxpackage > 123.txt

(123 là tên file text, đặt tên tùy ý).

Mở Run, gõ %UserProfile% > Enter. Mở User profile trong File Explorer.

Tìm file text vừa tạo, double-click mở.

Cách mở ứng dụng Microsoft Store từ Command Prompt

Trong file text, tìm PackageFamilyName của app. Ctrl+F, nhập Target Type (bước 4) > Find Next. Không cần gõ đầy đủ, chỉ vài ký tự đầu.

Cách mở ứng dụng Microsoft Store từ Command Prompt

Copy installation location/path của app (cùng file text).

Paste đường dẫn vào thanh địa chỉ File Explorer > Enter. Tìm file XML tên AppxManifest. Double-click mở.

Cách mở ứng dụng Microsoft Store từ Command PromptMặc định XML mở trong Internet Explorer. Tìm App ID: Ctrl+F, nhập "Executable=" > Enter. App ID ở cùng dòng.

Cách mở ứng dụng Microsoft Store từ Command Prompt

Mở Command Prompt, gõ lệnh:

explorer.exe shell:appsFolder\<PackageFamilyName>!<App ID>

Thay PackageFamilyName và App ID đúng chỗ.

Ví dụ: PackageFamilyName = 48241InfinityBenchLTD.InfinityConverter_9hsfe6f61q78a (bước 8), App ID = App (bước 11). Lệnh:

explorer.exe shell:appsFolder\48241InfinityBenchLTD.InfinityConverter_9hsfe6f61q78a!App

Cách mở ứng dụng Microsoft Store từ Command Prompt

Nhấn Enter, Windows mở app.

Liên quan: Cách chặn cài đặt ứng dụng từ xa trên Windows 10.

Cách mở ứng dụng Microsoft Store từ Command Prompt