mailing list archives
CACLS using vb script
From: Pralay Desai <pralaydesai () gmail com>
Date: Tue, 7 Jun 2005 11:22:16 +0530
I am trying to change permission of one file using windows xp built in
tool CACLS. I am able to modify user permission when I am logged in,
using command prompt manually. I want to do it from vb script so I
wrote following script :
Set WshShell = Wscript.CreateObject("Wscript.Shell")
Call WshShell.Run("cacls """&"c:\documents and
settings\limiteduser.orig\ntuser.man"" /g limiteduser:F", 1, TRUE)
I can run properly if I use "COMSPEC".
I want to run this command (CACLS) without COMSPEC. So can you suggest
something for that?
Hoping for some quick reply .............
- CACLS using vb script Pralay Desai (Jun 08)