changeset 446:2784404a9dfa

Fix for case if path contains spaces.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Wed, 02 Nov 2011 19:59:49 +0200
parents 2d0504445a5f
children ff04b1e9b948
files admin/win/uac/uac.bat
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/admin/win/uac/uac.bat	Wed Nov 02 01:43:05 2011 +0200
+++ b/admin/win/uac/uac.bat	Wed Nov 02 19:59:49 2011 +0200
@@ -1,6 +1,6 @@
-cd %1
+cd "%*"
 
-takeown /r /f %1
-icacls %1 /grant:r *S-1-1-0:(f) /t /c
+takeown /r /f "%*"
+icacls "%*" /grant:r *S-1-1-0:(f) /t /c
 
 pause