file permission

  1. J

    Question Change file permission to Read & Execute

    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"? File.SetAttributes("C:\testfolder\sample.txt"...