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
Thanks
Keith