diff --git a/CLAUDE.md b/CLAUDE.md index 64068fd..aa8a803 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -78,7 +78,7 @@ The window is view glue. Logic lives in plain classes that the tests drive with 1. **Program.cs**: Entry point. Parses command-line options (`LaunchOptions`) and opens the main window. It does not elevate. With `--link-helper` it runs the hidden elevated helper instead (see "Administrator rights"). 2. **App.xaml / App.xaml.cs**: Loads MahApps.Metro styles and syncs the theme (light/dark and accent color) with Windows. -3. **MainWindow.xaml**: The whole UI. Two cards (link location, target), pill toggles for folder/file mode and link type, and a footer with the About button, an inline error line and the Create link button. Styles live in `Window.Resources`. +3. **MainWindow.xaml**: The whole UI. Two cards (link location, target), pill toggles for folder/file mode and link type, and a footer with the About and settings buttons, an inline error line and the Create link button. Styles live in `Window.Resources`. 4. **MainWindow.xaml.cs**: Mode switching, link name auto-fill, file pickers, drag and drop. Hands link creation to `LinkCreator`. 5. **MainWindow.Inputs.cs**: Inline errors (`InputError.HasError` attached property plus the footer message), theme-dependent brushes, restoring launch options, and the up-front admin notice. 6. **Elevation.cs**: `LaunchOptions` (command-line parsing) and `Elevation` (admin check, symbolic link privilege probe, the UAC shield icon). @@ -92,6 +92,7 @@ The window is view glue. Logic lives in plain classes that the tests drive with 12. **InputValidator.cs**: Field checks behind the inline errors, and `ColorContrast` for text on the accent color. 13. **Dialogs.cs**: `IDialogService` / `IProgressDialog`, and `MetroDialogService`, which shows them in the window. 14. **UiHelpers.cs**: Path name extraction, picker start folders, byte formatting, app version, `LinkNameAutoFill`. +15. **ExplorerMenu.cs**: The optional Explorer right-click entries (see "Explorer menu" below). ### Link Creation Flow @@ -111,6 +112,15 @@ The window is view glue. Logic lives in plain classes that the tests drive with - Both ends check the other's process ID on the pipe (`GetNamedPipeClientProcessId` / `GetNamedPipeServerProcessId`), and `LinkCommand` rejects paths with quotes or line breaks, so the helper only ever runs a single mklink. - Command-line options (`--mode`, `--type`, `--location`, `--name`, `--target`) still prefill the form. The old `--engage` flag is still accepted and ignored. +### Explorer menu + +- The settings button (cog, next to About) has one checkable item that adds or removes the Explorer right-click entries. Off by default. +- `ExplorerMenu` writes classic shell verbs under `HKCU\Software\Classes` (no admin): "Create link to this" on files (`*\shell`) and folders (`Directory\shell`), starting Symlinker with `--mode file|folder --target "%1"`, and "Create link here" on folders and a folder's background (`Directory\Background\shell`), with `--location "%1"` or `"%V"`. Verb keys are `Symlinker.LinkTo` and `Symlinker.LinkHere`, with `MultiSelectModel=Single` and the exe's icon. +- The path is the last argument on purpose: Explorer passes a drive root as `"C:\"`, which Windows splits into `C:"`. `LaunchOptions.Parse` turns a trailing quote on `--location`/`--target` back into a backslash. +- On every start, `ExplorerMenu.Refresh()` rewrites the entries when they are on but point at another exe (ClickOnce installs each update in a new folder) or use other menu text (the Windows language changed). +- Hidden in the Store build (`Elevation.IsPackaged()`): registry writes of a packaged app are virtualized, so Explorer would never see them. A Store version would need a `desktop4:FileExplorerContextMenus` entry backed by an `IExplorerCommand` COM handler. +- Tests point `ExplorerMenu` at a throwaway `HKCU\Software\SymlinkerTests\` key instead of `Software\Classes`. + ### Important Patterns - **Command building**: mklink flags are `/D` (directory symlink), `/H` (hard link), `/J` (junction); paths are wrapped in quotes. @@ -144,6 +154,7 @@ Symlinker/ │ ├── InputValidator.cs # Field checks, accent contrast │ ├── Dialogs.cs # Dialog abstraction + MahApps implementation │ ├── UiHelpers.cs # Small UI helpers +│ ├── ExplorerMenu.cs # Explorer right-click entries │ ├── Program.cs # Entry point │ ├── Properties/ │ │ ├── Resources.resx # English strings @@ -179,6 +190,7 @@ Before tagging, update `ReleaseNotes` in `listings.json` for every language and - **Drag and drop**: Works because the window always runs unelevated. It does not work if the user starts Symlinker as administrator themselves, because Windows blocks drops from a lower-privilege Explorer. - **Store version, moving into AppData**: the Microsoft Store version can't move existing files into a target under `AppData` (see "Publishing (Microsoft Store / MSIX)"). Linking there without moving works. +- **Explorer menu**: on Windows 11 the entries are under "Show more options" (classic verbs). Not available in the Store version. Uninstalling the ClickOnce or portable version leaves the entries behind, pointing at a missing exe; turn them off first. - **Platform**: Windows 10/11 only. ## Localization diff --git a/README.md b/README.md index 9185ae0..e0cdc1e 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ scoop install extras/symlinker - Create **symbolic links**, **hard links**, and **directory junctions** with a few clicks - Supports both file and folder link types - Drag and drop paths directly into the application +- Optional Explorer right-click entries ("Create link to this" and "Create link here") that open Symlinker with the form filled in. Turn them on from the settings button next to About. On Windows 11 they are under "Show more options". Not available in the Microsoft Store version - Automatic UAC elevation (administrator privileges required for symlink creation) - Automatic updates through the Microsoft Store or ClickOnce - Light and dark mode support — syncs with your Windows theme and accent color diff --git a/Symlinker.Tests/ElevationTests.cs b/Symlinker.Tests/ElevationTests.cs index d6b08b5..ae9848c 100644 --- a/Symlinker.Tests/ElevationTests.cs +++ b/Symlinker.Tests/ElevationTests.cs @@ -33,6 +33,32 @@ public void Parse_IgnoresUnknownAndIncompleteArguments() Assert.Null(options.Mode); } + [Theory] + [InlineData(@"Symlinker.exe --location ""C:\""", @"C:\")] + [InlineData(@"Symlinker.exe --location ""D:\My Links""", @"D:\My Links")] + public void Parse_ReadsTheLocationAsExplorerPassesIt(string commandLine, string expected) + { + // Explorer passes a drive root as "C:\", which Windows splits into C:" + Assert.Equal(expected, LaunchOptions.Parse(CommandLine.Split(commandLine)[1..]).LinkLocation); + } + + [Fact] + public void Parse_RestoresTheBackslashOfATarget() + { + var options = LaunchOptions.Parse(CommandLine.Split(@"Symlinker.exe --mode folder --target ""E:\""")[1..]); + + Assert.Equal(@"E:\", options.Target); + Assert.Equal("folder", options.Mode); + } + + [Fact] + public void Parse_KeepsPathsWithSpaces() + { + var options = LaunchOptions.Parse(CommandLine.Split(@"Symlinker.exe --mode file --target ""D:\My Data\a b.txt""")[1..]); + + Assert.Equal(@"D:\My Data\a b.txt", options.Target); + } + [Theory] [InlineData("folder", true)] [InlineData("FOLDER", true)] diff --git a/Symlinker.Tests/ExplorerMenuTests.cs b/Symlinker.Tests/ExplorerMenuTests.cs new file mode 100644 index 0000000..cda6eb7 --- /dev/null +++ b/Symlinker.Tests/ExplorerMenuTests.cs @@ -0,0 +1,239 @@ +namespace Symlinker.Tests +{ + using System; + using System.Linq; + + using Microsoft.Win32; + + /// + /// Registers the Explorer entries under a throwaway HKCU\Software\SymlinkerTests\... key + /// instead of HKCU\Software\Classes, so Explorer never sees them. + /// + public sealed class ExplorerMenuTests : IDisposable + { + private const string ExePath = @"C:\Program Files\Symlinker\Symlinker.exe"; + private const string TestsKey = @"Software\SymlinkerTests"; + + private readonly string classesPath = TestsKey + @"\" + Guid.NewGuid().ToString("N"); + + public void Dispose() + { + Registry.CurrentUser.DeleteSubKeyTree(classesPath, throwOnMissingSubKey: false); + + // Remove the parent too once the last test is done with it + try + { + Registry.CurrentUser.DeleteSubKey(TestsKey, throwOnMissingSubKey: false); + } + catch (InvalidOperationException) + { + // Another test still has its key in there + } + } + + [Fact] + public void IsOff_ByDefault() + { + var menu = Menu(); + + Assert.False(menu.IsEnabled); + Assert.False(menu.IsCurrent); + } + + [Fact] + public void Enable_WritesEveryEntry() + { + var menu = Menu(); + + menu.Enable(); + + Assert.True(menu.IsEnabled); + Assert.True(menu.IsCurrent); + + using var file = Open(@"*\shell\Symlinker.LinkTo"); + Assert.Equal("Link to", file.GetValue("MUIVerb")); + Assert.Equal($"\"{ExePath}\",0", file.GetValue("Icon")); + Assert.Equal("Single", file.GetValue("MultiSelectModel")); + Assert.Equal($"\"{ExePath}\" --mode file --target \"%1\"", Command(@"*\shell\Symlinker.LinkTo")); + + using var folder = Open(@"Directory\shell\Symlinker.LinkTo"); + Assert.Equal("Link to", folder.GetValue("MUIVerb")); + Assert.Equal($"\"{ExePath}\" --mode folder --target \"%1\"", Command(@"Directory\shell\Symlinker.LinkTo")); + + using var here = Open(@"Directory\shell\Symlinker.LinkHere"); + Assert.Equal("Link here", here.GetValue("MUIVerb")); + Assert.Equal($"\"{ExePath}\" --location \"%1\"", Command(@"Directory\shell\Symlinker.LinkHere")); + + using var background = Open(@"Directory\Background\shell\Symlinker.LinkHere"); + Assert.Equal("Link here", background.GetValue("MUIVerb")); + Assert.Equal($"\"{ExePath}\" --location \"%V\"", Command(@"Directory\Background\shell\Symlinker.LinkHere")); + } + + [Fact] + public void Commands_ReachTheWindowAsLaunchOptions() + { + // What Windows passes to Main for each command, with Explorer's placeholders filled in + var entries = Menu().Entries; + var toFile = Arguments(entries[0].Command.Replace("%1", @"D:\My Data\notes.txt")); + var toFolder = Arguments(entries[1].Command.Replace("%1", @"D:\My Data")); + var hereOnRoot = Arguments(entries[3].Command.Replace("%V", @"C:\")); + + Assert.Equal(false, LaunchOptions.Parse(toFile).IsFolderMode); + Assert.Equal(@"D:\My Data\notes.txt", LaunchOptions.Parse(toFile).Target); + Assert.Equal(true, LaunchOptions.Parse(toFolder).IsFolderMode); + Assert.Equal(@"D:\My Data", LaunchOptions.Parse(toFolder).Target); + Assert.Equal(@"C:\", LaunchOptions.Parse(hereOnRoot).LinkLocation); + } + + [Fact] + public void Disable_RemovesEveryEntry_AndLeavesOtherVerbs() + { + using (var other = Registry.CurrentUser.CreateSubKey(classesPath + @"\Directory\shell\SomethingElse")) + other.SetValue("MUIVerb", "Other app"); + + var menu = Menu(); + menu.Enable(); + menu.Disable(); + + Assert.False(menu.IsEnabled); + Assert.Null(Open(@"*\shell\Symlinker.LinkTo")); + Assert.Null(Open(@"Directory\Background\shell\Symlinker.LinkHere")); + Assert.NotNull(Open(@"Directory\shell\SomethingElse")); + } + + [Fact] + public void Disable_WhenAlreadyOff_DoesNothing() + { + Menu().Disable(); + + Assert.False(Menu().IsEnabled); + } + + [Fact] + public void TrySetEnabled_TurnsTheEntriesOnAndOff() + { + var menu = Menu(); + + Assert.Null(menu.TrySetEnabled(true)); + Assert.True(menu.IsEnabled); + + Assert.Null(menu.TrySetEnabled(false)); + Assert.False(menu.IsEnabled); + } + + [Fact] + public void TrySetEnabled_ReportsRegistryErrors() + { + Registry.CurrentUser.CreateSubKey(classesPath).Dispose(); + using var readOnly = Registry.CurrentUser.OpenSubKey(classesPath, writable: false); + var menu = new ExplorerMenu(readOnly, @"Classes", ExePath, "Link to", "Link here"); + + Assert.False(string.IsNullOrEmpty(menu.TrySetEnabled(true))); + } + + [Fact] + public void Refresh_WhenOff_LeavesItOff() + { + var menu = Menu(); + + Assert.False(menu.Refresh()); + Assert.False(menu.IsEnabled); + } + + [Fact] + public void Refresh_WhenCurrent_DoesNothing() + { + var menu = Menu(); + menu.Enable(); + + Assert.False(menu.Refresh()); + } + + [Fact] + public void Refresh_AfterAnUpdate_PointsTheEntriesAtTheNewExe() + { + Menu(@"C:\Users\me\AppData\Local\Apps\2.0\old\Symlinker.exe").Enable(); + var current = Menu(); + + Assert.True(current.IsEnabled); + Assert.False(current.IsCurrent); + Assert.True(current.Refresh()); + Assert.True(current.IsCurrent); + Assert.StartsWith($"\"{ExePath}\"", Command(@"*\shell\Symlinker.LinkTo")); + } + + [Fact] + public void Refresh_AfterALanguageChange_RewritesTheText() + { + Menu().Enable(); + var german = new ExplorerMenu(Registry.CurrentUser, classesPath, ExePath, "Link hierauf erstellen", "Link hier erstellen"); + + Assert.True(german.Refresh()); + using var key = Open(@"Directory\shell\Symlinker.LinkHere"); + Assert.Equal("Link hier erstellen", key.GetValue("MUIVerb")); + } + + [Fact] + public void Refresh_RestoresAMissingEntry() + { + var menu = Menu(); + menu.Enable(); + Registry.CurrentUser.DeleteSubKeyTree(classesPath + @"\*\shell\Symlinker.LinkTo"); + + Assert.True(menu.IsEnabled); + Assert.True(menu.Refresh()); + Assert.NotNull(Open(@"*\shell\Symlinker.LinkTo")); + } + + [Fact] + public void Refresh_TreatsAnEntryWithoutCommandAsStale() + { + var menu = Menu(); + menu.Enable(); + Registry.CurrentUser.DeleteSubKeyTree(classesPath + @"\*\shell\Symlinker.LinkTo\command"); + + Assert.False(menu.IsCurrent); + Assert.True(menu.Refresh()); + Assert.True(menu.IsCurrent); + } + + [Fact] + public void Refresh_SwallowsRegistryErrors() + { + Menu(@"D:\old\Symlinker.exe").Enable(); + using var readOnly = Registry.CurrentUser.OpenSubKey(TestsKey, writable: false); + var menu = new ExplorerMenu(readOnly, classesPath[(TestsKey.Length + 1)..], ExePath, "Link to", "Link here"); + + Assert.True(menu.IsEnabled); + Assert.False(menu.Refresh()); + } + + [Fact] + public void ForCurrentUser_UsesTheUserClassesKeyAndTheAppStrings() + { + var menu = ExplorerMenu.ForCurrentUser(ExePath); + + Assert.Equal(Properties.Resources.ExplorerMenuLinkTo, menu.Entries[0].Label); + Assert.Equal(Properties.Resources.ExplorerMenuLinkHere, menu.Entries[3].Label); + + // Only reads the real registry; whatever is there, the answer is a plain bool + Assert.IsType(menu.IsEnabled); + Assert.Equal(@"Software\Classes", ExplorerMenu.UserClassesPath); + } + + private ExplorerMenu Menu(string exePath = ExePath) => + new(Registry.CurrentUser, classesPath, exePath, "Link to", "Link here"); + + private RegistryKey Open(string keyPath) => Registry.CurrentUser.OpenSubKey(classesPath + "\\" + keyPath); + + private string Command(string keyPath) + { + using var key = Open(keyPath + @"\command"); + return (string)key.GetValue(string.Empty); + } + + /// Splits a command line the way Windows does for Main, dropping the exe. + private static string[] Arguments(string commandLine) => + CommandLine.Split(commandLine).Skip(1).ToArray(); + } +} diff --git a/Symlinker.Tests/TestSupport.cs b/Symlinker.Tests/TestSupport.cs index df36bbb..091274e 100644 --- a/Symlinker.Tests/TestSupport.cs +++ b/Symlinker.Tests/TestSupport.cs @@ -226,4 +226,30 @@ public Task CreateLinkAsync(LinkRequest request) public void Dispose() => Disposed = true; } + + /// Splits a command line into arguments the way Windows does (CommandLineToArgvW). + internal static class CommandLine + { + public static string[] Split(string commandLine) + { + var argv = CommandLineToArgvW(commandLine, out var count); + try + { + var args = new string[count]; + for (var i = 0; i < count; i++) + args[i] = System.Runtime.InteropServices.Marshal.PtrToStringUni(System.Runtime.InteropServices.Marshal.ReadIntPtr(argv, i * IntPtr.Size)); + return args; + } + finally + { + LocalFree(argv); + } + } + + [System.Runtime.InteropServices.DllImport("shell32.dll", CharSet = System.Runtime.InteropServices.CharSet.Unicode)] + private static extern IntPtr CommandLineToArgvW(string commandLine, out int count); + + [System.Runtime.InteropServices.DllImport("kernel32.dll")] + private static extern IntPtr LocalFree(IntPtr memory); + } } diff --git a/Symlinker/Elevation.cs b/Symlinker/Elevation.cs index 71e807f..491c56d 100644 --- a/Symlinker/Elevation.cs +++ b/Symlinker/Elevation.cs @@ -51,9 +51,9 @@ public static LaunchOptions Parse(string[] args) { case ModeArg: options.Mode = value; break; case TypeArg: options.LinkType = value; break; - case LocationArg: options.LinkLocation = value; break; + case LocationArg: options.LinkLocation = FixQuotedPath(value); break; case NameArg: options.LinkName = value; break; - case TargetArg: options.Target = value; break; + case TargetArg: options.Target = FixQuotedPath(value); break; default: continue; } @@ -62,6 +62,14 @@ public static LaunchOptions Parse(string[] args) return options; } + + /// + /// Windows reads a backslash right before a closing quote as an escaped quote, so a drive + /// root passed as "C:\" (Explorer does this for %V) arrives as C:" instead. Paths can't + /// contain quotes, so a trailing quote can only be that lost backslash. + /// + private static string FixQuotedPath(string value) => + value.EndsWith('"') ? value[..^1] + "\\" : value; } /// diff --git a/Symlinker/ExplorerMenu.cs b/Symlinker/ExplorerMenu.cs new file mode 100644 index 0000000..5cd11c7 --- /dev/null +++ b/Symlinker/ExplorerMenu.cs @@ -0,0 +1,161 @@ +namespace Symlinker +{ + using System; + using System.Collections.Generic; + using System.Linq; + + using Microsoft.Win32; + + using Res = Symlinker.Properties.Resources; + + /// + /// The "Create link to this" and "Create link here" entries in the Explorer right-click menu. + /// They are classic shell verbs registered per user under HKCU\Software\Classes, so no + /// administrator rights are needed. Each entry starts Symlinker with the form prefilled + /// through the usual command-line options (see ). + /// + internal sealed class ExplorerMenu + { + /// Where per-user file associations and shell verbs live, under HKEY_CURRENT_USER. + public const string UserClassesPath = @"Software\Classes"; + + private const string LinkToVerb = "Symlinker.LinkTo"; + private const string LinkHereVerb = "Symlinker.LinkHere"; + private const string CommandKey = "command"; + + private readonly RegistryKey root; + private readonly string classesPath; + private readonly string exePath; + private readonly string linkToLabel; + private readonly string linkHereLabel; + + /// The registry hive, HKEY_CURRENT_USER in the app. + /// The classes key under ; tests point it at a throwaway key. + /// The Symlinker.exe the entries start. + /// Menu text on files and folders. + /// Menu text on folders and a folder's background. + public ExplorerMenu(RegistryKey root, string classesPath, string exePath, string linkToLabel, string linkHereLabel) + { + this.root = root; + this.classesPath = classesPath; + this.exePath = exePath; + this.linkToLabel = linkToLabel; + this.linkHereLabel = linkHereLabel; + } + + /// The entries for the current user, starting this copy of Symlinker, in the current UI language. + public static ExplorerMenu ForCurrentUser(string exePath) => + new(Registry.CurrentUser, UserClassesPath, exePath, Res.ExplorerMenuLinkTo, Res.ExplorerMenuLinkHere); + + /// Whether any of the entries is registered. + public bool IsEnabled => Entries.Any(entry => Exists(entry.KeyPath)); + + /// + /// Whether every entry is registered exactly as this copy would write it: same exe, + /// same arguments, same menu text. + /// + public bool IsCurrent => Entries.All(IsWrittenAs); + + /// + /// One registry key per menu entry. The path goes last on each command line: Explorer + /// passes a drive root as "C:\", and the backslash before the closing quote would + /// otherwise swallow the arguments after it (see ). + /// + internal IReadOnlyList Entries => new[] + { + new Entry(@"*\shell\" + LinkToVerb, linkToLabel, Command("--mode file --target \"%1\"")), + new Entry(@"Directory\shell\" + LinkToVerb, linkToLabel, Command("--mode folder --target \"%1\"")), + new Entry(@"Directory\shell\" + LinkHereVerb, linkHereLabel, Command("--location \"%1\"")), + new Entry(@"Directory\Background\shell\" + LinkHereVerb, linkHereLabel, Command("--location \"%V\"")), + }; + + /// Adds the entries, or rewrites them in place. + public void Enable() + { + foreach (var entry in Entries) + { + using var key = root.CreateSubKey(FullPath(entry.KeyPath)); + key.SetValue("MUIVerb", entry.Label); + key.SetValue("Icon", Quote(exePath) + ",0"); + + // One window per right-click; with several items selected the entry is hidden + key.SetValue("MultiSelectModel", "Single"); + + using var command = key.CreateSubKey(CommandKey); + command.SetValue(string.Empty, entry.Command); + } + } + + /// Removes the entries. Entries that are already gone are skipped. + public void Disable() + { + foreach (var entry in Entries) + root.DeleteSubKeyTree(FullPath(entry.KeyPath), throwOnMissingSubKey: false); + } + + /// Adds or removes the entries. Returns null when it worked, else the error message. + public string TrySetEnabled(bool enabled) + { + try + { + if (enabled) + Enable(); + else + Disable(); + + return null; + } + catch (Exception exception) + { + // Access denied by policy, or the key is locked + return exception.Message; + } + } + + /// + /// When the entries are on but point at another exe (ClickOnce installs every update in a + /// new folder) or use other menu text (the Windows language changed), rewrites them for + /// this copy. Returns true when it rewrote them. Never throws: a failure here must not + /// stop the app from starting. + /// + public bool Refresh() + { + try + { + if (!IsEnabled || IsCurrent) + return false; + + Enable(); + return true; + } + catch (Exception) + { + return false; + } + } + + private static string Quote(string value) => "\"" + value + "\""; + + private string Command(string arguments) => Quote(exePath) + " " + arguments; + + private string FullPath(string keyPath) => classesPath + "\\" + keyPath; + + private bool Exists(string keyPath) + { + using var key = root.OpenSubKey(FullPath(keyPath)); + return key != null; + } + + private bool IsWrittenAs(Entry entry) + { + using var key = root.OpenSubKey(FullPath(entry.KeyPath)); + using var command = key?.OpenSubKey(CommandKey); + return command != null + && Equals(key.GetValue("MUIVerb"), entry.Label) + && Equals(command.GetValue(string.Empty), entry.Command); + } + + /// One menu entry: its key under the classes key, its text and the command it runs. + internal sealed record Entry(string KeyPath, string Label, string Command); + } +} diff --git a/Symlinker/MainWindow.xaml b/Symlinker/MainWindow.xaml index 1379c9c..1fc1168 100644 --- a/Symlinker/MainWindow.xaml +++ b/Symlinker/MainWindow.xaml @@ -506,13 +506,32 @@ - + + + + + + + /// Looks up a localized string similar to Couldn't change the Explorer menu. {0}. + /// + public static string ExplorerMenuFailed { + get { + return ResourceManager.GetString("ExplorerMenuFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Create link here. + /// + public static string ExplorerMenuLinkHere { + get { + return ResourceManager.GetString("ExplorerMenuLinkHere", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Create link to this. + /// + public static string ExplorerMenuLinkTo { + get { + return ResourceManager.GetString("ExplorerMenuLinkTo", resourceCulture); + } + } + /// /// Looks up a localized string similar to One of the specified directories or files does not exist. Please provide valid paths.. /// @@ -298,6 +325,15 @@ public static string LinkCreationAbortedWarning { } } + /// + /// Looks up a localized string similar to Show in Explorer right-click menu. + /// + public static string MenuExplorerIntegration { + get { + return ResourceManager.GetString("MenuExplorerIntegration", resourceCulture); + } + } + /// /// Looks up a localized string similar to About. /// @@ -643,6 +679,15 @@ public static string TooltipLinkTypeTitle { } } + /// + /// Looks up a localized string similar to Settings. + /// + public static string TooltipSettings { + get { + return ResourceManager.GetString("TooltipSettings", resourceCulture); + } + } + /// /// Looks up a localized string similar to Select the real file or folder the link will point to. ///Click the icon or drag and drop a file/folder here.. diff --git a/Symlinker/Properties/Resources.de.resx b/Symlinker/Properties/Resources.de.resx index 51d5232..2e87a1e 100644 --- a/Symlinker/Properties/Resources.de.resx +++ b/Symlinker/Properties/Resources.de.resx @@ -322,4 +322,20 @@ Ins Ziel verschieben und an ihrer Stelle einen Link anlegen? Alles, was den alte Die Microsoft Store-Version kann keine Dateien in den AppData-Ordner verschieben: Windows würde sie in einer privaten Kopie ablegen, die nur Symlinker sieht. Wählen Sie ein Ziel außerhalb von AppData, oder verschieben Sie die Dateien selbst dorthin und erstellen Sie den Link erneut. + + Einstellungen + + + Im Explorer-Kontextmenü anzeigen + + + Link hierauf erstellen + + + Link hier erstellen + + + Das Explorer-Menü konnte nicht geändert werden. +{0} + diff --git a/Symlinker/Properties/Resources.es.resx b/Symlinker/Properties/Resources.es.resx index 5bd1f97..551c730 100644 --- a/Symlinker/Properties/Resources.es.resx +++ b/Symlinker/Properties/Resources.es.resx @@ -322,4 +322,20 @@ o modo carpeta (enlazar una carpeta a otra carpeta). La versión de Microsoft Store no puede mover archivos a la carpeta AppData: Windows los guardaría en una copia privada que solo ve Symlinker. Elige un destino fuera de AppData, o mueve tú los archivos allí y vuelve a crear el enlace. + + Configuración + + + Mostrar en el menú contextual del Explorador + + + Crear enlace a esto + + + Crear enlace aquí + + + No se pudo cambiar el menú del Explorador. +{0} + diff --git a/Symlinker/Properties/Resources.fr.resx b/Symlinker/Properties/Resources.fr.resx index e89a2df..6bc92f4 100644 --- a/Symlinker/Properties/Resources.fr.resx +++ b/Symlinker/Properties/Resources.fr.resx @@ -322,4 +322,20 @@ Le déplacer vers la cible et laisser un lien à sa place ? Tout ce qui utilise La version Microsoft Store ne peut pas déplacer de fichiers dans le dossier AppData : Windows les garderait dans une copie privée que seul Symlinker voit. Choisissez une cible en dehors d'AppData, ou déplacez vous-même les fichiers puis recréez le lien. + + Paramètres + + + Afficher dans le menu contextuel de l'Explorateur + + + Créer un lien vers cet élément + + + Créer un lien ici + + + Impossible de modifier le menu de l'Explorateur. +{0} + diff --git a/Symlinker/Properties/Resources.hi.resx b/Symlinker/Properties/Resources.hi.resx index ec21467..5a4edfd 100644 --- a/Symlinker/Properties/Resources.hi.resx +++ b/Symlinker/Properties/Resources.hi.resx @@ -322,4 +322,20 @@ Microsoft Store संस्करण फ़ाइलों को AppData फ़ोल्डर में नहीं ले जा सकता: Windows उन्हें एक निजी कॉपी में रखेगा जिसे सिर्फ़ Symlinker देख सकता है। AppData के बाहर कोई लक्ष्य चुनें, या फ़ाइलों को खुद वहाँ ले जाएं और फिर से लिंक बनाएं। + + सेटिंग्स + + + एक्सप्लोरर के राइट-क्लिक मेनू में दिखाएं + + + इसका लिंक बनाएं + + + यहाँ लिंक बनाएं + + + एक्सप्लोरर मेनू नहीं बदला जा सका। +{0} + diff --git a/Symlinker/Properties/Resources.it.resx b/Symlinker/Properties/Resources.it.resx index eb7d66c..e6f2f92 100644 --- a/Symlinker/Properties/Resources.it.resx +++ b/Symlinker/Properties/Resources.it.resx @@ -322,4 +322,20 @@ Spostarlo nella destinazione e lasciare un link al suo posto? Tutto ciò che usa La versione di Microsoft Store non può spostare file nella cartella AppData: Windows li terrebbe in una copia privata visibile solo a Symlinker. Scegli una destinazione fuori da AppData, oppure sposta tu i file e crea di nuovo il collegamento. + + Impostazioni + + + Mostra nel menu contestuale di Esplora file + + + Crea collegamento a questo + + + Crea collegamento qui + + + Impossibile modificare il menu di Esplora file. +{0} + diff --git a/Symlinker/Properties/Resources.ja.resx b/Symlinker/Properties/Resources.ja.resx index 13d5b45..de0d27d 100644 --- a/Symlinker/Properties/Resources.ja.resx +++ b/Symlinker/Properties/Resources.ja.resx @@ -322,4 +322,20 @@ Microsoft Store 版では、AppData フォルダーにファイルを移動できません。Windows がファイルを Symlinker だけが見えるプライベートなコピーに保存してしまうためです。AppData の外にあるターゲットを選ぶか、ファイルを自分で移動してからもう一度リンクを作成してください。 + + 設定 + + + エクスプローラーの右クリック メニューに表示 + + + これへのリンクを作成 + + + ここにリンクを作成 + + + エクスプローラーのメニューを変更できませんでした。 +{0} + diff --git a/Symlinker/Properties/Resources.pt.resx b/Symlinker/Properties/Resources.pt.resx index 0930d3d..43704cb 100644 --- a/Symlinker/Properties/Resources.pt.resx +++ b/Symlinker/Properties/Resources.pt.resx @@ -322,4 +322,20 @@ Movê-lo para o destino e deixar um link no lugar dele? Tudo que usa o caminho a A versão da Microsoft Store não pode mover arquivos para a pasta AppData: o Windows os guardaria em uma cópia privada que só o Symlinker vê. Escolha um destino fora da AppData ou mova você mesmo os arquivos e crie o link novamente. + + Configurações + + + Mostrar no menu de contexto do Explorador + + + Criar link para isto + + + Criar link aqui + + + Não foi possível alterar o menu do Explorador. +{0} + diff --git a/Symlinker/Properties/Resources.resx b/Symlinker/Properties/Resources.resx index 8b4b5bb..cab9ed9 100644 --- a/Symlinker/Properties/Resources.resx +++ b/Symlinker/Properties/Resources.resx @@ -381,4 +381,20 @@ Move it to the target and leave a link in its place? Anything using the old path The Microsoft Store version can't move files into the AppData folder: Windows would keep them in a private copy that only Symlinker sees. Pick a target outside AppData, or move the files there yourself and create the link again. + + Settings + + + Show in Explorer right-click menu + + + Create link to this + + + Create link here + + + Couldn't change the Explorer menu. +{0} + \ No newline at end of file diff --git a/Symlinker/Properties/Resources.zh.resx b/Symlinker/Properties/Resources.zh.resx index fe93834..a465775 100644 --- a/Symlinker/Properties/Resources.zh.resx +++ b/Symlinker/Properties/Resources.zh.resx @@ -322,4 +322,20 @@ Microsoft Store 版本无法将文件移动到 AppData 文件夹:Windows 会把它们保存在只有 Symlinker 能看到的私有副本中。请选择 AppData 以外的目标,或者自己移动文件后再重新创建链接。 + + 设置 + + + 在资源管理器右键菜单中显示 + + + 创建指向此项的链接 + + + 在此处创建链接 + + + 无法更改资源管理器菜单。 +{0} +