Check directory permissions
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
I've got a little script which needs to put it's output in a user-
specified directory and I'd like to make sure that the user has
permission to write to the directory before letting the script try.
I've seen some posts which suggest trying to write a file to the
directory first, while other suggested using GetAtrr(). GetAtrr()
only seems to want to tell me that the specified directory is in fact
a directory.
Is there a simple way to check that the user has write permissions or
am I better off try to write a file and trapping that error?
.
Relevant Pages
- Re: Check directory permissions
... The script is producing a few hundred little text files, ... while other suggested using GetAtrr(). ... only seems to want to tell me that the specified directory is in fact ... Dave Peterson ... (microsoft.public.excel.programming) - Re: Check directory permissions
... The script is producing a few hundred little text files, ... while other suggested using GetAtrr(). ... only seems to want to tell me that the specified directory is in fact ... Dave Peterson- Hide quoted text - ... (microsoft.public.excel.programming) - Re: Check directory permissions
... permission to write to the directory before letting the script try. ... while other suggested using GetAtrr(). ... Dave Peterson ... (microsoft.public.excel.programming) - Re: editing licensed shows
... You can do almost anything with CHESS if you get permission. ... the first productions done after Broadway was by the Long Beach Civic ... The script was very much changed by director ... (rec.arts.theatre.musicals) - RE: Help needed setting user security rights through a script
... 'this script will set permission on given folder... ... 'Folder on which permissions will be applied, ... 'users:C means "Users" group will be assigned Change permission. ... > install or uninstall applications. ... (microsoft.public.windows.server.scripting) |
|