No..I am new to VBScript world..I dont have any other website .I found the below snippet to give permission to the folder ..its working fine If I give folder name,fucntional Id and Tyrpe access hardcoded in teh script file..I am trying to modify this to read frm text or Excell
Code:
' Cacls.vbs
' Example VBScript to set Administrators permissions with Cacls
' Version 2.1 - September 2010
' ---------------------------------------------------------'
Option Explicit
Dim strHomeFolder, strHome, strUser
Dim intRunError, objShell, objFSO
strHomeFolder = "C:\TestFolderStructure"
Set objShell = CreateObject("Wscript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
If objFSO.FolderExists(strHomeFolder) Then
' Assign user permission to home folder.
intRunError = objShell.Run("%COMSPEC% /c Echo Y| cacls " _
& strHomeFolder & " /E /c /g O035378:F", 2, True)
If intRunError <> 0 Then
Wscript.Echo "Error assigning permissions for user " _
& strUser & " to home folder " & strHomeFolder
else
WScript.Echo " Functional Id mapped succesfully"
End If
End If
WScript.Quit
' End of Cacls example VBScript
F499581