Re: Setting Ownership rights on a file?




"Nick Fletcher" <nick@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:7EB1149A-046A-41B6-B10B-DABE437C64D1@xxxxxxxxxxxxxxxx
I have the attached script ina batch file
echo ******* Copies suggestions from P:\ to secure********
xcopy "P:\My Suggestions\*.*" "\\SERVER23\Suggestions_MP\*.*"
exit

What I need to do following the copy is to change the Ownership rights on
the file in the batch file to a specific AD user or perhaps group.
Can anyone help with the syntax please?
--
Regards
Nick

Both subinacl.exe and fileacl.exe will do it. Subinacl.exe comes
with Windows. Fileacl.exe is easier to use and can be downloaded from here:
http://www.microsoft.com/downloads/details.aspx?FamilyID=723f64ea-34f0-4e6d-9a72-004d35de4e64&displaylang=en


.



Relevant Pages

  • Re: drag/drop file-icon on tcl-script? on windows
    ... drag a file onto the programs Icon, or it's shortcut, and ... Wrap your script in a batch file. ... start tclkit "%~f0" & exit ... Most people on windows have ActiveState so he's more likely to have ...
    (comp.lang.tcl)
  • RE: How to make a batch file to start program and close the old window?
    ... How to make a batch file to start program and closethe ... a signal when your parent shell exits. ... nohup command & ... the '&' lets the shell continue instead of waiting, and the 'exit' ...
    (Fedora)
  • Scripting In Putty Error
    ... I'm trying to write a batch file that will launch Putty ...
    (comp.security.ssh)
  • Re: How to copy(not redirect) IE fav to network drive
    ... @echo off ... There are a few problems with your batch file: ... You may want to add the /d switch so that old files ...
    (microsoft.public.windows.server.general)
  • Re: DOS Commands
    ... >> Does anyone know a DOS command to close a program? ... >> automate a process and are trying to get a batch file that will open ... as one can close the batch file window with a simple EXIT ...
    (microsoft.public.win2000.general)

Loading