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? Could CACLS be used to solved this issue? How? What syntax? I could not figure out from CACLS /?.

Thanks

Keith
 
KeithAlex,

You might want to see the "Behavior that is affected when Simple File Sharing is turned on" Heading in the link. It might explain the things you are seeing.

How to configure file sharing in Windows XP

This may answer why you are not seeing what you want.

rvnguy
"I know everything..I just can't remember it all
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top