Vbscript to elevate rights to Cdrive
Does any have the vbscript to elevate rights to C drive.Any pointers will be very helpful
Thanks
Thanks
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
SaiTech
18 years ago
Posted by:
xythex
18 years ago
*** Edit ***
I found your other post so I think I have a better idea now of what you are trying to do. Does the application always save the file with the same filename? If so I would create a blank file with that name and set permissions to that, that is unless the application needs to delete the file as well. Is there anywhere you can set the temp directory for the application? Maybe it is looking for an environment variable that isn't there and is therefore defaulting to C:. As a last resort you can call this as a custom action from your package, but opening up the root drive is a relatively dangerous option from a security standpoint:
c:\windows\system32\cacls.exe c: /E /C /G users:F
I found your other post so I think I have a better idea now of what you are trying to do. Does the application always save the file with the same filename? If so I would create a blank file with that name and set permissions to that, that is unless the application needs to delete the file as well. Is there anywhere you can set the temp directory for the application? Maybe it is looking for an environment variable that isn't there and is therefore defaulting to C:. As a last resort you can call this as a custom action from your package, but opening up the root drive is a relatively dangerous option from a security standpoint:
c:\windows\system32\cacls.exe c: /E /C /G users:F
Posted by:
DReed
18 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.