Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File moved on XP home NTFS does not inherit new parent permission

Status
Not open for further replies.

KeithAlex

Technical User
Jan 19, 2004
6
US
On XP Home NTFS, when a file is moved from a non-network-shared folder to a shared folder using Explorer.exe GUI the file access permission is reset to that of the new parent folder. However, this does not happen if the Move Command from the Command prompt is used or the VB "Name Statement" is used or the FileMoveEx Windows API is used. I would like to know how can I achieve the same result as the explorer GUI either from command prompt, vb, vb script, batch file or programmatically in anyway or even from explorer if it has any Commandline switches to do that as opposed to manually using GUI?

Thanks
Keith
 
Look up CACLS /? which let you change permissions of a file.

David
 
I did try to study CACLS but could not figure out syntax that would solve the mentioned problem!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top