File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ private void CreateSymbolicLink(string linkPath, string realPath)
143143 {
144144 Process process = new Process ( ) ;
145145 ProcessStartInfo startInfo = new ProcessStartInfo ( ) ;
146- // startInfo.WindowStyle = ProcessWindowStyle.Hidden;
146+ startInfo . WindowStyle = ProcessWindowStyle . Hidden ;
147147
148148 if ( Environment . OSVersion . Platform == PlatformID . Unix || Environment . OSVersion . Platform == PlatformID . MacOSX )
149149 {
@@ -159,7 +159,7 @@ private void CreateSymbolicLink(string linkPath, string realPath)
159159 if ( IsUserAnAdmin ( ) ) linktype = "D" ;
160160 else linktype = "J" ;
161161
162- startInfo . Arguments = string . Format ( @"/K mklink /{0} ""{1}"" ""{2}""" , linktype , linkPath , realPath ) ;
162+ startInfo . Arguments = string . Format ( @"/C mklink /{0} ""{1}"" ""{2}""" , linktype , linkPath , realPath ) ;
163163 }
164164
165165 process . StartInfo = startInfo ;
You can’t perform that action at this time.
0 commit comments