I'm working on a program on where I need to changed the file's permissions.
My problem is that I can't set the file to "Read and Execute".
I can set the file into "Read" with the code below, but how about "Read and Execute"?
Thank you for kind reply.
My problem is that I can't set the file to "Read and Execute".
I can set the file into "Read" with the code below, but how about "Read and Execute"?
VB.NET:
File.SetAttributes("C:\testfolder\sample.txt", FileAttributes.ReadOnly) ' Set file to Read and Execute.
Thank you for kind reply.