Skip to content

Commit

Permalink
Support unicode file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
arnobpl committed Mar 7, 2022
1 parent 8ace35d commit f64752f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SymlinkCreator/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("1.1.0")]
[assembly: AssemblyFileVersion("1.1.0")]
[assembly: AssemblyVersion("1.2.0")]
[assembly: AssemblyFileVersion("1.2.0")]
4 changes: 4 additions & 0 deletions SymlinkCreator/core/SymlinkAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ public void CreateSymlinks()
DateTime.Now.Ticks.ToString() + ".bat";
ScriptExecutor scriptExecutor = new ScriptExecutor(scriptFileName);

// set code page to UTF-8 to support unicode file paths
scriptExecutor.WriteLine("chcp 65001 >NUL");

// go to destination path
scriptExecutor.WriteLine(_splittedDestinationPath[0]);
scriptExecutor.WriteLine("cd \"" + _destinationPath + "\"");

Expand Down

0 comments on commit f64752f

Please sign in to comment.