i'm having some issues representing quotes within the exec(" "). here's what i have.
dim user_name
user_name = "Test test"
Set wshShell = createobject("wscript.shell")
Set permissions = wshShell.Exec("xcacls.exe "d:\calendar\""& Lcase(user_name) &""" /G administrator:F ""& Lcase(user_name) &"":F /Y)
I'm trying to get the code above to do this on a win2k command line.
xcacls "d:\calendar\test test" /F administrator:F "test test":F /y
dim user_name
user_name = "Test test"
Set wshShell = createobject("wscript.shell")
Set permissions = wshShell.Exec("xcacls.exe "d:\calendar\""& Lcase(user_name) &""" /G administrator:F ""& Lcase(user_name) &"":F /Y)
I'm trying to get the code above to do this on a win2k command line.
xcacls "d:\calendar\test test" /F administrator:F "test test":F /y