Hi there, i need some help, i am working on a project, where we need to restrict some access to file and folders, that is default install on Windows 7.
So fare i know that the vbs has to run as administrator on the local PC, i have found a old sribt that will handle the job of hiding the files
To hide files simply use this code
Dim FS, F
Set FS = CreateObject("Scripting.FileSystemObject")
Set F = FS.GetFile(%FILEPATH%) 'Replace %FILEPATH% with the files path
F.Attributes = -1 ' -1 Makes it a system file so its hidden from windows explorer(works for me on xp)
But now i need it to run as administrator, because windows 7 dont give access to normal user to change the path.
Anyone know how to handle this ???