Programming
--
Questions
--
Followers
Top Experts
VBSCRIPT: Moving a file, inheriting NTFS permissions
Hi, Â Have a seemingly simple task but cannot seem to find the answer.
Have a Windows 2003 Server. Â Need to move specific files on a regular basis from one folder to another on the same volume. Â This is working ok now via asp script, but there is a quirky permissions problem.
By default, if a file is being moved from one folder to another and the source and destination folders are on the same volume, which they are, then the file will retain the original permissions. Â I do not want that. Â I need the file that is being moved to inherit the new permissions of the destination folder.
As a workaround i have made the permissions on the source and destination folder the same. Â But this is undesirable.
Is there a way to force this programtically?
Thanks in advance.
Mark
Have a Windows 2003 Server. Â Need to move specific files on a regular basis from one folder to another on the same volume. Â This is working ok now via asp script, but there is a quirky permissions problem.
By default, if a file is being moved from one folder to another and the source and destination folders are on the same volume, which they are, then the file will retain the original permissions. Â I do not want that. Â I need the file that is being moved to inherit the new permissions of the destination folder.
As a workaround i have made the permissions on the source and destination folder the same. Â But this is undesirable.
Is there a way to force this programtically?
Thanks in advance.
Mark
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
ASKER CERTIFIED SOLUTION
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
just 175?






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Programming
--
Questions
--
Followers
Top Experts
Programming includes both the specifics of the language you’re using, like Visual Basic, .NET, Java and others, but also the best practices in user experience and interfaces and the management of projects, version control and development. Other programming topics are related to web and cloud development and system and hardware programming.