Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple VBS script

Status
Not open for further replies.

leeoc91

Technical User
Dec 5, 2012
1
GB
Hi,

I am having trouble re-writing a BAT script to change permissions on windows folders/files in VBS. Here is the batch file:

Code:
@echo off

ICACLS "%USERPROFILE%\Local Settings\Temporary Internet Files\Content.Outlook" /t /grant Everyone:(OI)(CI)F

I just haven't got the skills to re-write this in VBS, can anyone help me with this?
 
Hi [smile]
Try this :
Code:
Set Ws = CreateObject("wscript.Shell")
Command = "Cmd /c ""%USERPROFILE%\Local Settings\Temporary Internet Files\Content.Outlook"" /t /grant Everyone:(OI)(CI)F"
Execution = Ws.run(Command,0,True) '0 To hide the console 1 to show it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top