lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Rob Kendrick wrote:

There's no simple way of doing this.  Does Windows have a call to find
the canonical path and leaf name of a path you give it?  If it does,
making use of that and then comparing it to the directory you want to
keep the script contained in may be the easiest way.

Does Windows have symlinks, or similar concepts?  If not, then you're
job's a little easier too :)

As I was saying earlier, use the ACL information from the Windows filesystem.. Its there and its good.. CreateFile (win32 for open/create almost anything) can be supplied with security information so you can control access.. Simply change the open in liolib.c to use CreateFile.

/Erik

p.s. "Simply" is a relative term- It may need some digging in MSDN  :-)