READ ONLY Directory
I have this simple autoIt script that looks for a file, if the file exists it copies a few other files to that same directory.
If FileExists("c:\esri\av_gis30\arcview\ext32\rams-ext.avx") Then
FileCopy("rams-ext.avx", "c:\esri\av_gis30\arcview\ext32\" ,1 )
FileCopy("avorm-ext.avx", "c:\esri\av_gis30\arcview\ext32\" ,1 )
FileCopy("av_patches-ext.avx", "c:\esri\av_gis30\arcview\ext32\" ,1 )
FileCopy("odie5-ext.avx", "c:\esri\av_gis30\arcview\ext32\" ,1 )
Else
Exit
EndIf
This works for most, however. Some workstations have this "ESRI" directory set to "Read Only". When this is the case. I can not get the files to copy. I checked out a machine that this was happening on. With admin rights I removed "Read Only" and took ownership. After it applies the change, you check it again and " Read Only is back on!!!! Does anyone know what I am talking about or have seen this before? At first I thought it was the script, but that is not the case.
If FileExists("c:\esri\av_gis30\arcview\ext32\rams-ext.avx") Then
FileCopy("rams-ext.avx", "c:\esri\av_gis30\arcview\ext32\" ,1 )
FileCopy("avorm-ext.avx", "c:\esri\av_gis30\arcview\ext32\" ,1 )
FileCopy("av_patches-ext.avx", "c:\esri\av_gis30\arcview\ext32\" ,1 )
FileCopy("odie5-ext.avx", "c:\esri\av_gis30\arcview\ext32\" ,1 )
Else
Exit
EndIf
This works for most, however. Some workstations have this "ESRI" directory set to "Read Only". When this is the case. I can not get the files to copy. I checked out a machine that this was happening on. With admin rights I removed "Read Only" and took ownership. After it applies the change, you check it again and " Read Only is back on!!!! Does anyone know what I am talking about or have seen this before? At first I thought it was the script, but that is not the case.
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
aogilmor
17 years ago
Posted by:
madsquirrel21
17 years ago
Posted by:
aogilmor
17 years ago
Posted by:
madsquirrel21
17 years ago
Posted by:
aogilmor
17 years ago
I saw in installation program one time that set r/o permissions on the program menu directory.
Well if it's not ownership or perms it must be another process that's resetting it. Often Policies will restrict perms on directories off the root. talk to the network admin.
could it be the app itself resetting or "protecting" its program dir? I've seen apps do some strange things.
couple more things, How LONG does it take for the attribute to reset and WHEN does it happen? A policy is bound to take a few minutes...if you unplug from the network does it still happen? does it happen right after you run the app, or just install it?
Well if it's not ownership or perms it must be another process that's resetting it. Often Policies will restrict perms on directories off the root. talk to the network admin.
could it be the app itself resetting or "protecting" its program dir? I've seen apps do some strange things.
couple more things, How LONG does it take for the attribute to reset and WHEN does it happen? A policy is bound to take a few minutes...if you unplug from the network does it still happen? does it happen right after you run the app, or just install it?
Posted by:
madsquirrel21
17 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.