Link to home
Create AccountLog in
Programming

Programming

--

Questions

--

Followers

Top Experts

Avatar of MarkDJordan
MarkDJordan🇺🇸

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

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
Avatar of gyragyra

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of gyragyra

just 175?

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.

Programming

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.