Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e2f001baf7 | ||
|
|
c65a5aa021 | ||
|
|
4d9e70e599 | ||
|
|
ca82bae016 | ||
|
|
c424a400f6 | ||
|
|
c972606014 | ||
|
|
b80842a77c | ||
|
|
b4bc97eb97 | ||
|
|
b9cedcc160 | ||
|
|
c98dd4ded9 | ||
|
|
6df370ec68 | ||
|
|
a587db3774 | ||
|
|
906170f4eb | ||
|
|
dfac11c964 | ||
|
|
a592a64058 | ||
|
|
a941710b29 | ||
|
|
bf10498fc0 | ||
|
|
612f191ce7 | ||
|
|
e084a6d636 | ||
|
|
25e6064d38 | ||
|
|
0ac6e067ee | ||
|
|
873f1e8fea | ||
|
|
43f94f1b65 | ||
|
|
bfc1b8c219 | ||
|
|
4c1be876f7 | ||
|
|
fa2bc278ce | ||
|
|
1bd91115d8 | ||
|
|
d9af1c5fcb | ||
|
|
dec3efaf68 | ||
|
|
1732f9371c | ||
|
|
ee90b5b746 | ||
|
|
200645e623 | ||
|
|
52aad7d7ff | ||
|
|
279aa3a24c | ||
|
|
de3ed23687 | ||
|
|
68e62f3f22 |
No files matched your search
@@ -15,7 +15,7 @@ jobs:
|
||||
# WPF (net10.0-windows) only builds on Windows.
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- uses: actions/setup-dotnet@v5
|
||||
with:
|
||||
|
||||
@@ -24,7 +24,7 @@ jobs:
|
||||
runs-on: windows-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- uses: actions/setup-dotnet@v5
|
||||
with:
|
||||
|
||||
@@ -24,7 +24,7 @@ jobs:
|
||||
REPO_URL: https://github.com/poli0981/CommandForge
|
||||
VT_API_KEY: ${{ secrets.VT_API_KEY }}
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- uses: actions/setup-dotnet@v5
|
||||
with:
|
||||
|
||||
+165
@@ -0,0 +1,165 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to **CommandForge** are documented here.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [1.5.1] — 2026-07-09
|
||||
|
||||
### Fixed
|
||||
- **Single instance:** launching the app while it is already running no longer opens a second
|
||||
window. Later launches bring the existing window to the foreground (restoring it if minimized)
|
||||
and then exit.
|
||||
|
||||
## [1.5.0] — 2026-07-08
|
||||
|
||||
### Added
|
||||
- **40 new commands** (catalog grew from 201 to 241), focused on rarely-used and Windows-version-specific
|
||||
features, gated by OS build so Windows 10-only commands are hidden on Windows 11 and vice-versa:
|
||||
- **Windows 11-only tweaks & pages:** hide the Widgets and Copilot taskbar buttons; enable taskbar
|
||||
"End task"; "Never combine + labels" taskbar; "More pins" Start layout; and open Dynamic Lighting,
|
||||
Presence sensing and (24H2) Energy Saver settings.
|
||||
- **Windows 10-only tweaks:** turn off News and Interests; hide the Meet Now, People and Cortana
|
||||
buttons; and turn off all Start menu live tiles.
|
||||
- **Diagnostics & system info:** current-user rights & groups, Start menu app IDs, Boot Configuration
|
||||
(BCD), devices reporting problems, all event-log channels and Entra/AD device-join state.
|
||||
- **Security, storage, power, network & developer:** local Administrators members, trusted root
|
||||
certificates, all firewall rules and Recall feature status (24H2); SMART reliability counters,
|
||||
volume dirty bit and sector-size info; active wake timers and reduced-size hibernation; Wi-Fi radio
|
||||
capabilities, global TCP settings and a Wi-Fi history report; and Dev Drive status, Sudo for Windows
|
||||
status, the Hyper-V VM list and the boot hypervisor launch type.
|
||||
|
||||
### Fixed
|
||||
- **TPM Status** and **Defender Exclusions** now run with administrator elevation, so they return
|
||||
results instead of appearing blank (both underlying queries require an elevated session).
|
||||
|
||||
## [1.4.0] — 2026-06-29
|
||||
|
||||
### Added
|
||||
- **60 new commands and a new "Services & Startup" category** (catalog grew from 141 to 201):
|
||||
- **Services & Startup** (new 12th category): restart the Print Spooler, Windows Audio, Windows
|
||||
Update and BITS services; list running and automatic services; and open the Startup apps settings
|
||||
and the Startup folder.
|
||||
- **System info & storage:** battery health, network-adapter speed, disk health and SMART status,
|
||||
page-file usage, local user accounts, time zone and Windows install date; plus a drive-usage
|
||||
summary, largest temp files, partition list, fragmentation analysis, Disk Cleanup configuration
|
||||
and a DiskPart disk/volume listing.
|
||||
- **Network & diagnostics:** a public DNS lookup test, active TCP connections, firewall profiles,
|
||||
shared folders, the hosts file and Network Connections; plus recent boot/shutdown and
|
||||
unexpected-shutdown events, recent system errors, Print Management and Certificate Manager.
|
||||
- **Cleanup, power & maintenance:** clear the icon cache, recent items and event logs; the Power
|
||||
Saver plan and hibernate-now; and an online disk scan and a read-only system-file verification.
|
||||
- **Security, updates & tweaks:** Defender threat history and exclusions, BitLocker volume details,
|
||||
reset firewall to defaults, remove dynamic signatures and open Windows Security; update history,
|
||||
Windows Update settings, App Installer self-update, package export, third-party drivers and
|
||||
troubleshooters; and hide/show the Windows 11 taskbar search plus transparency, Snap-assist and
|
||||
Telnet-client toggles.
|
||||
|
||||
## [1.3.0] — 2026-06-26
|
||||
|
||||
### Added
|
||||
- **25 new commands and a new "Storage" category** (catalog grew from 116 to 141): optimize /
|
||||
defragment C:, Disk Management, list volumes & free space, and open Storage settings; TPM status,
|
||||
Secure Boot state and a computer & OS summary; network adapters, DNS servers and an internet
|
||||
connectivity test; startup programs, Driver Verifier, Performance Monitor and a system health
|
||||
report; clear crash dumps, Windows Error Reporting data and the DNS + ARP caches; lid-close and
|
||||
monitor-timeout power toggles; and NumLock-at-startup and verbose sign-in toggles.
|
||||
- **Two new UI languages — Simplified Chinese (简体中文) and Spanish (Español)** — joining English,
|
||||
Vietnamese and Japanese. Selectable in Settings and the View menu and switching live without a
|
||||
restart.
|
||||
|
||||
### Changed
|
||||
- **Fixed main window size.** The main window is now a fixed 1100×720 and can no longer be resized
|
||||
or maximized; the F11 full-screen shortcut has been removed.
|
||||
|
||||
## [1.2.0] — 2026-06-21
|
||||
|
||||
### Added
|
||||
- **38 new commands** across all ten categories (catalog grew from 78 to 116): installed
|
||||
updates / drivers / BIOS / programs / displays; active connections, ARP cache, routing table,
|
||||
Wi-Fi profiles and WinHTTP proxy; dark/light mode and Windows 11 taskbar-alignment and
|
||||
clock-seconds tweaks; thumbnail / font / Prefetch cleanup; the Balanced power plan, power
|
||||
requests and a Fast Startup toggle; Task Manager, Device Manager, Services and Group Policy
|
||||
result; winget source list and Microsoft Store reset; Defender status and full scan; firewall
|
||||
on/off; WSL shutdown, Windows Sandbox off and a long-paths toggle.
|
||||
- **Japanese (日本語) language.** A full Japanese translation joins English and Vietnamese,
|
||||
selectable in Settings and the View menu and switching live without a restart.
|
||||
|
||||
### Changed
|
||||
- **Version-aware command list.** Commands that only apply to a specific Windows version (such as
|
||||
the Windows 11 taskbar and clock tweaks) are now hidden automatically when they do not apply to
|
||||
your build of Windows.
|
||||
|
||||
## [1.1.1] — 2026-06-19
|
||||
|
||||
### Fixed
|
||||
- **User commands hanging on `cmd`.** A user-defined command using `cmd` (e.g.
|
||||
`ping google.com`) could stay "running" forever without responding. The process runner now
|
||||
redirects and immediately closes the child's standard input, so an interactive `cmd` receives
|
||||
EOF and exits instead of blocking. User commands that use `cmd` also get `/c` prepended
|
||||
automatically (`cmd` + `ping google.com` runs as `cmd /c ping google.com`), and the run
|
||||
confirmation shows the exact command line. PowerShell and other executables are unchanged.
|
||||
- **Recipes — duplicate steps.** A command already in a recipe can no longer be added again, so a
|
||||
recipe never runs the same command multiple times.
|
||||
- **Sidebar.** Hid the vertical scrollbar on the command-groups list (still scrollable by wheel).
|
||||
|
||||
## [1.1.0] — 2026-06-19
|
||||
|
||||
### Added
|
||||
- **Package & assembly metadata.** Product, author, company, copyright and repository information
|
||||
are embedded in the assemblies (shown in About and file properties) and in the Velopack
|
||||
installer.
|
||||
- **Execution history.** A new History screen lists finished runs (newest first) with time, status
|
||||
and duration, plus **Run again** and **Clear history**. Stored locally; no telemetry.
|
||||
- **Import / export & profiles.** Export your appearance, behavior and favorites to a `.json` file
|
||||
and import them on another machine. Save the current configuration as a named **profile**
|
||||
(e.g. "Gaming PC", "Office") and switch between them.
|
||||
- **Recipes (command chains).** Build a named sequence of vetted catalog commands and run them with
|
||||
a single aggregated confirmation, **one UAC prompt** for an all-admin chain, and **stop-on-error**
|
||||
(and stop-on-reboot-required) for safety.
|
||||
- **User-defined commands ("My commands").** Add your own commands. They are kept entirely separate
|
||||
from the vetted catalog and **always run without administrator rights**.
|
||||
- **Registry before/after & undo.** For applicable tweaks, the affected registry values are read
|
||||
before and after the run and a diff is shown in the console (read-only). History entries for
|
||||
reversible commands offer **Undo**, which runs the command's vetted revert command — no arbitrary
|
||||
registry writes.
|
||||
- **Home maintenance suggestions** (e.g. low disk space → Disk Cleanup; long uptime → restart) and
|
||||
**local natural-language search** (everyday phrases such as "clean disk" suggest a catalog
|
||||
keyword). Both are 100% local — no cloud, no LLM.
|
||||
|
||||
## [1.0.0] — 2026-06-18
|
||||
|
||||
Initial public release.
|
||||
|
||||
### Added
|
||||
- **Command catalog.** An embedded, vetted, read-only catalog of Windows commands organized by
|
||||
category, with fuzzy search and a Command Palette (Ctrl+K) and an exact command-line preview.
|
||||
- **Execution engine.** Real-time console output streamed off the UI thread, cancellation, and
|
||||
restart-required detection (exit code `3010`).
|
||||
- **Admin / UAC.** Elevated commands run through a separate `CommandForge.Elevator` broker over a
|
||||
named pipe (one UAC prompt per session); the main UI stays non-elevated.
|
||||
- **Safety.** Confirmation dialogs for Caution/Dangerous commands (type-to-confirm for Dangerous,
|
||||
which cannot be disabled), optional System Restore Point, and revert for reversible tweaks.
|
||||
- **Self-update** via Velopack (per-user, delta updates) from GitHub Releases.
|
||||
- **Localization & theming.** Full English/Vietnamese UI, light/dark/system themes, and font
|
||||
scaling.
|
||||
- **Home dashboard** with recent commands, favorites and a read-only system-status widget.
|
||||
- **Diagnostics.** Settings screen, Log Viewer (filter/export), Debug panel, a global crash handler
|
||||
and a "Report a bug" flow.
|
||||
- **Accessibility** (automation names, keyboard navigation, AA contrast) and a first-run Legal Gate
|
||||
(EULA / GPLv3 / Disclaimer / Privacy).
|
||||
- **CI/CD.** Build, test and CodeQL on every change; tag-triggered releases publish SHA-256
|
||||
checksums (and an optional VirusTotal scan). No telemetry — the only network use is checking
|
||||
GitHub for updates.
|
||||
|
||||
[Unreleased]: https://github.com/poli0981/CommandForge/compare/v1.5.0...HEAD
|
||||
[1.5.0]: https://github.com/poli0981/CommandForge/compare/v1.4.0...v1.5.0
|
||||
[1.4.0]: https://github.com/poli0981/CommandForge/compare/v1.3.0...v1.4.0
|
||||
[1.3.0]: https://github.com/poli0981/CommandForge/compare/v1.2.0...v1.3.0
|
||||
[1.2.0]: https://github.com/poli0981/CommandForge/compare/v1.1.1...v1.2.0
|
||||
[1.1.1]: https://github.com/poli0981/CommandForge/compare/v1.1.0...v1.1.1
|
||||
[1.1.0]: https://github.com/poli0981/CommandForge/compare/v1.0.0...v1.1.0
|
||||
[1.0.0]: https://github.com/poli0981/CommandForge/releases/tag/v1.0.0
|
||||
@@ -78,6 +78,7 @@ Velopack update mechanism works.
|
||||
|
||||
| Topic | File |
|
||||
|---|---|
|
||||
| Release history | [CHANGELOG.md](CHANGELOG.md) |
|
||||
| Build, test, publish, release | [BUILD.md](BUILD.md) · [RELEASING.md](RELEASING.md) |
|
||||
| Update mechanism (Velopack) | [UPDATES.md](UPDATES.md) |
|
||||
| Contributing & contribution rules | [CONTRIBUTING.md](.github/CONTRIBUTING.md) |
|
||||
|
||||
@@ -17,7 +17,7 @@ public interface ISettingsService
|
||||
/// <summary>The UI color theme (default <see cref="AppTheme.System"/>).</summary>
|
||||
public AppTheme Theme { get; set; }
|
||||
|
||||
/// <summary>UI language: <c>""</c> = follow OS, otherwise a culture code such as <c>"en"</c> or <c>"vi"</c>.</summary>
|
||||
/// <summary>UI language: <c>""</c> = follow OS, otherwise a culture code such as <c>"en"</c>, <c>"vi"</c>, <c>"ja"</c>, <c>"zh-Hans"</c> or <c>"es"</c>.</summary>
|
||||
public string Language { get; set; }
|
||||
|
||||
/// <summary>The overall UI font size (default <see cref="FontScale.Medium"/>).</summary>
|
||||
@@ -51,10 +51,16 @@ public interface ISettingsService
|
||||
/// <summary>Recently-run command ids, most-recent first (default empty). Capped by the caller.</summary>
|
||||
public IReadOnlyList<string> RecentCommandIds { get; set; }
|
||||
|
||||
/// <summary>Last main-window width in device-independent pixels, or <see langword="null"/> if never saved.</summary>
|
||||
/// <summary>
|
||||
/// Retained for config back-compat only. The main window is now a fixed, non-resizable size, so this
|
||||
/// value is no longer read or written; it round-trips untouched for users upgrading from older versions.
|
||||
/// </summary>
|
||||
public double? WindowWidth { get; set; }
|
||||
|
||||
/// <summary>Last main-window height in device-independent pixels, or <see langword="null"/> if never saved.</summary>
|
||||
/// <summary>
|
||||
/// Retained for config back-compat only. The main window is now a fixed, non-resizable size, so this
|
||||
/// value is no longer read or written; it round-trips untouched for users upgrading from older versions.
|
||||
/// </summary>
|
||||
public double? WindowHeight { get; set; }
|
||||
|
||||
/// <summary>Last main-window left position, or <see langword="null"/> if never saved (centre on launch).</summary>
|
||||
@@ -63,7 +69,10 @@ public interface ISettingsService
|
||||
/// <summary>Last main-window top position, or <see langword="null"/> if never saved (centre on launch).</summary>
|
||||
public double? WindowTop { get; set; }
|
||||
|
||||
/// <summary>Whether the main window was maximized when last closed (default <see langword="false"/>).</summary>
|
||||
/// <summary>
|
||||
/// Retained for config back-compat only. The main window can no longer be maximized, so this value is
|
||||
/// no longer read or written; it round-trips untouched for users upgrading from older versions.
|
||||
/// </summary>
|
||||
public bool WindowMaximized { get; set; }
|
||||
|
||||
/// <summary>Persists the current settings to disk.</summary>
|
||||
|
||||
@@ -28,11 +28,42 @@ public static class UserCommandFactory
|
||||
TitleKey = command.Name,
|
||||
DescriptionKey = command.Name,
|
||||
Executable = command.Executable,
|
||||
ArgsTemplate = command.Arguments,
|
||||
ArgsTemplate = NormalizeArguments(command.Executable, command.Arguments),
|
||||
ExecutionMode = ExecutionMode.Capture,
|
||||
RequiresAdmin = false, // INVARIANT — a user command must never elevate.
|
||||
DangerLevel = DangerLevel.Caution,
|
||||
Restart = RestartPolicy.No,
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Normalizes arguments so a one-shot command actually runs and then exits. <c>cmd.exe</c>
|
||||
/// without <c>/c</c> (or <c>/k</c>) opens an interactive shell that blocks forever waiting on
|
||||
/// stdin, so for cmd we prepend <c>/c</c>. Other executables (e.g. powershell) are left as-is.
|
||||
/// </summary>
|
||||
public static string NormalizeArguments(string executable, string? arguments)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(executable);
|
||||
|
||||
var args = arguments ?? string.Empty;
|
||||
if (IsCmd(executable) && !HasCmdRunSwitch(args))
|
||||
{
|
||||
return args.Length == 0 ? "/c" : "/c " + args;
|
||||
}
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
private static bool IsCmd(string executable)
|
||||
=> string.Equals(Path.GetFileNameWithoutExtension(executable.Trim()), "cmd", StringComparison.OrdinalIgnoreCase);
|
||||
|
||||
private static bool HasCmdRunSwitch(string arguments)
|
||||
{
|
||||
var trimmed = arguments.TrimStart();
|
||||
return StartsWithSwitch(trimmed, "/c") || StartsWithSwitch(trimmed, "/k");
|
||||
}
|
||||
|
||||
private static bool StartsWithSwitch(string text, string flag)
|
||||
=> text.StartsWith(flag, StringComparison.OrdinalIgnoreCase)
|
||||
&& (text.Length == flag.Length || char.IsWhiteSpace(text[flag.Length]));
|
||||
}
|
||||
@@ -64,4 +64,23 @@ public sealed record CommandDefinition
|
||||
|
||||
/// <summary>Free-form search tags.</summary>
|
||||
public IReadOnlyList<string> Tags { get; init; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Inclusive lowest Windows build this command applies to (e.g. <c>22000</c> for Windows 11+).
|
||||
/// <see langword="null"/> means no lower bound.
|
||||
/// </summary>
|
||||
public int? MinOsBuild { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Inclusive highest Windows build this command applies to (e.g. <c>19045</c> for Windows 10 only).
|
||||
/// <see langword="null"/> means no upper bound.
|
||||
/// </summary>
|
||||
public int? MaxOsBuild { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether this command applies to the given OS build. Pure logic (no Win32) so the presentation
|
||||
/// layer can hide commands that do not apply to the current Windows version.
|
||||
/// </summary>
|
||||
public bool AppliesToOsBuild(int build)
|
||||
=> (MinOsBuild is null || build >= MinOsBuild) && (MaxOsBuild is null || build <= MaxOsBuild);
|
||||
}
|
||||
@@ -33,6 +33,8 @@ internal sealed record CommandDto
|
||||
public string? DocUrl { get; init; }
|
||||
public string[]? Tags { get; init; }
|
||||
public RegistryValueDto[]? AffectedRegistryValues { get; init; }
|
||||
public int? MinOsBuild { get; init; }
|
||||
public int? MaxOsBuild { get; init; }
|
||||
}
|
||||
|
||||
/// <summary>JSON shape of a registry-value reference (for before/after comparison).</summary>
|
||||
|
||||
@@ -73,6 +73,9 @@ public static class CatalogLoader
|
||||
if (string.IsNullOrWhiteSpace(dto.DescriptionKey)) { errors.Add($"Command '{dto.Id}' is missing descriptionKey."); continue; }
|
||||
if (string.IsNullOrWhiteSpace(dto.Executable)) { errors.Add($"Command '{dto.Id}' is missing executable."); continue; }
|
||||
if (dto.Restart == RestartPolicy.FromOutputRegex && !IsValidRegex(dto.RestartRegex)) { errors.Add($"Command '{dto.Id}' has an invalid restartRegex."); continue; }
|
||||
if (dto.MinOsBuild is <= 0) { errors.Add($"Command '{dto.Id}' has a non-positive minOsBuild."); continue; }
|
||||
if (dto.MaxOsBuild is <= 0) { errors.Add($"Command '{dto.Id}' has a non-positive maxOsBuild."); continue; }
|
||||
if (dto.MinOsBuild is { } minBuild && dto.MaxOsBuild is { } maxBuild && maxBuild < minBuild) { errors.Add($"Command '{dto.Id}' has maxOsBuild ({maxBuild}) less than minOsBuild ({minBuild})."); continue; }
|
||||
|
||||
commands.Add(new CommandDefinition
|
||||
{
|
||||
@@ -100,6 +103,8 @@ public static class CatalogLoader
|
||||
.Where(r => !string.IsNullOrWhiteSpace(r.Path))
|
||||
.Select(r => new RegistryValueRef { Path = r.Path!, Name = r.Name ?? string.Empty })
|
||||
.ToList(),
|
||||
MinOsBuild = dto.MinOsBuild,
|
||||
MaxOsBuild = dto.MaxOsBuild,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -8,5 +8,7 @@
|
||||
{ "id": "system-info", "titleKey": "Cat_system-info", "icon": "Information", "order": 7 },
|
||||
{ "id": "diagnostics", "titleKey": "Cat_diagnostics", "icon": "Stethoscope", "order": 8 },
|
||||
{ "id": "security-privacy", "titleKey": "Cat_security-privacy", "icon": "ShieldLock", "order": 9 },
|
||||
{ "id": "developer", "titleKey": "Cat_developer", "icon": "CodeBraces", "order": 10 }
|
||||
{ "id": "developer", "titleKey": "Cat_developer", "icon": "CodeBraces", "order": 10 },
|
||||
{ "id": "storage", "titleKey": "Cat_storage", "icon": "Harddisk", "order": 11 },
|
||||
{ "id": "services-startup", "titleKey": "Cat_services-startup", "icon": "Cog", "order": 12 }
|
||||
]
|
||||
File diff suppressed because it is too large.
Load diff
@@ -25,6 +25,9 @@ internal sealed class SystemProcessRunner : IProcessRunner
|
||||
Arguments = arguments,
|
||||
RedirectStandardOutput = true,
|
||||
RedirectStandardError = true,
|
||||
// Redirect stdin so we can close it immediately: a process that reads input (e.g. an
|
||||
// interactive "cmd" with no /c) gets EOF and exits instead of hanging forever.
|
||||
RedirectStandardInput = true,
|
||||
UseShellExecute = false,
|
||||
CreateNoWindow = true,
|
||||
// Pin the working directory to System32 so the CreateProcess search order can't
|
||||
@@ -52,6 +55,11 @@ internal sealed class SystemProcessRunner : IProcessRunner
|
||||
try
|
||||
{
|
||||
process.Start();
|
||||
|
||||
// Signal EOF on the child's stdin right away — nothing here ever feeds it input, and
|
||||
// leaving it open lets an interactive process block indefinitely.
|
||||
process.StandardInput.Close();
|
||||
|
||||
process.BeginOutputReadLine();
|
||||
process.BeginErrorReadLine();
|
||||
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
namespace CommandForge.Infrastructure;
|
||||
|
||||
/// <summary>
|
||||
/// Enforces a single running application instance per user session. The first instance owns a
|
||||
/// named <see cref="Mutex"/>; later instances detect it, signal the primary (via a named
|
||||
/// auto-reset event) to bring its window to the foreground, and then exit.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Intentionally WPF- and logging-free so it can be constructed before the host/UI are built and
|
||||
/// unit-tested without a UI thread. The named objects are session-scoped (<c>Local\</c>), which is
|
||||
/// correct for a per-user install: it isolates different Windows users / RDP sessions and
|
||||
/// self-recovers if a process crashes (the kernel object dies when its last handle closes).
|
||||
/// </remarks>
|
||||
public sealed class SingleInstanceGuard : IDisposable
|
||||
{
|
||||
private readonly Mutex _mutex;
|
||||
private readonly EventWaitHandle _activateEvent;
|
||||
private readonly ManualResetEventSlim _stopEvent = new(initialState: false);
|
||||
private Thread? _listener;
|
||||
private bool _disposed;
|
||||
|
||||
/// <summary>
|
||||
/// Creates the guard, attempting to acquire the single-instance mutex for this session.
|
||||
/// </summary>
|
||||
/// <param name="nameSuffix">
|
||||
/// Optional suffix that isolates the named objects (used by tests to avoid colliding with a
|
||||
/// real running instance). When omitted, the shared application name is used so every real
|
||||
/// instance contends on the same objects.
|
||||
/// </param>
|
||||
public SingleInstanceGuard(string? nameSuffix = null)
|
||||
{
|
||||
var baseName = string.IsNullOrEmpty(nameSuffix)
|
||||
? AppPaths.AppFolderName
|
||||
: $"{AppPaths.AppFolderName}.{nameSuffix}";
|
||||
|
||||
// Create the activation event FIRST and hold its handle for the process lifetime: by the
|
||||
// time the mutex exists the primary already owns a live handle to the event, so a second
|
||||
// instance can neither lose its signal nor destroy the kernel object when it disposes.
|
||||
_activateEvent = new EventWaitHandle(
|
||||
initialState: false,
|
||||
EventResetMode.AutoReset,
|
||||
$"Local\\{baseName}.SingleInstance.Activate");
|
||||
|
||||
_mutex = new Mutex(initiallyOwned: false, $"Local\\{baseName}.SingleInstance", out var createdNew);
|
||||
IsPrimaryInstance = createdNew;
|
||||
}
|
||||
|
||||
/// <summary>True when this is the first (owning) instance for the current session.</summary>
|
||||
public bool IsPrimaryInstance { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Primary instance only: starts a background listener that invokes
|
||||
/// <paramref name="onActivateRequested"/> whenever another instance signals. The callback runs
|
||||
/// on a background thread; the caller is responsible for marshalling to the UI thread.
|
||||
/// </summary>
|
||||
public void StartListening(Action onActivateRequested)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(onActivateRequested);
|
||||
ObjectDisposedException.ThrowIf(_disposed, this);
|
||||
if (_listener is not null)
|
||||
{
|
||||
throw new InvalidOperationException("The activation listener has already been started.");
|
||||
}
|
||||
|
||||
_listener = new Thread(() => ListenLoop(onActivateRequested))
|
||||
{
|
||||
IsBackground = true,
|
||||
Name = "SingleInstanceActivationListener",
|
||||
};
|
||||
_listener.Start();
|
||||
}
|
||||
|
||||
/// <summary>Secondary instance only: asks the primary instance to activate its window.</summary>
|
||||
public void SignalPrimaryInstance() => _activateEvent.Set();
|
||||
|
||||
private void ListenLoop(Action onActivateRequested)
|
||||
{
|
||||
var handles = new WaitHandle[] { _activateEvent, _stopEvent.WaitHandle };
|
||||
while (true)
|
||||
{
|
||||
if (WaitHandle.WaitAny(handles) == 1)
|
||||
{
|
||||
return; // Stop requested by Dispose().
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
onActivateRequested();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// A faulty activation callback must never tear down the listener thread.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public void Dispose()
|
||||
{
|
||||
if (_disposed)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
_disposed = true;
|
||||
|
||||
_stopEvent.Set();
|
||||
if (_listener is { IsAlive: true } listener)
|
||||
{
|
||||
listener.Join(TimeSpan.FromSeconds(2));
|
||||
}
|
||||
|
||||
// The mutex is never owned (initiallyOwned: false), so there is nothing to release —
|
||||
// closing the handle frees the name once the last instance exits.
|
||||
_mutex.Dispose();
|
||||
_activateEvent.Dispose();
|
||||
_stopEvent.Dispose();
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows;
|
||||
using System.Windows.Interop;
|
||||
using CommandForge.Application;
|
||||
using CommandForge.Application.Ports;
|
||||
using CommandForge.Application.UseCases;
|
||||
@@ -26,6 +28,7 @@ namespace CommandForge.Wpf;
|
||||
public partial class App : System.Windows.Application
|
||||
{
|
||||
private IHost? _host;
|
||||
private SingleInstanceGuard? _guard;
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void OnStartup(StartupEventArgs e)
|
||||
@@ -34,6 +37,21 @@ public partial class App : System.Windows.Application
|
||||
// Called directly in the main assembly so the vpk packager can verify its presence.
|
||||
VelopackApp.Build().Run();
|
||||
|
||||
// Single-instance guard. Placed after Velopack (whose hook invocations exit inside Run())
|
||||
// so those transient processes are never counted as a second instance. A later launch
|
||||
// signals the primary to surface its window, then exits silently.
|
||||
var guard = new SingleInstanceGuard();
|
||||
if (!guard.IsPrimaryInstance)
|
||||
{
|
||||
guard.SignalPrimaryInstance();
|
||||
guard.Dispose();
|
||||
Shutdown(); // _guard is left null, so OnExit's _guard?.Dispose() is a no-op.
|
||||
return;
|
||||
}
|
||||
|
||||
_guard = guard;
|
||||
_guard.StartListening(OnActivationRequested);
|
||||
|
||||
base.OnStartup(e);
|
||||
|
||||
// The Legal Gate is shown as a modal dialog before the main window exists.
|
||||
@@ -144,9 +162,37 @@ public partial class App : System.Windows.Application
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Invoked (on a background thread) when a second instance asks us to surface our window.</summary>
|
||||
private void OnActivationRequested() => Dispatcher.InvokeAsync(ActivateExistingWindow);
|
||||
|
||||
/// <summary>Restores and foregrounds the existing top-level window (main window, or the Legal Gate if it is still open).</summary>
|
||||
private void ActivateExistingWindow()
|
||||
{
|
||||
var window = MainWindow
|
||||
?? System.Windows.Application.Current.Windows.Cast<Window>().LastOrDefault();
|
||||
if (window is null)
|
||||
{
|
||||
return; // Signalled before any window is shown — the primary is about to show one anyway.
|
||||
}
|
||||
|
||||
if (window.WindowState == WindowState.Minimized)
|
||||
{
|
||||
window.WindowState = WindowState.Normal; // MainWindow is NoResize, so Normal fully restores it.
|
||||
}
|
||||
|
||||
window.Show();
|
||||
window.Activate();
|
||||
SetForegroundWindow(new WindowInteropHelper(window).Handle);
|
||||
}
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
[return: MarshalAs(UnmanagedType.Bool)]
|
||||
private static extern bool SetForegroundWindow(IntPtr hWnd);
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void OnExit(ExitEventArgs e)
|
||||
{
|
||||
_guard?.Dispose();
|
||||
Log.Information("CommandForge shutting down");
|
||||
Log.CloseAndFlush();
|
||||
_host?.Dispose();
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -1337,4 +1337,988 @@ Continue?</value>
|
||||
<data name="PortableInfo_LogFolder" xml:space="preserve">
|
||||
<value>Log folder</value>
|
||||
</data>
|
||||
<data name="Cmd_info.hotfixes_Title" xml:space="preserve">
|
||||
<value>Installed Updates</value>
|
||||
</data>
|
||||
<data name="Cmd_info.hotfixes_Desc" xml:space="preserve">
|
||||
<value>List installed Windows updates and hotfixes, newest first.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.drivers_Title" xml:space="preserve">
|
||||
<value>Installed Drivers</value>
|
||||
</data>
|
||||
<data name="Cmd_info.drivers_Desc" xml:space="preserve">
|
||||
<value>List signed device drivers with their versions and providers.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.bios_Title" xml:space="preserve">
|
||||
<value>BIOS / Firmware Info</value>
|
||||
</data>
|
||||
<data name="Cmd_info.bios_Desc" xml:space="preserve">
|
||||
<value>Show BIOS manufacturer, version, serial number and release date.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.env_Title" xml:space="preserve">
|
||||
<value>Environment Variables</value>
|
||||
</data>
|
||||
<data name="Cmd_info.env_Desc" xml:space="preserve">
|
||||
<value>List the current environment variables and their values.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.installedapps_Title" xml:space="preserve">
|
||||
<value>Installed Programs</value>
|
||||
</data>
|
||||
<data name="Cmd_info.installedapps_Desc" xml:space="preserve">
|
||||
<value>List installed programs from the registry uninstall keys.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.monitors_Title" xml:space="preserve">
|
||||
<value>Display Info</value>
|
||||
</data>
|
||||
<data name="Cmd_info.monitors_Desc" xml:space="preserve">
|
||||
<value>Show connected displays with current resolution and refresh rate.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.netstat_Title" xml:space="preserve">
|
||||
<value>Active Connections</value>
|
||||
</data>
|
||||
<data name="Cmd_net.netstat_Desc" xml:space="preserve">
|
||||
<value>Show active TCP/UDP connections and listening ports with their PIDs.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.arp_Title" xml:space="preserve">
|
||||
<value>ARP Cache</value>
|
||||
</data>
|
||||
<data name="Cmd_net.arp_Desc" xml:space="preserve">
|
||||
<value>Display the ARP table mapping IP addresses to MAC addresses.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.route_Title" xml:space="preserve">
|
||||
<value>Routing Table</value>
|
||||
</data>
|
||||
<data name="Cmd_net.route_Desc" xml:space="preserve">
|
||||
<value>Print the IPv4/IPv6 routing table.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.wifi.profiles_Title" xml:space="preserve">
|
||||
<value>Wi-Fi Profiles</value>
|
||||
</data>
|
||||
<data name="Cmd_net.wifi.profiles_Desc" xml:space="preserve">
|
||||
<value>List saved Wi-Fi (WLAN) network profiles.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.proxy.show_Title" xml:space="preserve">
|
||||
<value>WinHTTP Proxy</value>
|
||||
</data>
|
||||
<data name="Cmd_net.proxy.show_Desc" xml:space="preserve">
|
||||
<value>Show the system WinHTTP proxy configuration.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.darkmode.on_Title" xml:space="preserve">
|
||||
<value>Enable Dark Mode</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.darkmode.on_Desc" xml:space="preserve">
|
||||
<value>Switch apps and the system theme to dark mode.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.darkmode.off_Title" xml:space="preserve">
|
||||
<value>Enable Light Mode</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.darkmode.off_Desc" xml:space="preserve">
|
||||
<value>Switch apps and the system theme back to light mode.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.taskbarleft_Title" xml:space="preserve">
|
||||
<value>Taskbar: Align Left (Win11)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.taskbarleft_Desc" xml:space="preserve">
|
||||
<value>Align the Windows 11 taskbar to the left and restart Explorer.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.taskbarcenter_Title" xml:space="preserve">
|
||||
<value>Taskbar: Align Center (Win11)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.taskbarcenter_Desc" xml:space="preserve">
|
||||
<value>Center the Windows 11 taskbar and restart Explorer.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.clockseconds.on_Title" xml:space="preserve">
|
||||
<value>Show Seconds in Clock (Win11)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.clockseconds.on_Desc" xml:space="preserve">
|
||||
<value>Show seconds in the Windows 11 taskbar clock and restart Explorer.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.clockseconds.off_Title" xml:space="preserve">
|
||||
<value>Hide Seconds in Clock (Win11)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.clockseconds.off_Desc" xml:space="preserve">
|
||||
<value>Hide seconds from the Windows 11 taskbar clock and restart Explorer.</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.thumbnailcache_Title" xml:space="preserve">
|
||||
<value>Clear Thumbnail Cache</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.thumbnailcache_Desc" xml:space="preserve">
|
||||
<value>Delete cached thumbnails and restart Explorer to rebuild them.</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.fontcache_Title" xml:space="preserve">
|
||||
<value>Clear Font Cache</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.fontcache_Desc" xml:space="preserve">
|
||||
<value>Stop the Font Cache service, clear its cache and restart it.</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.prefetch_Title" xml:space="preserve">
|
||||
<value>Clear Prefetch</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.prefetch_Desc" xml:space="preserve">
|
||||
<value>Empty the Windows Prefetch folder (rebuilt automatically).</value>
|
||||
</data>
|
||||
<data name="Cmd_power.set.balanced_Title" xml:space="preserve">
|
||||
<value>Set Balanced Plan</value>
|
||||
</data>
|
||||
<data name="Cmd_power.set.balanced_Desc" xml:space="preserve">
|
||||
<value>Activate the Balanced power plan.</value>
|
||||
</data>
|
||||
<data name="Cmd_power.requests_Title" xml:space="preserve">
|
||||
<value>Power Requests</value>
|
||||
</data>
|
||||
<data name="Cmd_power.requests_Desc" xml:space="preserve">
|
||||
<value>Show apps and drivers currently preventing sleep or display off.</value>
|
||||
</data>
|
||||
<data name="Cmd_power.fastboot.off_Title" xml:space="preserve">
|
||||
<value>Disable Fast Startup</value>
|
||||
</data>
|
||||
<data name="Cmd_power.fastboot.off_Desc" xml:space="preserve">
|
||||
<value>Turn off Fast Startup (hybrid boot) for a full shutdown.</value>
|
||||
</data>
|
||||
<data name="Cmd_power.fastboot.on_Title" xml:space="preserve">
|
||||
<value>Enable Fast Startup</value>
|
||||
</data>
|
||||
<data name="Cmd_power.fastboot.on_Desc" xml:space="preserve">
|
||||
<value>Turn on Fast Startup (hybrid boot).</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.taskmgr_Title" xml:space="preserve">
|
||||
<value>Task Manager</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.taskmgr_Desc" xml:space="preserve">
|
||||
<value>Open Task Manager.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.devmgmt_Title" xml:space="preserve">
|
||||
<value>Device Manager</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.devmgmt_Desc" xml:space="preserve">
|
||||
<value>Open Device Manager.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.services_Title" xml:space="preserve">
|
||||
<value>Services</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.services_Desc" xml:space="preserve">
|
||||
<value>Open the Services management console.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.gpresult_Title" xml:space="preserve">
|
||||
<value>Group Policy Result</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.gpresult_Desc" xml:space="preserve">
|
||||
<value>Show the Resultant Set of Policy (RSoP) summary for this PC and user.</value>
|
||||
</data>
|
||||
<data name="Cmd_winget.source.list_Title" xml:space="preserve">
|
||||
<value>List winget Sources</value>
|
||||
</data>
|
||||
<data name="Cmd_winget.source.list_Desc" xml:space="preserve">
|
||||
<value>List the configured winget package sources.</value>
|
||||
</data>
|
||||
<data name="Cmd_store.reset_Title" xml:space="preserve">
|
||||
<value>Reset Microsoft Store</value>
|
||||
</data>
|
||||
<data name="Cmd_store.reset_Desc" xml:space="preserve">
|
||||
<value>Clear the Microsoft Store cache (wsreset).</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.defender.status_Title" xml:space="preserve">
|
||||
<value>Defender Status</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.defender.status_Desc" xml:space="preserve">
|
||||
<value>Show Microsoft Defender protection status and signature version.</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.defender.fullscan_Title" xml:space="preserve">
|
||||
<value>Defender Full Scan</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.defender.fullscan_Desc" xml:space="preserve">
|
||||
<value>Run a full Microsoft Defender antivirus scan (can take a while).</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.firewall.on_Title" xml:space="preserve">
|
||||
<value>Enable Firewall</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.firewall.on_Desc" xml:space="preserve">
|
||||
<value>Turn the Windows Firewall on for all profiles.</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.firewall.off_Title" xml:space="preserve">
|
||||
<value>Disable Firewall</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.firewall.off_Desc" xml:space="preserve">
|
||||
<value>Turn the Windows Firewall off for all profiles. This leaves the PC exposed — re-enable it as soon as possible.</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.wsl.shutdown_Title" xml:space="preserve">
|
||||
<value>Shut Down WSL</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.wsl.shutdown_Desc" xml:space="preserve">
|
||||
<value>Stop all running WSL distributions and the WSL virtual machine.</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.sandbox.off_Title" xml:space="preserve">
|
||||
<value>Disable Windows Sandbox</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.sandbox.off_Desc" xml:space="preserve">
|
||||
<value>Turn off the Windows Sandbox optional feature. Requires a restart.</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.longpaths.on_Title" xml:space="preserve">
|
||||
<value>Enable Long Paths</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.longpaths.on_Desc" xml:space="preserve">
|
||||
<value>Enable Win32 long path (over 260 characters) support.</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.longpaths.off_Title" xml:space="preserve">
|
||||
<value>Disable Long Paths</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.longpaths.off_Desc" xml:space="preserve">
|
||||
<value>Disable Win32 long path support (back to the default).</value>
|
||||
</data>
|
||||
<data name="Cat_storage" xml:space="preserve">
|
||||
<value>Storage</value>
|
||||
</data>
|
||||
<data name="Cmd_info.tpm_Title" xml:space="preserve">
|
||||
<value>TPM Status</value>
|
||||
</data>
|
||||
<data name="Cmd_info.tpm_Desc" xml:space="preserve">
|
||||
<value>Show Trusted Platform Module presence, version, and readiness.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.secureboot_Title" xml:space="preserve">
|
||||
<value>Secure Boot State</value>
|
||||
</data>
|
||||
<data name="Cmd_info.secureboot_Desc" xml:space="preserve">
|
||||
<value>Report whether UEFI Secure Boot is enabled.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.product_Title" xml:space="preserve">
|
||||
<value>Computer & OS Summary</value>
|
||||
</data>
|
||||
<data name="Cmd_info.product_Desc" xml:space="preserve">
|
||||
<value>Show manufacturer, model, OS edition, and install date.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.adapters_Title" xml:space="preserve">
|
||||
<value>Network Adapters</value>
|
||||
</data>
|
||||
<data name="Cmd_net.adapters_Desc" xml:space="preserve">
|
||||
<value>List network adapters with their status and link speed.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.dnsservers_Title" xml:space="preserve">
|
||||
<value>DNS Servers</value>
|
||||
</data>
|
||||
<data name="Cmd_net.dnsservers_Desc" xml:space="preserve">
|
||||
<value>List the configured DNS server addresses for each adapter.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.testconnection_Title" xml:space="preserve">
|
||||
<value>Test Internet Connection</value>
|
||||
</data>
|
||||
<data name="Cmd_net.testconnection_Desc" xml:space="preserve">
|
||||
<value>Ping a public host to check internet connectivity.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.startup_Title" xml:space="preserve">
|
||||
<value>Startup Programs</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.startup_Desc" xml:space="preserve">
|
||||
<value>List the programs configured to run at sign-in.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.driververifier_Title" xml:space="preserve">
|
||||
<value>Driver Verifier Manager</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.driververifier_Desc" xml:space="preserve">
|
||||
<value>Open Driver Verifier to stress-test device drivers (advanced).</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.perfmon_Title" xml:space="preserve">
|
||||
<value>Performance Monitor</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.perfmon_Desc" xml:space="preserve">
|
||||
<value>Open the full Performance Monitor console.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.systemhealth_Title" xml:space="preserve">
|
||||
<value>System Health Report</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.systemhealth_Desc" xml:space="preserve">
|
||||
<value>Generate a system diagnostics report (takes about a minute).</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.dumps_Title" xml:space="preserve">
|
||||
<value>Clear Crash Dumps</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.dumps_Desc" xml:space="preserve">
|
||||
<value>Delete saved memory dump and minidump files.</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.errorreports_Title" xml:space="preserve">
|
||||
<value>Clear Error Reporting Data</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.errorreports_Desc" xml:space="preserve">
|
||||
<value>Delete queued Windows Error Reporting files.</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.dnsarp_Title" xml:space="preserve">
|
||||
<value>Clear DNS & ARP Caches</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.dnsarp_Desc" xml:space="preserve">
|
||||
<value>Flush the DNS resolver cache and the ARP table.</value>
|
||||
</data>
|
||||
<data name="Cmd_power.lidclose.donothing_Title" xml:space="preserve">
|
||||
<value>Lid Close: Do Nothing (Plugged In)</value>
|
||||
</data>
|
||||
<data name="Cmd_power.lidclose.donothing_Desc" xml:space="preserve">
|
||||
<value>Keep the laptop awake when the lid is closed on AC power.</value>
|
||||
</data>
|
||||
<data name="Cmd_power.lidclose.sleep_Title" xml:space="preserve">
|
||||
<value>Lid Close: Sleep (Plugged In)</value>
|
||||
</data>
|
||||
<data name="Cmd_power.lidclose.sleep_Desc" xml:space="preserve">
|
||||
<value>Put the laptop to sleep when the lid is closed on AC power.</value>
|
||||
</data>
|
||||
<data name="Cmd_power.monitor.timeout15_Title" xml:space="preserve">
|
||||
<value>Screen Off After 15 Minutes</value>
|
||||
</data>
|
||||
<data name="Cmd_power.monitor.timeout15_Desc" xml:space="preserve">
|
||||
<value>Turn off the display after 15 minutes on AC power.</value>
|
||||
</data>
|
||||
<data name="Cmd_power.monitor.timeout10_Title" xml:space="preserve">
|
||||
<value>Screen Off After 10 Minutes</value>
|
||||
</data>
|
||||
<data name="Cmd_power.monitor.timeout10_Desc" xml:space="preserve">
|
||||
<value>Turn off the display after 10 minutes on AC power (default).</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.numlock.on_Title" xml:space="preserve">
|
||||
<value>NumLock On at Startup</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.numlock.on_Desc" xml:space="preserve">
|
||||
<value>Enable NumLock at boot and on the sign-in screen.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.numlock.off_Title" xml:space="preserve">
|
||||
<value>NumLock Off at Startup</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.numlock.off_Desc" xml:space="preserve">
|
||||
<value>Disable NumLock at boot and on the sign-in screen.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.verbosestatus.on_Title" xml:space="preserve">
|
||||
<value>Verbose Sign-in Messages On</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.verbosestatus.on_Desc" xml:space="preserve">
|
||||
<value>Show detailed status messages during startup and shutdown.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.verbosestatus.off_Title" xml:space="preserve">
|
||||
<value>Verbose Sign-in Messages Off</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.verbosestatus.off_Desc" xml:space="preserve">
|
||||
<value>Restore the normal startup and shutdown messages.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.optimize_Title" xml:space="preserve">
|
||||
<value>Optimize / Defragment C:</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.optimize_Desc" xml:space="preserve">
|
||||
<value>Optimize the C: drive (TRIM for SSDs, defragment for HDDs).</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.diskmgmt_Title" xml:space="preserve">
|
||||
<value>Disk Management</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.diskmgmt_Desc" xml:space="preserve">
|
||||
<value>Open the Disk Management console.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.volumes_Title" xml:space="preserve">
|
||||
<value>List Volumes & Free Space</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.volumes_Desc" xml:space="preserve">
|
||||
<value>Show volumes with their file system and free space.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.storagesense_Title" xml:space="preserve">
|
||||
<value>Open Storage Settings</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.storagesense_Desc" xml:space="preserve">
|
||||
<value>Open Windows Storage settings to manage Storage Sense.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.battery.health_Title" xml:space="preserve">
|
||||
<value>Battery health</value>
|
||||
</data>
|
||||
<data name="Cmd_info.battery.health_Desc" xml:space="preserve">
|
||||
<value>Show the battery's designed versus full-charge capacity.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.netadapter.speed_Title" xml:space="preserve">
|
||||
<value>Network adapter speed</value>
|
||||
</data>
|
||||
<data name="Cmd_info.netadapter.speed_Desc" xml:space="preserve">
|
||||
<value>List active network adapters with their link speed and MAC address.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.diskhealth_Title" xml:space="preserve">
|
||||
<value>Disk health</value>
|
||||
</data>
|
||||
<data name="Cmd_info.diskhealth_Desc" xml:space="preserve">
|
||||
<value>Show each physical disk's health and operational status.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.pagefile_Title" xml:space="preserve">
|
||||
<value>Page file usage</value>
|
||||
</data>
|
||||
<data name="Cmd_info.pagefile_Desc" xml:space="preserve">
|
||||
<value>Show the page file size and current usage.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.localusers_Title" xml:space="preserve">
|
||||
<value>Local user accounts</value>
|
||||
</data>
|
||||
<data name="Cmd_info.localusers_Desc" xml:space="preserve">
|
||||
<value>List the local user accounts and whether they are enabled.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.timezone_Title" xml:space="preserve">
|
||||
<value>Time & time zone</value>
|
||||
</data>
|
||||
<data name="Cmd_info.timezone_Desc" xml:space="preserve">
|
||||
<value>Show the current time zone and time-synchronization status.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.osinstalldate_Title" xml:space="preserve">
|
||||
<value>Windows install date</value>
|
||||
</data>
|
||||
<data name="Cmd_info.osinstalldate_Desc" xml:space="preserve">
|
||||
<value>Show when Windows was installed and how many days ago.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.publicdns_Title" xml:space="preserve">
|
||||
<value>Public DNS lookup test</value>
|
||||
</data>
|
||||
<data name="Cmd_net.publicdns_Desc" xml:space="preserve">
|
||||
<value>Resolve a well-known domain through Google DNS to test name resolution.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.tcpconnections_Title" xml:space="preserve">
|
||||
<value>Active TCP connections</value>
|
||||
</data>
|
||||
<data name="Cmd_net.tcpconnections_Desc" xml:space="preserve">
|
||||
<value>List established TCP connections and their owning process.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.firewallprofiles_Title" xml:space="preserve">
|
||||
<value>Firewall profiles</value>
|
||||
</data>
|
||||
<data name="Cmd_net.firewallprofiles_Desc" xml:space="preserve">
|
||||
<value>Show each firewall profile and its default actions.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.netshares_Title" xml:space="preserve">
|
||||
<value>Shared folders</value>
|
||||
</data>
|
||||
<data name="Cmd_net.netshares_Desc" xml:space="preserve">
|
||||
<value>List the SMB shares published by this computer.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.hostsfile.show_Title" xml:space="preserve">
|
||||
<value>Show hosts file</value>
|
||||
</data>
|
||||
<data name="Cmd_net.hostsfile.show_Desc" xml:space="preserve">
|
||||
<value>Display the contents of the Windows hosts file.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.netconnections.diag_Title" xml:space="preserve">
|
||||
<value>Network connections</value>
|
||||
</data>
|
||||
<data name="Cmd_net.netconnections.diag_Desc" xml:space="preserve">
|
||||
<value>Open the Network Connections control panel.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.lastboottime_Title" xml:space="preserve">
|
||||
<value>Recent boot & shutdown events</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.lastboottime_Desc" xml:space="preserve">
|
||||
<value>List the most recent system boot and shutdown events.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.bsod.recent_Title" xml:space="preserve">
|
||||
<value>Recent unexpected shutdowns</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.bsod.recent_Desc" xml:space="preserve">
|
||||
<value>List recent Kernel-Power (event 41) unexpected-shutdown events.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.toperrors_Title" xml:space="preserve">
|
||||
<value>Recent system errors</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.toperrors_Desc" xml:space="preserve">
|
||||
<value>List recent critical and error entries from the System log.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.printmgmt_Title" xml:space="preserve">
|
||||
<value>Print Management</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.printmgmt_Desc" xml:space="preserve">
|
||||
<value>Open the Print Management console.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.certmgr_Title" xml:space="preserve">
|
||||
<value>Certificate Manager</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.certmgr_Desc" xml:space="preserve">
|
||||
<value>Open the current-user Certificate Manager.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.diskusage_Title" xml:space="preserve">
|
||||
<value>Drive usage summary</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.diskusage_Desc" xml:space="preserve">
|
||||
<value>Show used and free space for each file-system drive.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.smart.status_Title" xml:space="preserve">
|
||||
<value>Disk SMART status</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.smart.status_Desc" xml:space="preserve">
|
||||
<value>Show each disk's SMART failure-prediction status.</value>
|
||||
</data>
|
||||
<data name="Cat_services-startup" xml:space="preserve">
|
||||
<value>Services & Startup</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.largefiles.temp_Title" xml:space="preserve">
|
||||
<value>Largest temp files</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.largefiles.temp_Desc" xml:space="preserve">
|
||||
<value>List the largest files in the temporary folder.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.partition.list_Title" xml:space="preserve">
|
||||
<value>List partitions</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.partition.list_Desc" xml:space="preserve">
|
||||
<value>List all disk partitions and their sizes.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.fragmentation.analyze_Title" xml:space="preserve">
|
||||
<value>Analyze fragmentation</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.fragmentation.analyze_Desc" xml:space="preserve">
|
||||
<value>Analyze the C: drive for fragmentation without changing it.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.cleanmgr.settings_Title" xml:space="preserve">
|
||||
<value>Configure Disk Cleanup</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.cleanmgr.settings_Desc" xml:space="preserve">
|
||||
<value>Open Disk Cleanup's settings to choose what to clean.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.diskpart.list_Title" xml:space="preserve">
|
||||
<value>List disks & volumes</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.diskpart.list_Desc" xml:space="preserve">
|
||||
<value>List disks and volumes using DiskPart (read-only).</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.spooler.restart_Title" xml:space="preserve">
|
||||
<value>Restart Print Spooler</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.spooler.restart_Desc" xml:space="preserve">
|
||||
<value>Restart the Print Spooler service to clear stuck print jobs.</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.audio.restart_Title" xml:space="preserve">
|
||||
<value>Restart audio service</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.audio.restart_Desc" xml:space="preserve">
|
||||
<value>Restart the Windows Audio service to fix sound problems.</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.wuauserv.restart_Title" xml:space="preserve">
|
||||
<value>Restart Windows Update service</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.wuauserv.restart_Desc" xml:space="preserve">
|
||||
<value>Restart the Windows Update service.</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.bits.restart_Title" xml:space="preserve">
|
||||
<value>Restart BITS</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.bits.restart_Desc" xml:space="preserve">
|
||||
<value>Restart the Background Intelligent Transfer Service.</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.list.running_Title" xml:space="preserve">
|
||||
<value>List running services</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.list.running_Desc" xml:space="preserve">
|
||||
<value>List all services that are currently running.</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.list.automatic_Title" xml:space="preserve">
|
||||
<value>List automatic services</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.list.automatic_Desc" xml:space="preserve">
|
||||
<value>List services set to start automatically and their state.</value>
|
||||
</data>
|
||||
<data name="Cmd_startup.apps.settings_Title" xml:space="preserve">
|
||||
<value>Startup apps</value>
|
||||
</data>
|
||||
<data name="Cmd_startup.apps.settings_Desc" xml:space="preserve">
|
||||
<value>Open the Startup apps settings page.</value>
|
||||
</data>
|
||||
<data name="Cmd_startup.folder.open_Title" xml:space="preserve">
|
||||
<value>Open Startup folder</value>
|
||||
</data>
|
||||
<data name="Cmd_startup.folder.open_Desc" xml:space="preserve">
|
||||
<value>Open the current user's Startup folder.</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.iconcache_Title" xml:space="preserve">
|
||||
<value>Clear icon cache files</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.iconcache_Desc" xml:space="preserve">
|
||||
<value>Delete the Explorer icon cache so it rebuilds.</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.recentfiles_Title" xml:space="preserve">
|
||||
<value>Clear recent items</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.recentfiles_Desc" xml:space="preserve">
|
||||
<value>Remove the list of recently opened files and folders.</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.eventlogs_Title" xml:space="preserve">
|
||||
<value>Clear event logs</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.eventlogs_Desc" xml:space="preserve">
|
||||
<value>Clear the Application and System event logs.</value>
|
||||
</data>
|
||||
<data name="Cmd_power.set.powersaver_Title" xml:space="preserve">
|
||||
<value>Power Saver plan</value>
|
||||
</data>
|
||||
<data name="Cmd_power.set.powersaver_Desc" xml:space="preserve">
|
||||
<value>Switch to the Power Saver power plan.</value>
|
||||
</data>
|
||||
<data name="Cmd_power.hibernate.now_Title" xml:space="preserve">
|
||||
<value>Hibernate now</value>
|
||||
</data>
|
||||
<data name="Cmd_power.hibernate.now_Desc" xml:space="preserve">
|
||||
<value>Put the computer into hibernation immediately.</value>
|
||||
</data>
|
||||
<data name="Cmd_chkdsk.scan.online_Title" xml:space="preserve">
|
||||
<value>Online disk scan</value>
|
||||
</data>
|
||||
<data name="Cmd_chkdsk.scan.online_Desc" xml:space="preserve">
|
||||
<value>Scan the C: drive for errors online without unmounting.</value>
|
||||
</data>
|
||||
<data name="Cmd_sfc.verifyonly_Title" xml:space="preserve">
|
||||
<value>Verify system files</value>
|
||||
</data>
|
||||
<data name="Cmd_sfc.verifyonly_Desc" xml:space="preserve">
|
||||
<value>Check protected system files for corruption without repairing.</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.defender.history_Title" xml:space="preserve">
|
||||
<value>Defender threat history</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.defender.history_Desc" xml:space="preserve">
|
||||
<value>Show recent Microsoft Defender threat detections.</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.defender.exclusions_Title" xml:space="preserve">
|
||||
<value>Defender exclusions</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.defender.exclusions_Desc" xml:space="preserve">
|
||||
<value>List the paths, extensions and processes excluded from Defender.</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.bitlocker.detail_Title" xml:space="preserve">
|
||||
<value>BitLocker volume details</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.bitlocker.detail_Desc" xml:space="preserve">
|
||||
<value>Show encryption status and progress for each volume.</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.firewall.reset_Title" xml:space="preserve">
|
||||
<value>Reset firewall to defaults</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.firewall.reset_Desc" xml:space="preserve">
|
||||
<value>Reset all Windows Firewall rules to their default policy.</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.defender.signatures.remove_Title" xml:space="preserve">
|
||||
<value>Remove dynamic signatures</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.defender.signatures.remove_Desc" xml:space="preserve">
|
||||
<value>Remove Defender's dynamic definitions to fix corrupt updates.</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.windowssecurity.open_Title" xml:space="preserve">
|
||||
<value>Open Windows Security</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.windowssecurity.open_Desc" xml:space="preserve">
|
||||
<value>Open the Windows Security app.</value>
|
||||
</data>
|
||||
<data name="Cmd_wu.history_Title" xml:space="preserve">
|
||||
<value>Update history</value>
|
||||
</data>
|
||||
<data name="Cmd_wu.history_Desc" xml:space="preserve">
|
||||
<value>List the most recently installed Windows updates.</value>
|
||||
</data>
|
||||
<data name="Cmd_wu.pause_Title" xml:space="preserve">
|
||||
<value>Windows Update settings</value>
|
||||
</data>
|
||||
<data name="Cmd_wu.pause_Desc" xml:space="preserve">
|
||||
<value>Open the Windows Update settings page.</value>
|
||||
</data>
|
||||
<data name="Cmd_winget.upgrade.winget_Title" xml:space="preserve">
|
||||
<value>Update App Installer</value>
|
||||
</data>
|
||||
<data name="Cmd_winget.upgrade.winget_Desc" xml:space="preserve">
|
||||
<value>Update the winget App Installer to the latest version.</value>
|
||||
</data>
|
||||
<data name="Cmd_winget.export.list_Title" xml:space="preserve">
|
||||
<value>Export installed packages</value>
|
||||
</data>
|
||||
<data name="Cmd_winget.export.list_Desc" xml:space="preserve">
|
||||
<value>Export the winget package list to a JSON file.</value>
|
||||
</data>
|
||||
<data name="Cmd_wu.driver.list_Title" xml:space="preserve">
|
||||
<value>Third-party drivers</value>
|
||||
</data>
|
||||
<data name="Cmd_wu.driver.list_Desc" xml:space="preserve">
|
||||
<value>List non-inbox drivers installed on the system.</value>
|
||||
</data>
|
||||
<data name="Cmd_store.troubleshoot_Title" xml:space="preserve">
|
||||
<value>Troubleshooters</value>
|
||||
</data>
|
||||
<data name="Cmd_store.troubleshoot_Desc" xml:space="preserve">
|
||||
<value>Open the Windows troubleshooters settings page.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.taskbarsearch.hide_Title" xml:space="preserve">
|
||||
<value>Hide taskbar search</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.taskbarsearch.hide_Desc" xml:space="preserve">
|
||||
<value>Hide the search box from the taskbar.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.taskbarsearch.show_Title" xml:space="preserve">
|
||||
<value>Show taskbar search</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.taskbarsearch.show_Desc" xml:space="preserve">
|
||||
<value>Show the search box on the taskbar.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.transparency.off_Title" xml:space="preserve">
|
||||
<value>Disable transparency</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.transparency.off_Desc" xml:space="preserve">
|
||||
<value>Turn off window transparency effects.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.transparency.on_Title" xml:space="preserve">
|
||||
<value>Enable transparency</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.transparency.on_Desc" xml:space="preserve">
|
||||
<value>Turn on window transparency effects.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.snapassist.off_Title" xml:space="preserve">
|
||||
<value>Disable Snap assist</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.snapassist.off_Desc" xml:space="preserve">
|
||||
<value>Stop Windows from suggesting windows when snapping.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.snapassist.on_Title" xml:space="preserve">
|
||||
<value>Enable Snap assist</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.snapassist.on_Desc" xml:space="preserve">
|
||||
<value>Let Windows suggest windows when snapping.</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.telnet.on_Title" xml:space="preserve">
|
||||
<value>Enable Telnet client</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.telnet.on_Desc" xml:space="preserve">
|
||||
<value>Install the Windows Telnet client feature.</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.telnet.off_Title" xml:space="preserve">
|
||||
<value>Disable Telnet client</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.telnet.off_Desc" xml:space="preserve">
|
||||
<value>Remove the Windows Telnet client feature.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.widgets.hide_Title" xml:space="preserve">
|
||||
<value>Hide Widgets Button (Win11)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.widgets.hide_Desc" xml:space="preserve">
|
||||
<value>Remove the Widgets button from the Windows 11 taskbar (per-user; restart Explorer to apply).</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.copilot.hide_Title" xml:space="preserve">
|
||||
<value>Hide Copilot Button (Win11)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.copilot.hide_Desc" xml:space="preserve">
|
||||
<value>Remove the Copilot button from the taskbar on Windows 11 22H2/23H2.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.endtask.on_Title" xml:space="preserve">
|
||||
<value>Enable Taskbar End Task (Win11)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.endtask.on_Desc" xml:space="preserve">
|
||||
<value>Add the End task item to taskbar right-click menus (Windows 11 23H2+).</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.taskbarlabels.show_Title" xml:space="preserve">
|
||||
<value>Never Combine + Labels (Win11)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.taskbarlabels.show_Desc" xml:space="preserve">
|
||||
<value>Show uncombined taskbar buttons with text labels (Windows 11 22H2+; restart Explorer to apply).</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.start.morepins_Title" xml:space="preserve">
|
||||
<value>Start Layout: More Pins (Win11)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.start.morepins_Desc" xml:space="preserve">
|
||||
<value>Switch the Windows 11 Start menu to the More pins layout.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.dynamiclighting_Title" xml:space="preserve">
|
||||
<value>Dynamic Lighting Settings (Win11)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.dynamiclighting_Desc" xml:space="preserve">
|
||||
<value>Open the Dynamic Lighting page to control RGB peripherals natively (Windows 11 23H2+).</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win10.newsinterests.hide_Title" xml:space="preserve">
|
||||
<value>Turn Off News and Interests (Win10)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win10.newsinterests.hide_Desc" xml:space="preserve">
|
||||
<value>Remove the News and Interests weather/news flyout from the Windows 10 taskbar.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win10.meetnow.hide_Title" xml:space="preserve">
|
||||
<value>Hide Meet Now Icon (Win10)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win10.meetnow.hide_Desc" xml:space="preserve">
|
||||
<value>Remove the Skype Meet Now icon from the Windows 10 system tray (restart Explorer to apply).</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win10.peoplebar.hide_Title" xml:space="preserve">
|
||||
<value>Hide People Bar (Win10)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win10.peoplebar.hide_Desc" xml:space="preserve">
|
||||
<value>Remove the People button from the Windows 10 taskbar (restart Explorer to apply).</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win10.cortanabutton.hide_Title" xml:space="preserve">
|
||||
<value>Hide Cortana Button (Win10)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win10.cortanabutton.hide_Desc" xml:space="preserve">
|
||||
<value>Remove the Cortana button from the Windows 10 taskbar (restart Explorer to apply).</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win10.livetiles.off_Title" xml:space="preserve">
|
||||
<value>Turn Off Live Tiles (Win10)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win10.livetiles.off_Desc" xml:space="preserve">
|
||||
<value>Disable all Start menu live tile notifications on Windows 10 (sign out to apply).</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.startdelay.off_Title" xml:space="preserve">
|
||||
<value>Disable Startup App Delay</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.startdelay.off_Desc" xml:space="preserve">
|
||||
<value>Remove the delay before startup apps launch at sign-in (per-user).</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.startsearch.noweb_Title" xml:space="preserve">
|
||||
<value>Disable Web Results in Search</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.startsearch.noweb_Desc" xml:space="preserve">
|
||||
<value>Stop Windows Search from showing Bing web results and suggestions.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.wifi.capabilities_Title" xml:space="preserve">
|
||||
<value>Wi-Fi Radio Capabilities</value>
|
||||
</data>
|
||||
<data name="Cmd_net.wifi.capabilities_Desc" xml:space="preserve">
|
||||
<value>Show wireless adapter driver details and supported radio types (802.11 a/b/g/n/ac/ax).</value>
|
||||
</data>
|
||||
<data name="Cmd_net.tcp.global_Title" xml:space="preserve">
|
||||
<value>Show Global TCP Settings</value>
|
||||
</data>
|
||||
<data name="Cmd_net.tcp.global_Desc" xml:space="preserve">
|
||||
<value>Display global TCP/IP tuning parameters such as auto-tuning and congestion provider.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.wlan.report_Title" xml:space="preserve">
|
||||
<value>Generate Wi-Fi History Report</value>
|
||||
</data>
|
||||
<data name="Cmd_net.wlan.report_Desc" xml:space="preserve">
|
||||
<value>Build an HTML Wi-Fi connectivity report under ProgramData for troubleshooting.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.smart.reliability_Title" xml:space="preserve">
|
||||
<value>Disk SMART Reliability Counters</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.smart.reliability_Desc" xml:space="preserve">
|
||||
<value>Show SMART wear, temperature, and read/write error counters for physical disks.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.dirty.query_Title" xml:space="preserve">
|
||||
<value>Query Volume Dirty Bit</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.dirty.query_Desc" xml:space="preserve">
|
||||
<value>Check whether drive C: is flagged dirty and will be scanned by chkdsk at next boot.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.sectorinfo_Title" xml:space="preserve">
|
||||
<value>Disk Sector Size Info</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.sectorinfo_Desc" xml:space="preserve">
|
||||
<value>Show physical and logical sector sizes and alignment info for drive C:.</value>
|
||||
</data>
|
||||
<data name="Cmd_power.waketimers_Title" xml:space="preserve">
|
||||
<value>List Active Wake Timers</value>
|
||||
</data>
|
||||
<data name="Cmd_power.waketimers_Desc" xml:space="preserve">
|
||||
<value>Show scheduled timers that are allowed to wake the PC from sleep.</value>
|
||||
</data>
|
||||
<data name="Cmd_power.hibernate.reduced_Title" xml:space="preserve">
|
||||
<value>Reduce Hibernation File Size</value>
|
||||
</data>
|
||||
<data name="Cmd_power.hibernate.reduced_Desc" xml:space="preserve">
|
||||
<value>Set hiberfil.sys to reduced mode (supports fast startup, not full hibernate) to save disk space.</value>
|
||||
</data>
|
||||
<data name="Cmd_power.energysaver.settings_Title" xml:space="preserve">
|
||||
<value>Energy Saver Settings (Win11 24H2)</value>
|
||||
</data>
|
||||
<data name="Cmd_power.energysaver.settings_Desc" xml:space="preserve">
|
||||
<value>Open the Energy Saver settings page introduced for desktops in Windows 11 24H2.</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.recall.status_Title" xml:space="preserve">
|
||||
<value>Recall Feature Status (Win11 24H2)</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.recall.status_Desc" xml:space="preserve">
|
||||
<value>Show whether the Windows Recall optional feature is enabled, disabled, or removed.</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.presence.settings_Title" xml:space="preserve">
|
||||
<value>Presence Sensing Settings (Win11)</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.presence.settings_Desc" xml:space="preserve">
|
||||
<value>Open Presence sensing privacy settings for compatible presence sensors (Windows 11 22H2+).</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.localadmins_Title" xml:space="preserve">
|
||||
<value>Local Administrators Members</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.localadmins_Desc" xml:space="preserve">
|
||||
<value>List all members of the local Administrators group (by well-known SID).</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.certstore.root_Title" xml:space="preserve">
|
||||
<value>Trusted Root Certificates</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.certstore.root_Desc" xml:space="preserve">
|
||||
<value>List certificates in the machine Trusted Root Certification Authorities store.</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.firewall.rules_Title" xml:space="preserve">
|
||||
<value>Firewall Rules (All)</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.firewall.rules_Desc" xml:space="preserve">
|
||||
<value>Show all configured Windows Defender Firewall rules with their settings.</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.devdrive.query_Title" xml:space="preserve">
|
||||
<value>Dev Drive Status (fsutil)</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.devdrive.query_Desc" xml:space="preserve">
|
||||
<value>Query Dev Drive support and the filters allowed to attach (Windows 11 22H2+).</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.sudo.status_Title" xml:space="preserve">
|
||||
<value>Sudo for Windows Status</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.sudo.status_Desc" xml:space="preserve">
|
||||
<value>Report whether Sudo for Windows is enabled and in which run mode (Windows 11 24H2).</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.hyperv.vms_Title" xml:space="preserve">
|
||||
<value>List Hyper-V VMs</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.hyperv.vms_Desc" xml:space="preserve">
|
||||
<value>List Hyper-V virtual machines with state, CPU, memory, and uptime (requires Hyper-V).</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.bcdedit.hypervisor_Title" xml:space="preserve">
|
||||
<value>Boot Hypervisor Launch Type</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.bcdedit.hypervisor_Desc" xml:space="preserve">
|
||||
<value>Show the current boot entry, including the hypervisorlaunchtype setting.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.whoami_Title" xml:space="preserve">
|
||||
<value>Current User Rights & Groups</value>
|
||||
</data>
|
||||
<data name="Cmd_info.whoami_Desc" xml:space="preserve">
|
||||
<value>Show the current user's SID, group memberships, and enabled privileges.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.startapps_Title" xml:space="preserve">
|
||||
<value>List Start Menu Apps & IDs</value>
|
||||
</data>
|
||||
<data name="Cmd_info.startapps_Desc" xml:space="preserve">
|
||||
<value>List all Start menu apps with their AppUserModelID launch identifiers.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.bootconfig_Title" xml:space="preserve">
|
||||
<value>View Boot Configuration (BCD)</value>
|
||||
</data>
|
||||
<data name="Cmd_info.bootconfig_Desc" xml:space="preserve">
|
||||
<value>Display all Boot Configuration Data entries in the boot store.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.problemdevices_Title" xml:space="preserve">
|
||||
<value>List Devices With Problems</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.problemdevices_Desc" xml:space="preserve">
|
||||
<value>Enumerate devices currently reporting a driver or hardware problem.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.eventlogs_Title" xml:space="preserve">
|
||||
<value>List All Event Logs</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.eventlogs_Desc" xml:space="preserve">
|
||||
<value>Enumerate every event log channel available on the system.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.joinstate_Title" xml:space="preserve">
|
||||
<value>Device Join State (Entra/AD)</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.joinstate_Desc" xml:space="preserve">
|
||||
<value>Show Microsoft Entra/Active Directory join and device registration status.</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.printqueue_Title" xml:space="preserve">
|
||||
<value>Clear Stuck Print Queue</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.printqueue_Desc" xml:space="preserve">
|
||||
<value>Stop the Spooler, delete queued print jobs, then restart the Spooler.</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.edgecache_Title" xml:space="preserve">
|
||||
<value>Clear Microsoft Edge Cache</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.edgecache_Desc" xml:space="preserve">
|
||||
<value>Delete the Microsoft Edge default profile cache (close Edge first).</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.teamscache_Title" xml:space="preserve">
|
||||
<value>Clear New Teams Cache</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.teamscache_Desc" xml:space="preserve">
|
||||
<value>Delete the cache for the new Microsoft Teams app (close Teams first).</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -1337,4 +1337,988 @@ Tiếp tục?</value>
|
||||
<data name="PortableInfo_LogFolder" xml:space="preserve">
|
||||
<value>Thư mục nhật ký</value>
|
||||
</data>
|
||||
<data name="Cmd_info.hotfixes_Title" xml:space="preserve">
|
||||
<value>Bản cập nhật đã cài</value>
|
||||
</data>
|
||||
<data name="Cmd_info.hotfixes_Desc" xml:space="preserve">
|
||||
<value>Liệt kê các bản cập nhật & hotfix Windows đã cài, mới nhất trước.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.drivers_Title" xml:space="preserve">
|
||||
<value>Driver đã cài</value>
|
||||
</data>
|
||||
<data name="Cmd_info.drivers_Desc" xml:space="preserve">
|
||||
<value>Liệt kê driver thiết bị đã ký kèm phiên bản và nhà cung cấp.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.bios_Title" xml:space="preserve">
|
||||
<value>Thông tin BIOS / Firmware</value>
|
||||
</data>
|
||||
<data name="Cmd_info.bios_Desc" xml:space="preserve">
|
||||
<value>Hiện hãng, phiên bản, số sê-ri và ngày phát hành BIOS.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.env_Title" xml:space="preserve">
|
||||
<value>Biến môi trường</value>
|
||||
</data>
|
||||
<data name="Cmd_info.env_Desc" xml:space="preserve">
|
||||
<value>Liệt kê các biến môi trường hiện tại và giá trị.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.installedapps_Title" xml:space="preserve">
|
||||
<value>Chương trình đã cài</value>
|
||||
</data>
|
||||
<data name="Cmd_info.installedapps_Desc" xml:space="preserve">
|
||||
<value>Liệt kê chương trình đã cài từ khóa Uninstall trong registry.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.monitors_Title" xml:space="preserve">
|
||||
<value>Thông tin màn hình</value>
|
||||
</data>
|
||||
<data name="Cmd_info.monitors_Desc" xml:space="preserve">
|
||||
<value>Hiện màn hình đang kết nối kèm độ phân giải và tần số quét.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.netstat_Title" xml:space="preserve">
|
||||
<value>Kết nối đang hoạt động</value>
|
||||
</data>
|
||||
<data name="Cmd_net.netstat_Desc" xml:space="preserve">
|
||||
<value>Hiện kết nối TCP/UDP và cổng đang lắng nghe kèm PID.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.arp_Title" xml:space="preserve">
|
||||
<value>Bộ nhớ ARP</value>
|
||||
</data>
|
||||
<data name="Cmd_net.arp_Desc" xml:space="preserve">
|
||||
<value>Hiện bảng ARP ánh xạ địa chỉ IP sang MAC.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.route_Title" xml:space="preserve">
|
||||
<value>Bảng định tuyến</value>
|
||||
</data>
|
||||
<data name="Cmd_net.route_Desc" xml:space="preserve">
|
||||
<value>In bảng định tuyến IPv4/IPv6.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.wifi.profiles_Title" xml:space="preserve">
|
||||
<value>Hồ sơ Wi-Fi</value>
|
||||
</data>
|
||||
<data name="Cmd_net.wifi.profiles_Desc" xml:space="preserve">
|
||||
<value>Liệt kê các hồ sơ mạng Wi-Fi (WLAN) đã lưu.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.proxy.show_Title" xml:space="preserve">
|
||||
<value>Proxy WinHTTP</value>
|
||||
</data>
|
||||
<data name="Cmd_net.proxy.show_Desc" xml:space="preserve">
|
||||
<value>Hiện cấu hình proxy WinHTTP của hệ thống.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.darkmode.on_Title" xml:space="preserve">
|
||||
<value>Bật chế độ tối</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.darkmode.on_Desc" xml:space="preserve">
|
||||
<value>Chuyển ứng dụng và giao diện hệ thống sang chế độ tối.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.darkmode.off_Title" xml:space="preserve">
|
||||
<value>Bật chế độ sáng</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.darkmode.off_Desc" xml:space="preserve">
|
||||
<value>Chuyển ứng dụng và giao diện hệ thống về chế độ sáng.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.taskbarleft_Title" xml:space="preserve">
|
||||
<value>Thanh tác vụ: căn trái (Win11)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.taskbarleft_Desc" xml:space="preserve">
|
||||
<value>Căn thanh tác vụ Windows 11 về bên trái và khởi động lại Explorer.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.taskbarcenter_Title" xml:space="preserve">
|
||||
<value>Thanh tác vụ: căn giữa (Win11)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.taskbarcenter_Desc" xml:space="preserve">
|
||||
<value>Căn giữa thanh tác vụ Windows 11 và khởi động lại Explorer.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.clockseconds.on_Title" xml:space="preserve">
|
||||
<value>Hiện giây trên đồng hồ (Win11)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.clockseconds.on_Desc" xml:space="preserve">
|
||||
<value>Hiện giây trên đồng hồ thanh tác vụ Windows 11 và khởi động lại Explorer.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.clockseconds.off_Title" xml:space="preserve">
|
||||
<value>Ẩn giây trên đồng hồ (Win11)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.clockseconds.off_Desc" xml:space="preserve">
|
||||
<value>Ẩn giây trên đồng hồ thanh tác vụ Windows 11 và khởi động lại Explorer.</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.thumbnailcache_Title" xml:space="preserve">
|
||||
<value>Xóa cache ảnh thu nhỏ</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.thumbnailcache_Desc" xml:space="preserve">
|
||||
<value>Xóa ảnh thu nhỏ đã lưu và khởi động lại Explorer để dựng lại.</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.fontcache_Title" xml:space="preserve">
|
||||
<value>Xóa cache phông chữ</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.fontcache_Desc" xml:space="preserve">
|
||||
<value>Dừng dịch vụ Font Cache, xóa cache và khởi động lại dịch vụ.</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.prefetch_Title" xml:space="preserve">
|
||||
<value>Xóa Prefetch</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.prefetch_Desc" xml:space="preserve">
|
||||
<value>Làm trống thư mục Prefetch của Windows (tự dựng lại).</value>
|
||||
</data>
|
||||
<data name="Cmd_power.set.balanced_Title" xml:space="preserve">
|
||||
<value>Đặt gói Cân bằng</value>
|
||||
</data>
|
||||
<data name="Cmd_power.set.balanced_Desc" xml:space="preserve">
|
||||
<value>Kích hoạt gói nguồn Cân bằng (Balanced).</value>
|
||||
</data>
|
||||
<data name="Cmd_power.requests_Title" xml:space="preserve">
|
||||
<value>Yêu cầu nguồn</value>
|
||||
</data>
|
||||
<data name="Cmd_power.requests_Desc" xml:space="preserve">
|
||||
<value>Hiện ứng dụng/driver đang ngăn máy ngủ hoặc tắt màn hình.</value>
|
||||
</data>
|
||||
<data name="Cmd_power.fastboot.off_Title" xml:space="preserve">
|
||||
<value>Tắt Khởi động nhanh</value>
|
||||
</data>
|
||||
<data name="Cmd_power.fastboot.off_Desc" xml:space="preserve">
|
||||
<value>Tắt Fast Startup (hybrid boot) để tắt máy hoàn toàn.</value>
|
||||
</data>
|
||||
<data name="Cmd_power.fastboot.on_Title" xml:space="preserve">
|
||||
<value>Bật Khởi động nhanh</value>
|
||||
</data>
|
||||
<data name="Cmd_power.fastboot.on_Desc" xml:space="preserve">
|
||||
<value>Bật Fast Startup (hybrid boot).</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.taskmgr_Title" xml:space="preserve">
|
||||
<value>Trình quản lý tác vụ</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.taskmgr_Desc" xml:space="preserve">
|
||||
<value>Mở Task Manager.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.devmgmt_Title" xml:space="preserve">
|
||||
<value>Trình quản lý thiết bị</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.devmgmt_Desc" xml:space="preserve">
|
||||
<value>Mở Device Manager.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.services_Title" xml:space="preserve">
|
||||
<value>Dịch vụ</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.services_Desc" xml:space="preserve">
|
||||
<value>Mở bảng quản lý Dịch vụ (Services).</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.gpresult_Title" xml:space="preserve">
|
||||
<value>Kết quả Group Policy</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.gpresult_Desc" xml:space="preserve">
|
||||
<value>Hiện tóm tắt Resultant Set of Policy (RSoP) cho máy và người dùng này.</value>
|
||||
</data>
|
||||
<data name="Cmd_winget.source.list_Title" xml:space="preserve">
|
||||
<value>Liệt kê nguồn winget</value>
|
||||
</data>
|
||||
<data name="Cmd_winget.source.list_Desc" xml:space="preserve">
|
||||
<value>Liệt kê các nguồn gói winget đã cấu hình.</value>
|
||||
</data>
|
||||
<data name="Cmd_store.reset_Title" xml:space="preserve">
|
||||
<value>Đặt lại Microsoft Store</value>
|
||||
</data>
|
||||
<data name="Cmd_store.reset_Desc" xml:space="preserve">
|
||||
<value>Xóa cache Microsoft Store (wsreset).</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.defender.status_Title" xml:space="preserve">
|
||||
<value>Trạng thái Defender</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.defender.status_Desc" xml:space="preserve">
|
||||
<value>Hiện trạng thái bảo vệ và phiên bản định nghĩa của Microsoft Defender.</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.defender.fullscan_Title" xml:space="preserve">
|
||||
<value>Defender quét toàn bộ</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.defender.fullscan_Desc" xml:space="preserve">
|
||||
<value>Chạy quét toàn bộ Microsoft Defender (có thể lâu).</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.firewall.on_Title" xml:space="preserve">
|
||||
<value>Bật tường lửa</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.firewall.on_Desc" xml:space="preserve">
|
||||
<value>Bật Windows Firewall cho mọi hồ sơ.</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.firewall.off_Title" xml:space="preserve">
|
||||
<value>Tắt tường lửa</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.firewall.off_Desc" xml:space="preserve">
|
||||
<value>Tắt Windows Firewall cho mọi hồ sơ. Việc này khiến máy mất bảo vệ — hãy bật lại sớm nhất có thể.</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.wsl.shutdown_Title" xml:space="preserve">
|
||||
<value>Tắt WSL</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.wsl.shutdown_Desc" xml:space="preserve">
|
||||
<value>Dừng mọi distro WSL đang chạy và máy ảo WSL.</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.sandbox.off_Title" xml:space="preserve">
|
||||
<value>Tắt Windows Sandbox</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.sandbox.off_Desc" xml:space="preserve">
|
||||
<value>Tắt tính năng tùy chọn Windows Sandbox. Cần khởi động lại.</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.longpaths.on_Title" xml:space="preserve">
|
||||
<value>Bật đường dẫn dài</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.longpaths.on_Desc" xml:space="preserve">
|
||||
<value>Bật hỗ trợ đường dẫn dài Win32 (hơn 260 ký tự).</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.longpaths.off_Title" xml:space="preserve">
|
||||
<value>Tắt đường dẫn dài</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.longpaths.off_Desc" xml:space="preserve">
|
||||
<value>Tắt hỗ trợ đường dẫn dài Win32 (về mặc định).</value>
|
||||
</data>
|
||||
<data name="Cat_storage" xml:space="preserve">
|
||||
<value>Lưu trữ</value>
|
||||
</data>
|
||||
<data name="Cmd_info.tpm_Title" xml:space="preserve">
|
||||
<value>Trạng thái TPM</value>
|
||||
</data>
|
||||
<data name="Cmd_info.tpm_Desc" xml:space="preserve">
|
||||
<value>Hiển thị sự hiện diện, phiên bản và mức độ sẵn sàng của Trusted Platform Module (TPM).</value>
|
||||
</data>
|
||||
<data name="Cmd_info.secureboot_Title" xml:space="preserve">
|
||||
<value>Trạng thái Secure Boot</value>
|
||||
</data>
|
||||
<data name="Cmd_info.secureboot_Desc" xml:space="preserve">
|
||||
<value>Báo cáo Secure Boot của UEFI có được bật hay không.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.product_Title" xml:space="preserve">
|
||||
<value>Tóm tắt máy tính & hệ điều hành</value>
|
||||
</data>
|
||||
<data name="Cmd_info.product_Desc" xml:space="preserve">
|
||||
<value>Hiển thị nhà sản xuất, kiểu máy, phiên bản hệ điều hành và ngày cài đặt.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.adapters_Title" xml:space="preserve">
|
||||
<value>Bộ điều hợp mạng</value>
|
||||
</data>
|
||||
<data name="Cmd_net.adapters_Desc" xml:space="preserve">
|
||||
<value>Liệt kê các bộ điều hợp mạng cùng trạng thái và tốc độ kết nối.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.dnsservers_Title" xml:space="preserve">
|
||||
<value>Máy chủ DNS</value>
|
||||
</data>
|
||||
<data name="Cmd_net.dnsservers_Desc" xml:space="preserve">
|
||||
<value>Liệt kê các địa chỉ máy chủ DNS đã cấu hình cho từng bộ điều hợp.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.testconnection_Title" xml:space="preserve">
|
||||
<value>Kiểm tra kết nối Internet</value>
|
||||
</data>
|
||||
<data name="Cmd_net.testconnection_Desc" xml:space="preserve">
|
||||
<value>Ping đến một máy chủ công cộng để kiểm tra kết nối Internet.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.startup_Title" xml:space="preserve">
|
||||
<value>Chương trình khởi động</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.startup_Desc" xml:space="preserve">
|
||||
<value>Liệt kê các chương trình được cấu hình chạy khi đăng nhập.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.driververifier_Title" xml:space="preserve">
|
||||
<value>Trình quản lý Driver Verifier</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.driververifier_Desc" xml:space="preserve">
|
||||
<value>Mở Driver Verifier để kiểm tra áp lực các driver thiết bị (nâng cao).</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.perfmon_Title" xml:space="preserve">
|
||||
<value>Performance Monitor</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.perfmon_Desc" xml:space="preserve">
|
||||
<value>Mở bảng điều khiển Performance Monitor đầy đủ.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.systemhealth_Title" xml:space="preserve">
|
||||
<value>Báo cáo tình trạng hệ thống</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.systemhealth_Desc" xml:space="preserve">
|
||||
<value>Tạo báo cáo chẩn đoán hệ thống (mất khoảng một phút).</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.dumps_Title" xml:space="preserve">
|
||||
<value>Xóa tệp kết xuất sự cố</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.dumps_Desc" xml:space="preserve">
|
||||
<value>Xóa các tệp kết xuất bộ nhớ và minidump đã lưu.</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.errorreports_Title" xml:space="preserve">
|
||||
<value>Xóa dữ liệu báo cáo lỗi</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.errorreports_Desc" xml:space="preserve">
|
||||
<value>Xóa các tệp Windows Error Reporting đang xếp hàng.</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.dnsarp_Title" xml:space="preserve">
|
||||
<value>Xóa bộ nhớ đệm DNS & ARP</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.dnsarp_Desc" xml:space="preserve">
|
||||
<value>Xóa bộ nhớ đệm phân giải DNS và bảng ARP.</value>
|
||||
</data>
|
||||
<data name="Cmd_power.lidclose.donothing_Title" xml:space="preserve">
|
||||
<value>Đóng nắp: Không làm gì (Khi cắm sạc)</value>
|
||||
</data>
|
||||
<data name="Cmd_power.lidclose.donothing_Desc" xml:space="preserve">
|
||||
<value>Giữ laptop hoạt động khi đóng nắp lúc dùng nguồn AC power.</value>
|
||||
</data>
|
||||
<data name="Cmd_power.lidclose.sleep_Title" xml:space="preserve">
|
||||
<value>Đóng nắp: Ngủ (Khi cắm sạc)</value>
|
||||
</data>
|
||||
<data name="Cmd_power.lidclose.sleep_Desc" xml:space="preserve">
|
||||
<value>Đưa laptop vào chế độ ngủ khi đóng nắp lúc dùng nguồn AC power.</value>
|
||||
</data>
|
||||
<data name="Cmd_power.monitor.timeout15_Title" xml:space="preserve">
|
||||
<value>Tắt màn hình sau 15 phút</value>
|
||||
</data>
|
||||
<data name="Cmd_power.monitor.timeout15_Desc" xml:space="preserve">
|
||||
<value>Tắt màn hình sau 15 phút khi dùng nguồn AC power.</value>
|
||||
</data>
|
||||
<data name="Cmd_power.monitor.timeout10_Title" xml:space="preserve">
|
||||
<value>Tắt màn hình sau 10 phút</value>
|
||||
</data>
|
||||
<data name="Cmd_power.monitor.timeout10_Desc" xml:space="preserve">
|
||||
<value>Tắt màn hình sau 10 phút khi dùng nguồn AC power (mặc định).</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.numlock.on_Title" xml:space="preserve">
|
||||
<value>Bật NumLock khi khởi động</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.numlock.on_Desc" xml:space="preserve">
|
||||
<value>Bật NumLock khi khởi động và tại màn hình đăng nhập.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.numlock.off_Title" xml:space="preserve">
|
||||
<value>Tắt NumLock khi khởi động</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.numlock.off_Desc" xml:space="preserve">
|
||||
<value>Tắt NumLock khi khởi động và tại màn hình đăng nhập.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.verbosestatus.on_Title" xml:space="preserve">
|
||||
<value>Bật thông báo đăng nhập chi tiết</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.verbosestatus.on_Desc" xml:space="preserve">
|
||||
<value>Hiển thị thông báo trạng thái chi tiết trong lúc khởi động và tắt máy.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.verbosestatus.off_Title" xml:space="preserve">
|
||||
<value>Tắt thông báo đăng nhập chi tiết</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.verbosestatus.off_Desc" xml:space="preserve">
|
||||
<value>Khôi phục thông báo khởi động và tắt máy thông thường.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.optimize_Title" xml:space="preserve">
|
||||
<value>Tối ưu / Chống phân mảnh ổ C:</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.optimize_Desc" xml:space="preserve">
|
||||
<value>Tối ưu ổ C: (TRIM cho SSD, chống phân mảnh cho HDD).</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.diskmgmt_Title" xml:space="preserve">
|
||||
<value>Disk Management</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.diskmgmt_Desc" xml:space="preserve">
|
||||
<value>Mở bảng điều khiển Disk Management.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.volumes_Title" xml:space="preserve">
|
||||
<value>Liệt kê ổ đĩa & dung lượng trống</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.volumes_Desc" xml:space="preserve">
|
||||
<value>Hiển thị các ổ đĩa cùng hệ thống tệp và dung lượng trống.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.storagesense_Title" xml:space="preserve">
|
||||
<value>Mở cài đặt Lưu trữ</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.storagesense_Desc" xml:space="preserve">
|
||||
<value>Mở cài đặt Lưu trữ của Windows để quản lý Storage Sense.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.battery.health_Title" xml:space="preserve">
|
||||
<value>Tình trạng pin</value>
|
||||
</data>
|
||||
<data name="Cmd_info.battery.health_Desc" xml:space="preserve">
|
||||
<value>Hiển thị dung lượng thiết kế so với dung lượng sạc đầy của pin.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.netadapter.speed_Title" xml:space="preserve">
|
||||
<value>Tốc độ card mạng</value>
|
||||
</data>
|
||||
<data name="Cmd_info.netadapter.speed_Desc" xml:space="preserve">
|
||||
<value>Liệt kê các card mạng đang hoạt động cùng tốc độ liên kết và địa chỉ MAC.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.diskhealth_Title" xml:space="preserve">
|
||||
<value>Tình trạng ổ đĩa</value>
|
||||
</data>
|
||||
<data name="Cmd_info.diskhealth_Desc" xml:space="preserve">
|
||||
<value>Hiển thị tình trạng và trạng thái hoạt động của từng ổ đĩa vật lý.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.pagefile_Title" xml:space="preserve">
|
||||
<value>Sử dụng tệp trang</value>
|
||||
</data>
|
||||
<data name="Cmd_info.pagefile_Desc" xml:space="preserve">
|
||||
<value>Hiển thị kích thước và mức sử dụng hiện tại của tệp trang.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.localusers_Title" xml:space="preserve">
|
||||
<value>Tài khoản người dùng cục bộ</value>
|
||||
</data>
|
||||
<data name="Cmd_info.localusers_Desc" xml:space="preserve">
|
||||
<value>Liệt kê các tài khoản người dùng cục bộ và trạng thái kích hoạt.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.timezone_Title" xml:space="preserve">
|
||||
<value>Thời gian & múi giờ</value>
|
||||
</data>
|
||||
<data name="Cmd_info.timezone_Desc" xml:space="preserve">
|
||||
<value>Hiển thị múi giờ hiện tại và trạng thái đồng bộ thời gian.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.osinstalldate_Title" xml:space="preserve">
|
||||
<value>Ngày cài đặt Windows</value>
|
||||
</data>
|
||||
<data name="Cmd_info.osinstalldate_Desc" xml:space="preserve">
|
||||
<value>Hiển thị thời điểm Windows được cài đặt và cách đây bao nhiêu ngày.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.publicdns_Title" xml:space="preserve">
|
||||
<value>Kiểm tra phân giải DNS công cộng</value>
|
||||
</data>
|
||||
<data name="Cmd_net.publicdns_Desc" xml:space="preserve">
|
||||
<value>Phân giải một tên miền phổ biến qua DNS của Google để kiểm tra phân giải tên.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.tcpconnections_Title" xml:space="preserve">
|
||||
<value>Kết nối TCP đang hoạt động</value>
|
||||
</data>
|
||||
<data name="Cmd_net.tcpconnections_Desc" xml:space="preserve">
|
||||
<value>Liệt kê các kết nối TCP đã thiết lập và tiến trình sở hữu.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.firewallprofiles_Title" xml:space="preserve">
|
||||
<value>Hồ sơ tường lửa</value>
|
||||
</data>
|
||||
<data name="Cmd_net.firewallprofiles_Desc" xml:space="preserve">
|
||||
<value>Hiển thị từng hồ sơ tường lửa và hành động mặc định.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.netshares_Title" xml:space="preserve">
|
||||
<value>Thư mục chia sẻ</value>
|
||||
</data>
|
||||
<data name="Cmd_net.netshares_Desc" xml:space="preserve">
|
||||
<value>Liệt kê các chia sẻ SMB do máy tính này cung cấp.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.hostsfile.show_Title" xml:space="preserve">
|
||||
<value>Xem tệp hosts</value>
|
||||
</data>
|
||||
<data name="Cmd_net.hostsfile.show_Desc" xml:space="preserve">
|
||||
<value>Hiển thị nội dung của tệp hosts trên Windows.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.netconnections.diag_Title" xml:space="preserve">
|
||||
<value>Kết nối mạng</value>
|
||||
</data>
|
||||
<data name="Cmd_net.netconnections.diag_Desc" xml:space="preserve">
|
||||
<value>Mở bảng điều khiển Kết nối mạng.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.lastboottime_Title" xml:space="preserve">
|
||||
<value>Sự kiện khởi động & tắt máy gần đây</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.lastboottime_Desc" xml:space="preserve">
|
||||
<value>Liệt kê các sự kiện khởi động và tắt máy gần đây nhất.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.bsod.recent_Title" xml:space="preserve">
|
||||
<value>Tắt máy đột ngột gần đây</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.bsod.recent_Desc" xml:space="preserve">
|
||||
<value>Liệt kê các sự kiện tắt máy đột ngột Kernel-Power (sự kiện 41) gần đây.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.toperrors_Title" xml:space="preserve">
|
||||
<value>Lỗi hệ thống gần đây</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.toperrors_Desc" xml:space="preserve">
|
||||
<value>Liệt kê các mục nghiêm trọng và lỗi gần đây từ nhật ký Hệ thống.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.printmgmt_Title" xml:space="preserve">
|
||||
<value>Quản lý in</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.printmgmt_Desc" xml:space="preserve">
|
||||
<value>Mở bảng điều khiển Quản lý in.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.certmgr_Title" xml:space="preserve">
|
||||
<value>Trình quản lý chứng chỉ</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.certmgr_Desc" xml:space="preserve">
|
||||
<value>Mở Trình quản lý chứng chỉ của người dùng hiện tại.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.diskusage_Title" xml:space="preserve">
|
||||
<value>Tóm tắt dung lượng ổ đĩa</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.diskusage_Desc" xml:space="preserve">
|
||||
<value>Hiển thị dung lượng đã dùng và còn trống cho mỗi ổ đĩa.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.smart.status_Title" xml:space="preserve">
|
||||
<value>Trạng thái SMART của ổ đĩa</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.smart.status_Desc" xml:space="preserve">
|
||||
<value>Hiển thị trạng thái dự đoán hỏng hóc SMART của từng ổ đĩa.</value>
|
||||
</data>
|
||||
<data name="Cat_services-startup" xml:space="preserve">
|
||||
<value>Dịch vụ & Khởi động</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.largefiles.temp_Title" xml:space="preserve">
|
||||
<value>Tệp tạm lớn nhất</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.largefiles.temp_Desc" xml:space="preserve">
|
||||
<value>Liệt kê các tệp lớn nhất trong thư mục tạm.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.partition.list_Title" xml:space="preserve">
|
||||
<value>Liệt kê phân vùng</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.partition.list_Desc" xml:space="preserve">
|
||||
<value>Liệt kê tất cả phân vùng ổ đĩa và kích thước.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.fragmentation.analyze_Title" xml:space="preserve">
|
||||
<value>Phân tích phân mảnh</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.fragmentation.analyze_Desc" xml:space="preserve">
|
||||
<value>Phân tích phân mảnh ổ C: mà không thay đổi gì.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.cleanmgr.settings_Title" xml:space="preserve">
|
||||
<value>Cấu hình Dọn dẹp ổ đĩa</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.cleanmgr.settings_Desc" xml:space="preserve">
|
||||
<value>Mở cài đặt Dọn dẹp ổ đĩa để chọn nội dung cần dọn.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.diskpart.list_Title" xml:space="preserve">
|
||||
<value>Liệt kê đĩa & ổ</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.diskpart.list_Desc" xml:space="preserve">
|
||||
<value>Liệt kê đĩa và ổ bằng DiskPart (chỉ đọc).</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.spooler.restart_Title" xml:space="preserve">
|
||||
<value>Khởi động lại Print Spooler</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.spooler.restart_Desc" xml:space="preserve">
|
||||
<value>Khởi động lại dịch vụ Print Spooler để xóa lệnh in bị kẹt.</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.audio.restart_Title" xml:space="preserve">
|
||||
<value>Khởi động lại dịch vụ âm thanh</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.audio.restart_Desc" xml:space="preserve">
|
||||
<value>Khởi động lại dịch vụ Windows Audio để khắc phục sự cố âm thanh.</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.wuauserv.restart_Title" xml:space="preserve">
|
||||
<value>Khởi động lại dịch vụ Windows Update</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.wuauserv.restart_Desc" xml:space="preserve">
|
||||
<value>Khởi động lại dịch vụ Windows Update.</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.bits.restart_Title" xml:space="preserve">
|
||||
<value>Khởi động lại BITS</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.bits.restart_Desc" xml:space="preserve">
|
||||
<value>Khởi động lại dịch vụ truyền nền BITS.</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.list.running_Title" xml:space="preserve">
|
||||
<value>Liệt kê dịch vụ đang chạy</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.list.running_Desc" xml:space="preserve">
|
||||
<value>Liệt kê tất cả dịch vụ đang chạy.</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.list.automatic_Title" xml:space="preserve">
|
||||
<value>Liệt kê dịch vụ tự động</value>
|
||||
</data>
|
||||
<data name="Cmd_svc.list.automatic_Desc" xml:space="preserve">
|
||||
<value>Liệt kê các dịch vụ khởi động tự động và trạng thái.</value>
|
||||
</data>
|
||||
<data name="Cmd_startup.apps.settings_Title" xml:space="preserve">
|
||||
<value>Ứng dụng khởi động</value>
|
||||
</data>
|
||||
<data name="Cmd_startup.apps.settings_Desc" xml:space="preserve">
|
||||
<value>Mở trang cài đặt ứng dụng khởi động cùng Windows.</value>
|
||||
</data>
|
||||
<data name="Cmd_startup.folder.open_Title" xml:space="preserve">
|
||||
<value>Mở thư mục Startup</value>
|
||||
</data>
|
||||
<data name="Cmd_startup.folder.open_Desc" xml:space="preserve">
|
||||
<value>Mở thư mục Khởi động của người dùng hiện tại.</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.iconcache_Title" xml:space="preserve">
|
||||
<value>Xóa tệp bộ nhớ đệm biểu tượng</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.iconcache_Desc" xml:space="preserve">
|
||||
<value>Xóa bộ nhớ đệm biểu tượng của Explorer để dựng lại.</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.recentfiles_Title" xml:space="preserve">
|
||||
<value>Xóa mục gần đây</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.recentfiles_Desc" xml:space="preserve">
|
||||
<value>Xóa danh sách tệp và thư mục mở gần đây.</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.eventlogs_Title" xml:space="preserve">
|
||||
<value>Xóa nhật ký sự kiện</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.eventlogs_Desc" xml:space="preserve">
|
||||
<value>Xóa nhật ký sự kiện Ứng dụng và Hệ thống.</value>
|
||||
</data>
|
||||
<data name="Cmd_power.set.powersaver_Title" xml:space="preserve">
|
||||
<value>Gói Tiết kiệm điện</value>
|
||||
</data>
|
||||
<data name="Cmd_power.set.powersaver_Desc" xml:space="preserve">
|
||||
<value>Chuyển sang gói nguồn Tiết kiệm điện.</value>
|
||||
</data>
|
||||
<data name="Cmd_power.hibernate.now_Title" xml:space="preserve">
|
||||
<value>Ngủ đông ngay</value>
|
||||
</data>
|
||||
<data name="Cmd_power.hibernate.now_Desc" xml:space="preserve">
|
||||
<value>Đưa máy tính vào chế độ ngủ đông ngay lập tức.</value>
|
||||
</data>
|
||||
<data name="Cmd_chkdsk.scan.online_Title" xml:space="preserve">
|
||||
<value>Quét ổ đĩa trực tuyến</value>
|
||||
</data>
|
||||
<data name="Cmd_chkdsk.scan.online_Desc" xml:space="preserve">
|
||||
<value>Quét lỗi ổ C: ngay khi đang dùng mà không cần ngắt kết nối.</value>
|
||||
</data>
|
||||
<data name="Cmd_sfc.verifyonly_Title" xml:space="preserve">
|
||||
<value>Kiểm tra tệp hệ thống</value>
|
||||
</data>
|
||||
<data name="Cmd_sfc.verifyonly_Desc" xml:space="preserve">
|
||||
<value>Kiểm tra tệp hệ thống được bảo vệ có bị hỏng mà không sửa chữa.</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.defender.history_Title" xml:space="preserve">
|
||||
<value>Lịch sử mối đe dọa Defender</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.defender.history_Desc" xml:space="preserve">
|
||||
<value>Hiển thị các phát hiện mối đe dọa gần đây của Microsoft Defender.</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.defender.exclusions_Title" xml:space="preserve">
|
||||
<value>Loại trừ của Defender</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.defender.exclusions_Desc" xml:space="preserve">
|
||||
<value>Liệt kê các đường dẫn, phần mở rộng và tiến trình được loại trừ khỏi Defender.</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.bitlocker.detail_Title" xml:space="preserve">
|
||||
<value>Chi tiết ổ đĩa BitLocker</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.bitlocker.detail_Desc" xml:space="preserve">
|
||||
<value>Hiển thị trạng thái và tiến độ mã hóa cho từng ổ đĩa.</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.firewall.reset_Title" xml:space="preserve">
|
||||
<value>Đặt lại tường lửa về mặc định</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.firewall.reset_Desc" xml:space="preserve">
|
||||
<value>Đặt lại toàn bộ quy tắc Tường lửa Windows về chính sách mặc định.</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.defender.signatures.remove_Title" xml:space="preserve">
|
||||
<value>Xóa chữ ký động</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.defender.signatures.remove_Desc" xml:space="preserve">
|
||||
<value>Xóa các định nghĩa động của Defender để sửa bản cập nhật bị hỏng.</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.windowssecurity.open_Title" xml:space="preserve">
|
||||
<value>Mở Bảo mật Windows</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.windowssecurity.open_Desc" xml:space="preserve">
|
||||
<value>Mở ứng dụng Bảo mật Windows.</value>
|
||||
</data>
|
||||
<data name="Cmd_wu.history_Title" xml:space="preserve">
|
||||
<value>Lịch sử cập nhật</value>
|
||||
</data>
|
||||
<data name="Cmd_wu.history_Desc" xml:space="preserve">
|
||||
<value>Liệt kê các bản cập nhật Windows được cài đặt gần đây nhất.</value>
|
||||
</data>
|
||||
<data name="Cmd_wu.pause_Title" xml:space="preserve">
|
||||
<value>Cài đặt Windows Update</value>
|
||||
</data>
|
||||
<data name="Cmd_wu.pause_Desc" xml:space="preserve">
|
||||
<value>Mở trang cài đặt Windows Update.</value>
|
||||
</data>
|
||||
<data name="Cmd_winget.upgrade.winget_Title" xml:space="preserve">
|
||||
<value>Cập nhật App Installer</value>
|
||||
</data>
|
||||
<data name="Cmd_winget.upgrade.winget_Desc" xml:space="preserve">
|
||||
<value>Cập nhật winget App Installer lên phiên bản mới nhất.</value>
|
||||
</data>
|
||||
<data name="Cmd_winget.export.list_Title" xml:space="preserve">
|
||||
<value>Xuất danh sách gói đã cài</value>
|
||||
</data>
|
||||
<data name="Cmd_winget.export.list_Desc" xml:space="preserve">
|
||||
<value>Xuất danh sách gói winget ra tệp JSON.</value>
|
||||
</data>
|
||||
<data name="Cmd_wu.driver.list_Title" xml:space="preserve">
|
||||
<value>Trình điều khiển bên thứ ba</value>
|
||||
</data>
|
||||
<data name="Cmd_wu.driver.list_Desc" xml:space="preserve">
|
||||
<value>Liệt kê các trình điều khiển không tích hợp sẵn trên hệ thống.</value>
|
||||
</data>
|
||||
<data name="Cmd_store.troubleshoot_Title" xml:space="preserve">
|
||||
<value>Trình khắc phục sự cố</value>
|
||||
</data>
|
||||
<data name="Cmd_store.troubleshoot_Desc" xml:space="preserve">
|
||||
<value>Mở trang cài đặt trình khắc phục sự cố của Windows.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.taskbarsearch.hide_Title" xml:space="preserve">
|
||||
<value>Ẩn tìm kiếm trên thanh tác vụ</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.taskbarsearch.hide_Desc" xml:space="preserve">
|
||||
<value>Ẩn hộp tìm kiếm khỏi thanh tác vụ.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.taskbarsearch.show_Title" xml:space="preserve">
|
||||
<value>Hiện tìm kiếm trên thanh tác vụ</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.taskbarsearch.show_Desc" xml:space="preserve">
|
||||
<value>Hiển thị hộp tìm kiếm trên thanh tác vụ.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.transparency.off_Title" xml:space="preserve">
|
||||
<value>Tắt hiệu ứng trong suốt</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.transparency.off_Desc" xml:space="preserve">
|
||||
<value>Tắt hiệu ứng trong suốt của cửa sổ.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.transparency.on_Title" xml:space="preserve">
|
||||
<value>Bật hiệu ứng trong suốt</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.transparency.on_Desc" xml:space="preserve">
|
||||
<value>Bật hiệu ứng trong suốt của cửa sổ.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.snapassist.off_Title" xml:space="preserve">
|
||||
<value>Tắt Snap assist</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.snapassist.off_Desc" xml:space="preserve">
|
||||
<value>Ngăn Windows gợi ý cửa sổ khi chia đôi màn hình.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.snapassist.on_Title" xml:space="preserve">
|
||||
<value>Bật Snap assist</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.snapassist.on_Desc" xml:space="preserve">
|
||||
<value>Cho phép Windows gợi ý cửa sổ khi chia đôi màn hình.</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.telnet.on_Title" xml:space="preserve">
|
||||
<value>Bật ứng dụng Telnet</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.telnet.on_Desc" xml:space="preserve">
|
||||
<value>Cài đặt tính năng ứng dụng Telnet của Windows.</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.telnet.off_Title" xml:space="preserve">
|
||||
<value>Tắt ứng dụng Telnet</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.telnet.off_Desc" xml:space="preserve">
|
||||
<value>Gỡ tính năng ứng dụng Telnet của Windows.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.widgets.hide_Title" xml:space="preserve">
|
||||
<value>Ẩn nút Widgets (Win11)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.widgets.hide_Desc" xml:space="preserve">
|
||||
<value>Gỡ nút Widgets khỏi thanh tác vụ Windows 11 (theo người dùng; khởi động lại Explorer để áp dụng).</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.copilot.hide_Title" xml:space="preserve">
|
||||
<value>Ẩn nút Copilot (Win11)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.copilot.hide_Desc" xml:space="preserve">
|
||||
<value>Gỡ nút Copilot khỏi thanh tác vụ trên Windows 11 22H2/23H2.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.endtask.on_Title" xml:space="preserve">
|
||||
<value>Bật End Task trên thanh tác vụ (Win11)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.endtask.on_Desc" xml:space="preserve">
|
||||
<value>Thêm mục End task vào menu chuột phải trên thanh tác vụ (Windows 11 23H2+).</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.taskbarlabels.show_Title" xml:space="preserve">
|
||||
<value>Không gộp + hiện nhãn (Win11)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.taskbarlabels.show_Desc" xml:space="preserve">
|
||||
<value>Hiện các nút thanh tác vụ tách rời kèm nhãn chữ (Windows 11 22H2+; khởi động lại Explorer để áp dụng).</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.start.morepins_Title" xml:space="preserve">
|
||||
<value>Bố cục Start: Nhiều ghim hơn (Win11)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win11.start.morepins_Desc" xml:space="preserve">
|
||||
<value>Chuyển menu Start của Windows 11 sang bố cục More pins (nhiều ghim hơn).</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.dynamiclighting_Title" xml:space="preserve">
|
||||
<value>Cài đặt Dynamic Lighting (Win11)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.dynamiclighting_Desc" xml:space="preserve">
|
||||
<value>Mở trang Dynamic Lighting để điều khiển thiết bị RGB ngay trong Windows (Windows 11 23H2+).</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win10.newsinterests.hide_Title" xml:space="preserve">
|
||||
<value>Tắt News and Interests (Win10)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win10.newsinterests.hide_Desc" xml:space="preserve">
|
||||
<value>Gỡ cụm thời tiết/tin tức News and Interests khỏi thanh tác vụ Windows 10.</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win10.meetnow.hide_Title" xml:space="preserve">
|
||||
<value>Ẩn biểu tượng Meet Now (Win10)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win10.meetnow.hide_Desc" xml:space="preserve">
|
||||
<value>Gỡ biểu tượng Skype Meet Now khỏi khay hệ thống Windows 10 (khởi động lại Explorer để áp dụng).</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win10.peoplebar.hide_Title" xml:space="preserve">
|
||||
<value>Ẩn thanh People (Win10)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win10.peoplebar.hide_Desc" xml:space="preserve">
|
||||
<value>Gỡ nút People khỏi thanh tác vụ Windows 10 (khởi động lại Explorer để áp dụng).</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win10.cortanabutton.hide_Title" xml:space="preserve">
|
||||
<value>Ẩn nút Cortana (Win10)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win10.cortanabutton.hide_Desc" xml:space="preserve">
|
||||
<value>Gỡ nút Cortana khỏi thanh tác vụ Windows 10 (khởi động lại Explorer để áp dụng).</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win10.livetiles.off_Title" xml:space="preserve">
|
||||
<value>Tắt Live Tiles (Win10)</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.win10.livetiles.off_Desc" xml:space="preserve">
|
||||
<value>Tắt toàn bộ thông báo ô động (live tile) trên menu Start Windows 10 (đăng xuất để áp dụng).</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.startdelay.off_Title" xml:space="preserve">
|
||||
<value>Tắt độ trễ ứng dụng khởi động</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.startdelay.off_Desc" xml:space="preserve">
|
||||
<value>Bỏ độ trễ trước khi các ứng dụng khởi động chạy lúc đăng nhập (theo người dùng).</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.startsearch.noweb_Title" xml:space="preserve">
|
||||
<value>Tắt kết quả web trong Tìm kiếm</value>
|
||||
</data>
|
||||
<data name="Cmd_tweak.startsearch.noweb_Desc" xml:space="preserve">
|
||||
<value>Ngăn Windows Search hiển thị kết quả và gợi ý web từ Bing.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.wifi.capabilities_Title" xml:space="preserve">
|
||||
<value>Khả năng sóng Wi-Fi</value>
|
||||
</data>
|
||||
<data name="Cmd_net.wifi.capabilities_Desc" xml:space="preserve">
|
||||
<value>Hiển thị chi tiết driver bộ điều hợp không dây và các chuẩn sóng hỗ trợ (802.11 a/b/g/n/ac/ax).</value>
|
||||
</data>
|
||||
<data name="Cmd_net.tcp.global_Title" xml:space="preserve">
|
||||
<value>Xem cài đặt TCP toàn cục</value>
|
||||
</data>
|
||||
<data name="Cmd_net.tcp.global_Desc" xml:space="preserve">
|
||||
<value>Hiển thị các tham số điều chỉnh TCP/IP toàn cục như auto-tuning và bộ điều khiển tắc nghẽn.</value>
|
||||
</data>
|
||||
<data name="Cmd_net.wlan.report_Title" xml:space="preserve">
|
||||
<value>Tạo báo cáo lịch sử Wi-Fi</value>
|
||||
</data>
|
||||
<data name="Cmd_net.wlan.report_Desc" xml:space="preserve">
|
||||
<value>Tạo báo cáo HTML về kết nối Wi-Fi trong ProgramData để chẩn đoán sự cố.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.smart.reliability_Title" xml:space="preserve">
|
||||
<value>Bộ đếm độ tin cậy SMART của đĩa</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.smart.reliability_Desc" xml:space="preserve">
|
||||
<value>Hiển thị độ hao mòn, nhiệt độ và bộ đếm lỗi đọc/ghi SMART của các đĩa vật lý.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.dirty.query_Title" xml:space="preserve">
|
||||
<value>Kiểm tra dirty bit của ổ đĩa</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.dirty.query_Desc" xml:space="preserve">
|
||||
<value>Kiểm tra ổ C: có bị đánh dấu dirty và sẽ được chkdsk quét ở lần khởi động tới hay không.</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.sectorinfo_Title" xml:space="preserve">
|
||||
<value>Thông tin kích thước sector đĩa</value>
|
||||
</data>
|
||||
<data name="Cmd_storage.sectorinfo_Desc" xml:space="preserve">
|
||||
<value>Hiển thị kích thước sector vật lý/logic và thông tin căn chỉnh của ổ C:.</value>
|
||||
</data>
|
||||
<data name="Cmd_power.waketimers_Title" xml:space="preserve">
|
||||
<value>Liệt kê wake timer đang hoạt động</value>
|
||||
</data>
|
||||
<data name="Cmd_power.waketimers_Desc" xml:space="preserve">
|
||||
<value>Hiển thị các bộ hẹn giờ được phép đánh thức máy khỏi chế độ ngủ.</value>
|
||||
</data>
|
||||
<data name="Cmd_power.hibernate.reduced_Title" xml:space="preserve">
|
||||
<value>Giảm kích thước file ngủ đông</value>
|
||||
</data>
|
||||
<data name="Cmd_power.hibernate.reduced_Desc" xml:space="preserve">
|
||||
<value>Đặt hiberfil.sys sang chế độ reduced (hỗ trợ fast startup, không ngủ đông đầy đủ) để tiết kiệm dung lượng đĩa.</value>
|
||||
</data>
|
||||
<data name="Cmd_power.energysaver.settings_Title" xml:space="preserve">
|
||||
<value>Cài đặt Energy Saver (Win11 24H2)</value>
|
||||
</data>
|
||||
<data name="Cmd_power.energysaver.settings_Desc" xml:space="preserve">
|
||||
<value>Mở trang cài đặt Energy Saver được thêm cho máy để bàn trong Windows 11 24H2.</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.recall.status_Title" xml:space="preserve">
|
||||
<value>Trạng thái tính năng Recall (Win11 24H2)</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.recall.status_Desc" xml:space="preserve">
|
||||
<value>Hiển thị tính năng tùy chọn Windows Recall đang bật, tắt hay đã gỡ.</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.presence.settings_Title" xml:space="preserve">
|
||||
<value>Cài đặt cảm biến hiện diện (Win11)</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.presence.settings_Desc" xml:space="preserve">
|
||||
<value>Mở cài đặt quyền riêng tư cảm biến hiện diện cho các cảm biến tương thích (Windows 11 22H2+).</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.localadmins_Title" xml:space="preserve">
|
||||
<value>Thành viên nhóm Administrators cục bộ</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.localadmins_Desc" xml:space="preserve">
|
||||
<value>Liệt kê tất cả thành viên của nhóm Administrators cục bộ (theo SID cố định).</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.certstore.root_Title" xml:space="preserve">
|
||||
<value>Chứng chỉ gốc tin cậy</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.certstore.root_Desc" xml:space="preserve">
|
||||
<value>Liệt kê các chứng chỉ trong kho Trusted Root Certification Authorities của máy.</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.firewall.rules_Title" xml:space="preserve">
|
||||
<value>Quy tắc tường lửa (Tất cả)</value>
|
||||
</data>
|
||||
<data name="Cmd_sec.firewall.rules_Desc" xml:space="preserve">
|
||||
<value>Hiển thị toàn bộ quy tắc Windows Defender Firewall đã cấu hình kèm thiết lập.</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.devdrive.query_Title" xml:space="preserve">
|
||||
<value>Trạng thái Dev Drive (fsutil)</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.devdrive.query_Desc" xml:space="preserve">
|
||||
<value>Truy vấn hỗ trợ Dev Drive và các filter được phép gắn (Windows 11 22H2+).</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.sudo.status_Title" xml:space="preserve">
|
||||
<value>Trạng thái Sudo cho Windows</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.sudo.status_Desc" xml:space="preserve">
|
||||
<value>Báo cáo Sudo cho Windows có đang bật không và ở chế độ chạy nào (Windows 11 24H2).</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.hyperv.vms_Title" xml:space="preserve">
|
||||
<value>Liệt kê máy ảo Hyper-V</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.hyperv.vms_Desc" xml:space="preserve">
|
||||
<value>Liệt kê các máy ảo Hyper-V kèm trạng thái, CPU, bộ nhớ và thời gian chạy (cần Hyper-V).</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.bcdedit.hypervisor_Title" xml:space="preserve">
|
||||
<value>Kiểu khởi chạy hypervisor khi boot</value>
|
||||
</data>
|
||||
<data name="Cmd_dev.bcdedit.hypervisor_Desc" xml:space="preserve">
|
||||
<value>Hiển thị mục boot hiện tại, bao gồm thiết lập hypervisorlaunchtype.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.whoami_Title" xml:space="preserve">
|
||||
<value>Quyền & nhóm của người dùng hiện tại</value>
|
||||
</data>
|
||||
<data name="Cmd_info.whoami_Desc" xml:space="preserve">
|
||||
<value>Hiển thị SID, các nhóm và đặc quyền đang bật của người dùng hiện tại.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.startapps_Title" xml:space="preserve">
|
||||
<value>Liệt kê ứng dụng & ID trên Start</value>
|
||||
</data>
|
||||
<data name="Cmd_info.startapps_Desc" xml:space="preserve">
|
||||
<value>Liệt kê mọi ứng dụng trên menu Start kèm mã AppUserModelID để khởi chạy.</value>
|
||||
</data>
|
||||
<data name="Cmd_info.bootconfig_Title" xml:space="preserve">
|
||||
<value>Xem cấu hình khởi động (BCD)</value>
|
||||
</data>
|
||||
<data name="Cmd_info.bootconfig_Desc" xml:space="preserve">
|
||||
<value>Hiển thị toàn bộ mục Boot Configuration Data trong kho boot.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.problemdevices_Title" xml:space="preserve">
|
||||
<value>Liệt kê thiết bị gặp sự cố</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.problemdevices_Desc" xml:space="preserve">
|
||||
<value>Liệt kê các thiết bị đang báo lỗi driver hoặc phần cứng.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.eventlogs_Title" xml:space="preserve">
|
||||
<value>Liệt kê tất cả nhật ký sự kiện</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.eventlogs_Desc" xml:space="preserve">
|
||||
<value>Liệt kê mọi kênh nhật ký sự kiện có trên hệ thống.</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.joinstate_Title" xml:space="preserve">
|
||||
<value>Trạng thái tham gia thiết bị (Entra/AD)</value>
|
||||
</data>
|
||||
<data name="Cmd_diag.joinstate_Desc" xml:space="preserve">
|
||||
<value>Hiển thị trạng thái tham gia Microsoft Entra/Active Directory và đăng ký thiết bị.</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.printqueue_Title" xml:space="preserve">
|
||||
<value>Xóa hàng đợi in bị kẹt</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.printqueue_Desc" xml:space="preserve">
|
||||
<value>Dừng Spooler, xóa các lệnh in trong hàng đợi, rồi khởi động lại Spooler.</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.edgecache_Title" xml:space="preserve">
|
||||
<value>Xóa cache Microsoft Edge</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.edgecache_Desc" xml:space="preserve">
|
||||
<value>Xóa cache hồ sơ mặc định của Microsoft Edge (đóng Edge trước).</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.teamscache_Title" xml:space="preserve">
|
||||
<value>Xóa cache Teams mới</value>
|
||||
</data>
|
||||
<data name="Cmd_clean.teamscache_Desc" xml:space="preserve">
|
||||
<value>Xóa cache của ứng dụng Microsoft Teams mới (đóng Teams trước).</value>
|
||||
</data>
|
||||
</root>
|
||||
File diff suppressed because it is too large.
Load diff
@@ -17,7 +17,12 @@ internal sealed record CatalogViewModels(
|
||||
/// </summary>
|
||||
internal static class CatalogViewModelBuilder
|
||||
{
|
||||
public static CatalogViewModels Build(ICatalogProvider catalog)
|
||||
/// <summary>
|
||||
/// Projects the catalog to view-models, hiding commands that do not apply to the current OS build
|
||||
/// (e.g. Windows 11-only tweaks on Windows 10). The hidden commands never reach the list, palette,
|
||||
/// category counts or any dashboard.
|
||||
/// </summary>
|
||||
public static CatalogViewModels Build(ICatalogProvider catalog, int currentOsBuild)
|
||||
{
|
||||
var categoryTitles = catalog.GetCategories()
|
||||
.ToDictionary(c => c.Id, c => Strings.Get(c.TitleKey), StringComparer.Ordinal);
|
||||
@@ -26,6 +31,11 @@ internal static class CatalogViewModelBuilder
|
||||
var searchable = new List<SearchableCommand>();
|
||||
foreach (var command in catalog.GetCommands())
|
||||
{
|
||||
if (!command.AppliesToOsBuild(currentOsBuild))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
var title = Strings.Get(command.TitleKey);
|
||||
var description = Strings.Get(command.DescriptionKey);
|
||||
items.Add(new CommandItemViewModel(command, title, description));
|
||||
|
||||
@@ -12,10 +12,11 @@ public sealed partial class CommandPaletteViewModel : ObservableObject
|
||||
private readonly IReadOnlyList<SearchableCommand> _searchable;
|
||||
private readonly Dictionary<string, CommandItemViewModel> _itemsById;
|
||||
|
||||
public CommandPaletteViewModel(ICatalogProvider catalog)
|
||||
public CommandPaletteViewModel(ICatalogProvider catalog, ISystemInfoService systemInfo)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(catalog);
|
||||
var vms = CatalogViewModelBuilder.Build(catalog);
|
||||
ArgumentNullException.ThrowIfNull(systemInfo);
|
||||
var vms = CatalogViewModelBuilder.Build(catalog, systemInfo.GetStatus().OsBuild);
|
||||
_searchable = vms.Searchable;
|
||||
_itemsById = vms.Items.ToDictionary(i => i.Command.Id, StringComparer.Ordinal);
|
||||
ApplyFilter();
|
||||
|
||||
@@ -31,6 +31,7 @@ public sealed partial class MainViewModel : ObservableObject
|
||||
private readonly IRegistryService _registry;
|
||||
private readonly Dictionary<string, CommandItemViewModel> _itemsById;
|
||||
private readonly CommandDefinition? _restorePointCommand;
|
||||
private readonly int _osBuild;
|
||||
private IReadOnlyList<SearchableCommand> _searchable;
|
||||
private IReadOnlyDictionary<string, string> _categoryTitles;
|
||||
|
||||
@@ -89,7 +90,8 @@ public sealed partial class MainViewModel : ObservableObject
|
||||
}
|
||||
};
|
||||
|
||||
var vms = CatalogViewModelBuilder.Build(catalog);
|
||||
_osBuild = systemInfo.GetStatus().OsBuild;
|
||||
var vms = CatalogViewModelBuilder.Build(catalog, _osBuild);
|
||||
_searchable = vms.Searchable;
|
||||
_categoryTitles = vms.CategoryTitles;
|
||||
_itemsById = vms.Items.ToDictionary(i => i.Command.Id, StringComparer.Ordinal);
|
||||
@@ -472,7 +474,7 @@ public sealed partial class MainViewModel : ObservableObject
|
||||
{
|
||||
// Rebuild the search corpus + category-title map in the new language, and refresh the
|
||||
// already-displayed item/category/detail view-models in place.
|
||||
var vms = CatalogViewModelBuilder.Build(_catalog);
|
||||
var vms = CatalogViewModelBuilder.Build(_catalog, _osBuild);
|
||||
_searchable = vms.Searchable;
|
||||
_categoryTitles = vms.CategoryTitles;
|
||||
|
||||
|
||||
@@ -135,9 +135,10 @@ public sealed partial class RecipesViewModel : ObservableObject
|
||||
[RelayCommand]
|
||||
private void AddStep()
|
||||
{
|
||||
if (CommandToAdd is not null)
|
||||
// Avoid duplicate steps — a recipe runs each command once (don't run one command N times).
|
||||
if (CommandToAdd is { } command && !Steps.Contains(command))
|
||||
{
|
||||
Steps.Add(CommandToAdd);
|
||||
Steps.Add(command);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -67,6 +67,9 @@ public sealed partial class SettingsViewModel : ObservableObject
|
||||
new LanguageOption("", Strings.Get("LanguageOption_System")),
|
||||
new LanguageOption("en", "English"),
|
||||
new LanguageOption("vi", "Tiếng Việt"),
|
||||
new LanguageOption("ja", "日本語"),
|
||||
new LanguageOption("zh-Hans", "简体中文"),
|
||||
new LanguageOption("es", "Español"),
|
||||
];
|
||||
|
||||
// Initialize from persisted settings directly (field assignment skips the apply/save hooks).
|
||||
|
||||
@@ -155,10 +155,12 @@ public sealed partial class UserCommandsViewModel : ObservableObject
|
||||
Arguments = EditArguments.Trim(),
|
||||
};
|
||||
|
||||
// Transparency (Security.md §3): show the exact command line, and that it runs without admin.
|
||||
var commandLine = string.IsNullOrEmpty(userCommand.Arguments)
|
||||
// Transparency (Security.md §3): show the exact command line that will run (including the
|
||||
// cmd /c normalization applied by ToDefinition) and that it runs without admin.
|
||||
var effectiveArgs = UserCommandFactory.NormalizeArguments(executable, userCommand.Arguments);
|
||||
var commandLine = string.IsNullOrEmpty(effectiveArgs)
|
||||
? executable
|
||||
: executable + " " + userCommand.Arguments;
|
||||
: executable + " " + effectiveArgs;
|
||||
if (MessageBox.Show(
|
||||
string.Format(CultureInfo.CurrentCulture, Strings.Get("UserCmd_RunConfirm"), commandLine),
|
||||
Strings.Get("UserCmd_RunTitle"),
|
||||
|
||||
@@ -17,7 +17,6 @@ public partial class KeyboardShortcutsDialog : Window
|
||||
new Shortcut("Ctrl+,", Strings.Get("Menu_OpenSettings")),
|
||||
new Shortcut("Ctrl+L", Strings.Get("Menu_LogViewer")),
|
||||
new Shortcut("F5", Strings.Get("Menu_CheckForUpdates")),
|
||||
new Shortcut("F11", Strings.Get("Menu_FullScreen")),
|
||||
new Shortcut("Ctrl+Q", Strings.Get("MenuExit")),
|
||||
new Shortcut("↑ / ↓", Strings.Get("Shortcuts_ListNav")),
|
||||
new Shortcut("Enter", Strings.Get("Shortcuts_OpenSelected")),
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
xmlns:appset="clr-namespace:CommandForge.Application.Settings;assembly=CommandForge.Application"
|
||||
xmlns:views="clr-namespace:CommandForge.Wpf.Views"
|
||||
Title="{res:Loc AppTitle}"
|
||||
Width="1100" Height="720" MinWidth="900" MinHeight="600"
|
||||
Width="1100" Height="720" ResizeMode="NoResize"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
FontFamily="{DynamicResource MaterialDesignFont}"
|
||||
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
|
||||
@@ -110,10 +110,18 @@
|
||||
<MenuItem Header="Tiếng Việt" Command="{Binding Settings.SetLanguageCommand}"
|
||||
CommandParameter="vi"
|
||||
IsChecked="{Binding Settings.SelectedLanguage.Code, Converter={StaticResource StringEquals}, ConverterParameter=vi, Mode=OneWay}" />
|
||||
<MenuItem Header="日本語" Command="{Binding Settings.SetLanguageCommand}"
|
||||
CommandParameter="ja"
|
||||
IsChecked="{Binding Settings.SelectedLanguage.Code, Converter={StaticResource StringEquals}, ConverterParameter=ja, Mode=OneWay}" />
|
||||
<MenuItem Header="简体中文" Command="{Binding Settings.SetLanguageCommand}"
|
||||
CommandParameter="zh-Hans"
|
||||
IsChecked="{Binding Settings.SelectedLanguage.Code, Converter={StaticResource StringEquals}, ConverterParameter=zh-Hans, Mode=OneWay}" />
|
||||
<MenuItem Header="Español" Command="{Binding Settings.SetLanguageCommand}"
|
||||
CommandParameter="es"
|
||||
IsChecked="{Binding Settings.SelectedLanguage.Code, Converter={StaticResource StringEquals}, ConverterParameter=es, Mode=OneWay}" />
|
||||
</MenuItem>
|
||||
<Separator />
|
||||
<MenuItem Header="{res:Loc MenuToggleSidebar}" Command="{Binding ToggleSidebarCommand}" InputGestureText="Ctrl+B" />
|
||||
<MenuItem Header="{res:Loc Menu_FullScreen}" Click="OnToggleFullScreenClick" InputGestureText="F11" />
|
||||
<Separator />
|
||||
<MenuItem Header="{res:Loc Menu_OpenSettings}" Command="{Binding ShowSettingsCommand}" InputGestureText="Ctrl+," />
|
||||
</MenuItem>
|
||||
@@ -231,7 +239,8 @@
|
||||
<ListBox ItemsSource="{Binding Categories}" SelectedItem="{Binding SelectedCategory}"
|
||||
Background="Transparent" BorderThickness="0" Padding="4,4"
|
||||
HorizontalContentAlignment="Stretch"
|
||||
ScrollViewer.HorizontalScrollBarVisibility="Disabled">
|
||||
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
||||
ScrollViewer.VerticalScrollBarVisibility="Hidden">
|
||||
<ListBox.ItemContainerStyle>
|
||||
<Style TargetType="ListBoxItem" BasedOn="{StaticResource {x:Type ListBoxItem}}">
|
||||
<Setter Property="Padding" Value="12,8" />
|
||||
|
||||
@@ -18,9 +18,6 @@ public partial class MainWindow : Window
|
||||
private readonly IServiceProvider _services;
|
||||
private readonly ISettingsService _settings;
|
||||
|
||||
private bool _isFullScreen;
|
||||
private WindowState _preFullScreenState = WindowState.Normal;
|
||||
|
||||
public MainWindow(MainViewModel viewModel, IServiceProvider services, ISettingsService settings)
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -33,50 +30,31 @@ public partial class MainWindow : Window
|
||||
|
||||
private void OnExitClick(object sender, RoutedEventArgs e) => Close();
|
||||
|
||||
/// <summary>Restores the last window size/position/maximized state, ignoring off-screen positions.</summary>
|
||||
/// <summary>
|
||||
/// Restores the last window position only, ignoring off-screen positions. The window is a fixed
|
||||
/// non-resizable size (see <c>ResizeMode="NoResize"</c> in XAML), so size/maximized state is not restored.
|
||||
/// </summary>
|
||||
private void RestorePlacement()
|
||||
{
|
||||
if (_settings.WindowWidth is { } width && width >= MinWidth)
|
||||
{
|
||||
Width = width;
|
||||
}
|
||||
|
||||
if (_settings.WindowHeight is { } height && height >= MinHeight)
|
||||
{
|
||||
Height = height;
|
||||
}
|
||||
|
||||
if (_settings.WindowLeft is { } left && _settings.WindowTop is { } top && IsOnScreen(left, top, Width, Height))
|
||||
{
|
||||
WindowStartupLocation = WindowStartupLocation.Manual;
|
||||
Left = left;
|
||||
Top = top;
|
||||
}
|
||||
|
||||
if (_settings.WindowMaximized)
|
||||
{
|
||||
WindowState = WindowState.Maximized;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Persists the current window placement (using restore bounds when maximized/minimized).</summary>
|
||||
/// <summary>Persists the current window position (size/maximized are fixed and not saved).</summary>
|
||||
private void SavePlacement()
|
||||
{
|
||||
var bounds = WindowState == WindowState.Normal
|
||||
? new Rect(Left, Top, Width, Height)
|
||||
: RestoreBounds;
|
||||
|
||||
// RestoreBounds is empty before the window is first laid out — skip rather than save zeros.
|
||||
if (bounds.Width <= 0 || bounds.Height <= 0)
|
||||
// Left/Top are not yet meaningful before the window is first laid out — skip rather than save garbage.
|
||||
if (double.IsNaN(Left) || double.IsNaN(Top))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
_settings.WindowLeft = bounds.Left;
|
||||
_settings.WindowTop = bounds.Top;
|
||||
_settings.WindowWidth = bounds.Width;
|
||||
_settings.WindowHeight = bounds.Height;
|
||||
_settings.WindowMaximized = WindowState == WindowState.Maximized;
|
||||
_settings.WindowLeft = Left;
|
||||
_settings.WindowTop = Top;
|
||||
_settings.Save();
|
||||
}
|
||||
|
||||
@@ -153,34 +131,6 @@ public partial class MainWindow : Window
|
||||
_viewModel.CheckForUpdatesCommand.Execute(null);
|
||||
e.Handled = true;
|
||||
}
|
||||
else if (e.Key == Key.F11)
|
||||
{
|
||||
ToggleFullScreen();
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
|
||||
private void OnToggleFullScreenClick(object sender, RoutedEventArgs e) => ToggleFullScreen();
|
||||
|
||||
private void ToggleFullScreen()
|
||||
{
|
||||
if (_isFullScreen)
|
||||
{
|
||||
WindowStyle = WindowStyle.SingleBorderWindow;
|
||||
ResizeMode = ResizeMode.CanResize;
|
||||
WindowState = _preFullScreenState;
|
||||
_isFullScreen = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
_preFullScreenState = WindowState;
|
||||
WindowStyle = WindowStyle.None;
|
||||
ResizeMode = ResizeMode.NoResize;
|
||||
// Re-enter Maximized from Normal so the borderless window covers the whole screen.
|
||||
WindowState = WindowState.Normal;
|
||||
WindowState = WindowState.Maximized;
|
||||
_isFullScreen = true;
|
||||
}
|
||||
}
|
||||
|
||||
private void OpenPalette()
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using CommandForge.Domain;
|
||||
using CommandForge.Infrastructure.Catalog;
|
||||
|
||||
namespace CommandForge.Tests;
|
||||
@@ -16,10 +17,28 @@ public sealed class CatalogTests
|
||||
[Fact]
|
||||
public void Catalog_HasCategoriesAndCommands()
|
||||
{
|
||||
Assert.Equal(10, Catalog.Categories.Count);
|
||||
Assert.Equal(12, Catalog.Categories.Count);
|
||||
Assert.True(Catalog.Commands.Count >= 20, $"Expected >= 20 commands, got {Catalog.Commands.Count}.");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Catalog_HasStorageCategory_WithCommands()
|
||||
{
|
||||
Assert.Contains(Catalog.Categories, c => c.Id == "storage");
|
||||
Assert.Contains(Catalog.Commands, c => c.CategoryId == "storage");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Catalog_DangerousCommands_RequireConfirmation()
|
||||
{
|
||||
// Golden rule: Dangerous commands must always confirm before running.
|
||||
var offenders = Catalog.Commands
|
||||
.Where(c => c.DangerLevel == DangerLevel.Dangerous && !c.ConfirmBeforeRun)
|
||||
.Select(c => c.Id)
|
||||
.ToList();
|
||||
Assert.True(offenders.Count == 0, $"Dangerous commands missing confirmation: {string.Join(", ", offenders)}.");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Catalog_AllCommandIds_AreUnique()
|
||||
{
|
||||
|
||||
@@ -47,4 +47,72 @@ public sealed class CatalogValidationErrorsTests
|
||||
|
||||
Assert.Empty(result.Errors);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Build_MaxOsBuildBelowMinOsBuild_ProducesError()
|
||||
{
|
||||
var categories = new[] { new CategoryDto { Id = "cat", TitleKey = "Cat_K" } };
|
||||
var commands = new[]
|
||||
{
|
||||
new CommandDto
|
||||
{
|
||||
Id = "c1",
|
||||
CategoryId = "cat",
|
||||
TitleKey = "T",
|
||||
DescriptionKey = "D",
|
||||
Executable = "cmd",
|
||||
MinOsBuild = 22000,
|
||||
MaxOsBuild = 19045,
|
||||
},
|
||||
};
|
||||
|
||||
var result = CatalogLoader.Build(categories, commands);
|
||||
|
||||
Assert.Contains(result.Errors, e => e.Contains("c1", StringComparison.Ordinal) && e.Contains("maxOsBuild", StringComparison.Ordinal));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Build_NonPositiveOsBuild_ProducesError()
|
||||
{
|
||||
var categories = new[] { new CategoryDto { Id = "cat", TitleKey = "Cat_K" } };
|
||||
var commands = new[]
|
||||
{
|
||||
new CommandDto
|
||||
{
|
||||
Id = "c1",
|
||||
CategoryId = "cat",
|
||||
TitleKey = "T",
|
||||
DescriptionKey = "D",
|
||||
Executable = "cmd",
|
||||
MinOsBuild = 0,
|
||||
},
|
||||
};
|
||||
|
||||
var result = CatalogLoader.Build(categories, commands);
|
||||
|
||||
Assert.Contains(result.Errors, e => e.Contains("c1", StringComparison.Ordinal) && e.Contains("minOsBuild", StringComparison.Ordinal));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Build_ValidOsBuildRange_HasNoErrors()
|
||||
{
|
||||
var categories = new[] { new CategoryDto { Id = "cat", TitleKey = "Cat_K" } };
|
||||
var commands = new[]
|
||||
{
|
||||
new CommandDto
|
||||
{
|
||||
Id = "c1",
|
||||
CategoryId = "cat",
|
||||
TitleKey = "T",
|
||||
DescriptionKey = "D",
|
||||
Executable = "cmd",
|
||||
MinOsBuild = 22000,
|
||||
},
|
||||
};
|
||||
|
||||
var result = CatalogLoader.Build(categories, commands);
|
||||
|
||||
Assert.Empty(result.Errors);
|
||||
Assert.Equal(22000, result.Commands[0].MinOsBuild);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
using CommandForge.Domain;
|
||||
using CommandForge.Infrastructure.Catalog;
|
||||
|
||||
namespace CommandForge.Tests;
|
||||
|
||||
/// <summary>Verifies the OS-build applicability predicate and the embedded catalog's version gating.</summary>
|
||||
public sealed class CommandDefinitionTests
|
||||
{
|
||||
private static CommandDefinition Command(int? min = null, int? max = null) => new()
|
||||
{
|
||||
Id = "t",
|
||||
CategoryId = "c",
|
||||
TitleKey = "T",
|
||||
DescriptionKey = "D",
|
||||
Executable = "cmd",
|
||||
MinOsBuild = min,
|
||||
MaxOsBuild = max,
|
||||
};
|
||||
|
||||
[Theory]
|
||||
[InlineData(19045, true)] // no bounds -> always applies
|
||||
[InlineData(22631, true)]
|
||||
public void AppliesToOsBuild_NoBounds_AlwaysTrue(int build, bool expected)
|
||||
=> Assert.Equal(expected, Command().AppliesToOsBuild(build));
|
||||
|
||||
[Theory]
|
||||
[InlineData(19045, false)] // Windows 10 excluded by min 22000
|
||||
[InlineData(21999, false)]
|
||||
[InlineData(22000, true)] // inclusive lower bound
|
||||
[InlineData(26100, true)]
|
||||
public void AppliesToOsBuild_MinOnly_GatesBelow(int build, bool expected)
|
||||
=> Assert.Equal(expected, Command(min: 22000).AppliesToOsBuild(build));
|
||||
|
||||
[Theory]
|
||||
[InlineData(19045, true)] // inclusive upper bound (Windows 10 only)
|
||||
[InlineData(22000, false)] // Windows 11 excluded by max 19045
|
||||
public void AppliesToOsBuild_MaxOnly_GatesAbove(int build, bool expected)
|
||||
=> Assert.Equal(expected, Command(max: 19045).AppliesToOsBuild(build));
|
||||
|
||||
[Theory]
|
||||
[InlineData(21999, false)]
|
||||
[InlineData(22000, true)]
|
||||
[InlineData(22621, true)]
|
||||
[InlineData(22622, false)]
|
||||
public void AppliesToOsBuild_Range_GatesBothEnds(int build, bool expected)
|
||||
=> Assert.Equal(expected, Command(min: 22000, max: 22621).AppliesToOsBuild(build));
|
||||
|
||||
[Theory]
|
||||
[InlineData("tweak.win11.classicmenu", 22000)]
|
||||
[InlineData("tweak.win11.modernmenu", 22000)]
|
||||
[InlineData("tweak.win11.taskbarleft", 22000)]
|
||||
[InlineData("tweak.win11.taskbarcenter", 22000)]
|
||||
[InlineData("tweak.clockseconds.on", 22621)]
|
||||
[InlineData("tweak.clockseconds.off", 22621)]
|
||||
[InlineData("tweak.win11.widgets.hide", 22000)]
|
||||
[InlineData("tweak.win11.endtask.on", 22631)]
|
||||
public void EmbeddedCatalog_Win11Commands_AreGated(string id, int expectedMinBuild)
|
||||
{
|
||||
var catalog = CatalogLoader.LoadEmbedded();
|
||||
var command = catalog.Commands.Single(c => c.Id == id);
|
||||
Assert.Equal(expectedMinBuild, command.MinOsBuild);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("tweak.win10.meetnow.hide", 19045)]
|
||||
[InlineData("tweak.win10.newsinterests.hide", 19045)]
|
||||
[InlineData("tweak.win10.livetiles.off", 19045)]
|
||||
public void EmbeddedCatalog_Win10OnlyCommands_AreCappedByMaxBuild(string id, int expectedMaxBuild)
|
||||
{
|
||||
var catalog = CatalogLoader.LoadEmbedded();
|
||||
var command = catalog.Commands.Single(c => c.Id == id);
|
||||
Assert.Equal(expectedMaxBuild, command.MaxOsBuild);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void EmbeddedCatalog_Win11Tweaks_HiddenOnWindows10()
|
||||
{
|
||||
const int windows10Build = 19045;
|
||||
var catalog = CatalogLoader.LoadEmbedded();
|
||||
var hiddenOnWin10 = catalog.Commands.Where(c => !c.AppliesToOsBuild(windows10Build)).Select(c => c.Id).ToHashSet();
|
||||
|
||||
Assert.Contains("tweak.win11.taskbarleft", hiddenOnWin10);
|
||||
Assert.Contains("tweak.clockseconds.on", hiddenOnWin10);
|
||||
Assert.DoesNotContain("dism.checkhealth", hiddenOnWin10); // ungated commands stay visible
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void EmbeddedCatalog_Win10OnlyTweaks_HiddenOnWindows11()
|
||||
{
|
||||
const int windows11Build = 22000;
|
||||
const int windows10Build = 19045;
|
||||
var catalog = CatalogLoader.LoadEmbedded();
|
||||
|
||||
var meetNow = catalog.Commands.Single(c => c.Id == "tweak.win10.meetnow.hide");
|
||||
Assert.False(meetNow.AppliesToOsBuild(windows11Build)); // capped by maxOsBuild -> hidden on Windows 11
|
||||
Assert.True(meetNow.AppliesToOsBuild(windows10Build)); // visible on Windows 10 22H2
|
||||
}
|
||||
}
|
||||
@@ -1,28 +1,28 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0-windows</TargetFramework>
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="coverlet.collector" Version="10.0.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.9" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.6.0" />
|
||||
<PackageReference Include="xunit" Version="2.9.3" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Using Include="Xunit" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\CommandForge.Domain\CommandForge.Domain.csproj" />
|
||||
<ProjectReference Include="..\..\src\CommandForge.Application\CommandForge.Application.csproj" />
|
||||
<ProjectReference Include="..\..\src\CommandForge.Infrastructure\CommandForge.Infrastructure.csproj" />
|
||||
<!-- Referenced so the catalog-keys test can verify titles/descriptions exist in the .resx (EN+VI). -->
|
||||
<ProjectReference Include="..\..\src\CommandForge.Wpf\CommandForge.Wpf.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0-windows</TargetFramework>
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="coverlet.collector" Version="10.0.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.9" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.7.0" />
|
||||
<PackageReference Include="xunit" Version="2.9.3" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Using Include="Xunit" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\CommandForge.Domain\CommandForge.Domain.csproj" />
|
||||
<ProjectReference Include="..\..\src\CommandForge.Application\CommandForge.Application.csproj" />
|
||||
<ProjectReference Include="..\..\src\CommandForge.Infrastructure\CommandForge.Infrastructure.csproj" />
|
||||
<!-- Referenced so the catalog-keys test can verify titles/descriptions exist in the .resx (EN+VI). -->
|
||||
<ProjectReference Include="..\..\src\CommandForge.Wpf\CommandForge.Wpf.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -46,6 +46,32 @@ public sealed class LocalizationManagerTests
|
||||
}
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("vi")]
|
||||
[InlineData("ja")]
|
||||
[InlineData("zh-Hans")]
|
||||
[InlineData("es")]
|
||||
public void SetCulture_LoadsSatellite_NotEnglishFallback(string culture)
|
||||
{
|
||||
var original = LocalizationManager.Instance.CurrentCulture;
|
||||
try
|
||||
{
|
||||
LocalizationManager.Instance.SetCulture(new CultureInfo("en"));
|
||||
var en = LocalizationManager.Instance["Menu_CheckForUpdates"];
|
||||
|
||||
LocalizationManager.Instance.SetCulture(new CultureInfo(culture));
|
||||
var translated = LocalizationManager.Instance["Menu_CheckForUpdates"];
|
||||
|
||||
Assert.False(string.IsNullOrEmpty(translated));
|
||||
// A real satellite resolves to a translated string; an English fallback would be identical.
|
||||
Assert.NotEqual(en, translated);
|
||||
}
|
||||
finally
|
||||
{
|
||||
LocalizationManager.Instance.SetCulture(original);
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void SetCulture_RaisesItemBracketPropertyChanged()
|
||||
{
|
||||
|
||||
@@ -6,45 +6,57 @@ using CommandForge.Wpf.Resources;
|
||||
namespace CommandForge.Tests;
|
||||
|
||||
/// <summary>
|
||||
/// Cross-checks that every catalog title/description resource key exists in both the neutral
|
||||
/// (EN) resources and the Vietnamese satellite (no parent fallback).
|
||||
/// Cross-checks that every catalog title/description and UI resource key exists in the neutral
|
||||
/// (EN) resources and in every satellite culture (no parent fallback), so a missing translation
|
||||
/// fails the build rather than silently falling back to English.
|
||||
/// </summary>
|
||||
public sealed class ResxKeyTests
|
||||
{
|
||||
private static readonly CatalogLoadResult Catalog = CatalogLoader.LoadEmbedded();
|
||||
|
||||
[Fact]
|
||||
public void Catalog_AllKeys_ExistInResx_EN_and_VI()
|
||||
/// <summary>The non-neutral UI cultures that must have a full satellite resource set (no fallback).</summary>
|
||||
private static readonly string[] SatelliteCultures = ["vi", "ja", "zh-Hans", "es"];
|
||||
|
||||
/// <summary>Asserts every key resolves in EN (neutral) and in every satellite culture without fallback.</summary>
|
||||
private static void AssertKeysExist(IEnumerable<string> keys)
|
||||
{
|
||||
var manager = new ResourceManager("CommandForge.Wpf.Resources.Strings", typeof(Strings).Assembly);
|
||||
var english = manager.GetResourceSet(CultureInfo.InvariantCulture, createIfNotExists: true, tryParents: true);
|
||||
var vietnamese = manager.GetResourceSet(new CultureInfo("vi"), createIfNotExists: true, tryParents: false);
|
||||
|
||||
Assert.NotNull(english);
|
||||
Assert.NotNull(vietnamese);
|
||||
|
||||
var satellites = SatelliteCultures.ToDictionary(
|
||||
culture => culture,
|
||||
culture => manager.GetResourceSet(new CultureInfo(culture), createIfNotExists: true, tryParents: false));
|
||||
|
||||
foreach (var (culture, set) in satellites)
|
||||
{
|
||||
Assert.True(set is not null, $"Missing satellite resource set for culture '{culture}'.");
|
||||
}
|
||||
|
||||
foreach (var key in keys)
|
||||
{
|
||||
Assert.True(english!.GetString(key) is not null, $"Missing EN resource for key '{key}'.");
|
||||
foreach (var (culture, set) in satellites)
|
||||
{
|
||||
Assert.True(set!.GetString(key) is not null, $"Missing {culture} resource for key '{key}'.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Catalog_AllKeys_ExistInResx_AllCultures()
|
||||
{
|
||||
var keys = new List<string>();
|
||||
keys.AddRange(Catalog.Categories.Select(c => c.TitleKey));
|
||||
keys.AddRange(Catalog.Commands.Select(c => c.TitleKey));
|
||||
keys.AddRange(Catalog.Commands.Select(c => c.DescriptionKey));
|
||||
|
||||
foreach (var key in keys)
|
||||
{
|
||||
Assert.True(english!.GetString(key) is not null, $"Missing EN resource for key '{key}'.");
|
||||
Assert.True(vietnamese!.GetString(key) is not null, $"Missing VI resource for key '{key}'.");
|
||||
}
|
||||
AssertKeysExist(keys);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void SettingsUiKeys_ExistInResx_EN_and_VI()
|
||||
public void SettingsUiKeys_ExistInResx_AllCultures()
|
||||
{
|
||||
var manager = new ResourceManager("CommandForge.Wpf.Resources.Strings", typeof(Strings).Assembly);
|
||||
var english = manager.GetResourceSet(CultureInfo.InvariantCulture, createIfNotExists: true, tryParents: true);
|
||||
var vietnamese = manager.GetResourceSet(new CultureInfo("vi"), createIfNotExists: true, tryParents: false);
|
||||
|
||||
Assert.NotNull(english);
|
||||
Assert.NotNull(vietnamese);
|
||||
|
||||
string[] keys =
|
||||
[
|
||||
"Menu_OpenSettings", "LanguageOption_System",
|
||||
@@ -63,23 +75,12 @@ public sealed class ResxKeyTests
|
||||
"Settings_ImportInvalid", "Settings_ImportSuccess", "Settings_ProfileApplied", "Settings_DeleteProfileConfirm",
|
||||
];
|
||||
|
||||
foreach (var key in keys)
|
||||
{
|
||||
Assert.True(english!.GetString(key) is not null, $"Missing EN resource for key '{key}'.");
|
||||
Assert.True(vietnamese!.GetString(key) is not null, $"Missing VI resource for key '{key}'.");
|
||||
}
|
||||
AssertKeysExist(keys);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void DiagnosticsUiKeys_ExistInResx_EN_and_VI()
|
||||
public void DiagnosticsUiKeys_ExistInResx_AllCultures()
|
||||
{
|
||||
var manager = new ResourceManager("CommandForge.Wpf.Resources.Strings", typeof(Strings).Assembly);
|
||||
var english = manager.GetResourceSet(CultureInfo.InvariantCulture, createIfNotExists: true, tryParents: true);
|
||||
var vietnamese = manager.GetResourceSet(new CultureInfo("vi"), createIfNotExists: true, tryParents: false);
|
||||
|
||||
Assert.NotNull(english);
|
||||
Assert.NotNull(vietnamese);
|
||||
|
||||
string[] keys =
|
||||
[
|
||||
"Menu_LogViewer", "Menu_ExportLogs", "Menu_DebugPanel", "Menu_ReportBug",
|
||||
@@ -97,23 +98,12 @@ public sealed class ResxKeyTests
|
||||
"Settings_OpenDebugPanel", "Settings_ResetDefaults", "Settings_ResetConfirm",
|
||||
];
|
||||
|
||||
foreach (var key in keys)
|
||||
{
|
||||
Assert.True(english!.GetString(key) is not null, $"Missing EN resource for key '{key}'.");
|
||||
Assert.True(vietnamese!.GetString(key) is not null, $"Missing VI resource for key '{key}'.");
|
||||
}
|
||||
AssertKeysExist(keys);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void HomeUiKeys_ExistInResx_EN_and_VI()
|
||||
public void HomeUiKeys_ExistInResx_AllCultures()
|
||||
{
|
||||
var manager = new ResourceManager("CommandForge.Wpf.Resources.Strings", typeof(Strings).Assembly);
|
||||
var english = manager.GetResourceSet(CultureInfo.InvariantCulture, createIfNotExists: true, tryParents: true);
|
||||
var vietnamese = manager.GetResourceSet(new CultureInfo("vi"), createIfNotExists: true, tryParents: false);
|
||||
|
||||
Assert.NotNull(english);
|
||||
Assert.NotNull(vietnamese);
|
||||
|
||||
string[] keys =
|
||||
[
|
||||
"SidebarHome", "SidebarFavorites", "Favorite_Toggle",
|
||||
@@ -123,23 +113,12 @@ public sealed class ResxKeyTests
|
||||
"Home_Recent", "Home_NoRecent", "Home_NoFavorites",
|
||||
];
|
||||
|
||||
foreach (var key in keys)
|
||||
{
|
||||
Assert.True(english!.GetString(key) is not null, $"Missing EN resource for key '{key}'.");
|
||||
Assert.True(vietnamese!.GetString(key) is not null, $"Missing VI resource for key '{key}'.");
|
||||
}
|
||||
AssertKeysExist(keys);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void LegalUiKeys_ExistInResx_EN_and_VI()
|
||||
public void LegalUiKeys_ExistInResx_AllCultures()
|
||||
{
|
||||
var manager = new ResourceManager("CommandForge.Wpf.Resources.Strings", typeof(Strings).Assembly);
|
||||
var english = manager.GetResourceSet(CultureInfo.InvariantCulture, createIfNotExists: true, tryParents: true);
|
||||
var vietnamese = manager.GetResourceSet(new CultureInfo("vi"), createIfNotExists: true, tryParents: false);
|
||||
|
||||
Assert.NotNull(english);
|
||||
Assert.NotNull(vietnamese);
|
||||
|
||||
string[] keys =
|
||||
[
|
||||
"LegalGateTitle", "LegalGateIntro", "LegalGateAgree", "LegalGateContinue", "LegalGateExit",
|
||||
@@ -148,23 +127,12 @@ public sealed class ResxKeyTests
|
||||
"LegalViewer_Title",
|
||||
];
|
||||
|
||||
foreach (var key in keys)
|
||||
{
|
||||
Assert.True(english!.GetString(key) is not null, $"Missing EN resource for key '{key}'.");
|
||||
Assert.True(vietnamese!.GetString(key) is not null, $"Missing VI resource for key '{key}'.");
|
||||
}
|
||||
AssertKeysExist(keys);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void MenuUiKeys_ExistInResx_EN_and_VI()
|
||||
public void MenuUiKeys_ExistInResx_AllCultures()
|
||||
{
|
||||
var manager = new ResourceManager("CommandForge.Wpf.Resources.Strings", typeof(Strings).Assembly);
|
||||
var english = manager.GetResourceSet(CultureInfo.InvariantCulture, createIfNotExists: true, tryParents: true);
|
||||
var vietnamese = manager.GetResourceSet(new CultureInfo("vi"), createIfNotExists: true, tryParents: false);
|
||||
|
||||
Assert.NotNull(english);
|
||||
Assert.NotNull(vietnamese);
|
||||
|
||||
string[] keys =
|
||||
[
|
||||
"MenuFile", "MenuView", "MenuTools", "MenuAbout", "MenuHelp", "MenuExit", "MenuToggleSidebar",
|
||||
@@ -176,23 +144,12 @@ public sealed class ResxKeyTests
|
||||
"Menu_KeyboardShortcuts", "Menu_PortableInfo", "Menu_RestorePoint",
|
||||
];
|
||||
|
||||
foreach (var key in keys)
|
||||
{
|
||||
Assert.True(english!.GetString(key) is not null, $"Missing EN resource for key '{key}'.");
|
||||
Assert.True(vietnamese!.GetString(key) is not null, $"Missing VI resource for key '{key}'.");
|
||||
}
|
||||
AssertKeysExist(keys);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void DialogUiKeys_ExistInResx_EN_and_VI()
|
||||
public void DialogUiKeys_ExistInResx_AllCultures()
|
||||
{
|
||||
var manager = new ResourceManager("CommandForge.Wpf.Resources.Strings", typeof(Strings).Assembly);
|
||||
var english = manager.GetResourceSet(CultureInfo.InvariantCulture, createIfNotExists: true, tryParents: true);
|
||||
var vietnamese = manager.GetResourceSet(new CultureInfo("vi"), createIfNotExists: true, tryParents: false);
|
||||
|
||||
Assert.NotNull(english);
|
||||
Assert.NotNull(vietnamese);
|
||||
|
||||
string[] keys =
|
||||
[
|
||||
"Shortcuts_Palette", "Shortcuts_ListNav", "Shortcuts_OpenSelected", "Shortcuts_CloseDialog",
|
||||
@@ -201,23 +158,12 @@ public sealed class ResxKeyTests
|
||||
"Settings_CurrentVersion", "Settings_NoDataCollected", "LanguageOption_System",
|
||||
];
|
||||
|
||||
foreach (var key in keys)
|
||||
{
|
||||
Assert.True(english!.GetString(key) is not null, $"Missing EN resource for key '{key}'.");
|
||||
Assert.True(vietnamese!.GetString(key) is not null, $"Missing VI resource for key '{key}'.");
|
||||
}
|
||||
AssertKeysExist(keys);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void RecipesUiKeys_ExistInResx_EN_and_VI()
|
||||
public void RecipesUiKeys_ExistInResx_AllCultures()
|
||||
{
|
||||
var manager = new ResourceManager("CommandForge.Wpf.Resources.Strings", typeof(Strings).Assembly);
|
||||
var english = manager.GetResourceSet(CultureInfo.InvariantCulture, createIfNotExists: true, tryParents: true);
|
||||
var vietnamese = manager.GetResourceSet(new CultureInfo("vi"), createIfNotExists: true, tryParents: false);
|
||||
|
||||
Assert.NotNull(english);
|
||||
Assert.NotNull(vietnamese);
|
||||
|
||||
string[] keys =
|
||||
[
|
||||
"SidebarRecipes", "Recipes_Saved", "Recipes_New", "Recipe_Delete", "Recipes_NameHint",
|
||||
@@ -227,23 +173,12 @@ public sealed class ResxKeyTests
|
||||
"Recipe_ContainsDangerous", "Recipe_ConfirmTitle", "Recipe_DeleteConfirm",
|
||||
];
|
||||
|
||||
foreach (var key in keys)
|
||||
{
|
||||
Assert.True(english!.GetString(key) is not null, $"Missing EN resource for key '{key}'.");
|
||||
Assert.True(vietnamese!.GetString(key) is not null, $"Missing VI resource for key '{key}'.");
|
||||
}
|
||||
AssertKeysExist(keys);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void UserCommandsUiKeys_ExistInResx_EN_and_VI()
|
||||
public void UserCommandsUiKeys_ExistInResx_AllCultures()
|
||||
{
|
||||
var manager = new ResourceManager("CommandForge.Wpf.Resources.Strings", typeof(Strings).Assembly);
|
||||
var english = manager.GetResourceSet(CultureInfo.InvariantCulture, createIfNotExists: true, tryParents: true);
|
||||
var vietnamese = manager.GetResourceSet(new CultureInfo("vi"), createIfNotExists: true, tryParents: false);
|
||||
|
||||
Assert.NotNull(english);
|
||||
Assert.NotNull(vietnamese);
|
||||
|
||||
string[] keys =
|
||||
[
|
||||
"SidebarUserCommands", "UserCmd_Warning", "UserCmd_Saved", "UserCmd_New", "UserCmd_Delete",
|
||||
@@ -251,54 +186,28 @@ public sealed class ResxKeyTests
|
||||
"UserCmd_NoCommands", "UserCmd_RunTitle", "UserCmd_RunConfirm", "UserCmd_DeleteConfirm",
|
||||
];
|
||||
|
||||
foreach (var key in keys)
|
||||
{
|
||||
Assert.True(english!.GetString(key) is not null, $"Missing EN resource for key '{key}'.");
|
||||
Assert.True(vietnamese!.GetString(key) is not null, $"Missing VI resource for key '{key}'.");
|
||||
}
|
||||
AssertKeysExist(keys);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void RegistryAndUndoUiKeys_ExistInResx_EN_and_VI()
|
||||
public void RegistryAndUndoUiKeys_ExistInResx_AllCultures()
|
||||
{
|
||||
var manager = new ResourceManager("CommandForge.Wpf.Resources.Strings", typeof(Strings).Assembly);
|
||||
var english = manager.GetResourceSet(CultureInfo.InvariantCulture, createIfNotExists: true, tryParents: true);
|
||||
var vietnamese = manager.GetResourceSet(new CultureInfo("vi"), createIfNotExists: true, tryParents: false);
|
||||
|
||||
Assert.NotNull(english);
|
||||
Assert.NotNull(vietnamese);
|
||||
|
||||
string[] keys =
|
||||
[
|
||||
"History_Undo", "Registry_ChangesHeader", "Registry_ChangeFormat", "Registry_NotSet", "Registry_NoChanges",
|
||||
];
|
||||
|
||||
foreach (var key in keys)
|
||||
{
|
||||
Assert.True(english!.GetString(key) is not null, $"Missing EN resource for key '{key}'.");
|
||||
Assert.True(vietnamese!.GetString(key) is not null, $"Missing VI resource for key '{key}'.");
|
||||
}
|
||||
AssertKeysExist(keys);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void DashboardAndSearchUiKeys_ExistInResx_EN_and_VI()
|
||||
public void DashboardAndSearchUiKeys_ExistInResx_AllCultures()
|
||||
{
|
||||
var manager = new ResourceManager("CommandForge.Wpf.Resources.Strings", typeof(Strings).Assembly);
|
||||
var english = manager.GetResourceSet(CultureInfo.InvariantCulture, createIfNotExists: true, tryParents: true);
|
||||
var vietnamese = manager.GetResourceSet(new CultureInfo("vi"), createIfNotExists: true, tryParents: false);
|
||||
|
||||
Assert.NotNull(english);
|
||||
Assert.NotNull(vietnamese);
|
||||
|
||||
string[] keys =
|
||||
[
|
||||
"Search_Suggestion", "Home_Suggestions", "Maint_LowDisk", "Maint_HighUptime", "Maint_Open",
|
||||
];
|
||||
|
||||
foreach (var key in keys)
|
||||
{
|
||||
Assert.True(english!.GetString(key) is not null, $"Missing EN resource for key '{key}'.");
|
||||
Assert.True(vietnamese!.GetString(key) is not null, $"Missing VI resource for key '{key}'.");
|
||||
}
|
||||
AssertKeysExist(keys);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
using CommandForge.Infrastructure;
|
||||
|
||||
namespace CommandForge.Tests;
|
||||
|
||||
/// <summary>
|
||||
/// Verifies the single-instance detection and activation-signalling logic. Each test uses a unique
|
||||
/// name suffix so the named kernel objects never collide with a real running instance or with each
|
||||
/// other. The window activation itself lives in the WPF layer and is verified manually.
|
||||
/// </summary>
|
||||
public sealed class SingleInstanceGuardTests
|
||||
{
|
||||
[Fact]
|
||||
public void FirstInstanceIsPrimary_SecondIsNot()
|
||||
{
|
||||
var name = Guid.NewGuid().ToString("N");
|
||||
|
||||
using var first = new SingleInstanceGuard(name);
|
||||
using var second = new SingleInstanceGuard(name);
|
||||
|
||||
Assert.True(first.IsPrimaryInstance);
|
||||
Assert.False(second.IsPrimaryInstance);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void SignalPrimaryInstance_InvokesPrimaryCallback()
|
||||
{
|
||||
var name = Guid.NewGuid().ToString("N");
|
||||
using var activated = new ManualResetEventSlim(initialState: false);
|
||||
|
||||
using var primary = new SingleInstanceGuard(name);
|
||||
primary.StartListening(() => activated.Set());
|
||||
|
||||
using (var secondary = new SingleInstanceGuard(name))
|
||||
{
|
||||
Assert.False(secondary.IsPrimaryInstance);
|
||||
secondary.SignalPrimaryInstance();
|
||||
}
|
||||
|
||||
Assert.True(activated.Wait(TimeSpan.FromSeconds(5)));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Name_IsReclaimed_AfterPrimaryDisposed()
|
||||
{
|
||||
var name = Guid.NewGuid().ToString("N");
|
||||
|
||||
var first = new SingleInstanceGuard(name);
|
||||
Assert.True(first.IsPrimaryInstance);
|
||||
first.Dispose();
|
||||
|
||||
using var second = new SingleInstanceGuard(name);
|
||||
Assert.True(second.IsPrimaryInstance);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
using CommandForge.Application.UserCommands;
|
||||
using CommandForge.Domain;
|
||||
|
||||
namespace CommandForge.Tests;
|
||||
|
||||
/// <summary>
|
||||
/// Tests the cmd argument normalization that fixes user commands hanging on an interactive
|
||||
/// cmd.exe (e.g. "cmd" + "ping google.com" must run as "cmd /c ping google.com").
|
||||
/// </summary>
|
||||
public sealed class UserCommandNormalizationTests
|
||||
{
|
||||
[Theory]
|
||||
[InlineData("cmd", "ping google.com", "/c ping google.com")]
|
||||
[InlineData("cmd.exe", "dir", "/c dir")]
|
||||
[InlineData("CMD", "echo hi", "/c echo hi")]
|
||||
[InlineData("C:\\Windows\\System32\\cmd.exe", "whoami", "/c whoami")]
|
||||
[InlineData("cmd", "", "/c")]
|
||||
public void NormalizeArguments_PrependsSlashC_ForCmd(string exe, string args, string expected)
|
||||
=> Assert.Equal(expected, UserCommandFactory.NormalizeArguments(exe, args));
|
||||
|
||||
[Theory]
|
||||
[InlineData("cmd", "/c ping x")] // already has /c
|
||||
[InlineData("cmd", "/k keep open")] // explicit /k
|
||||
[InlineData("cmd", "/C UPPER")] // case-insensitive switch
|
||||
[InlineData("powershell", "ping x")] // not cmd — leave as-is (powershell runs it)
|
||||
[InlineData("ping", "google.com")] // direct executable
|
||||
public void NormalizeArguments_LeavesAsIs_WhenNotPlainCmd(string exe, string args)
|
||||
=> Assert.Equal(args, UserCommandFactory.NormalizeArguments(exe, args));
|
||||
|
||||
[Fact]
|
||||
public void ToDefinition_AppliesCmdNormalization()
|
||||
{
|
||||
var def = UserCommandFactory.ToDefinition(new UserCommand
|
||||
{
|
||||
Id = "x",
|
||||
Name = "n",
|
||||
Executable = "cmd",
|
||||
Arguments = "ping google.com",
|
||||
});
|
||||
|
||||
Assert.Equal("/c ping google.com", def.ArgsTemplate);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user