Solved

How to copy just 1 file with NTFS security with ROBOCOPY?

Posted on 2010-09-11
5
797 Views
Last Modified: 2012-05-10
How to copy just 1 file with NTFS security with ROBOCOPY?
0
Comment
Question by:SAM2009
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 65

Expert Comment

by:rockiroads
ID: 33655679
What do you mean by ntfs security, are you talking about the security info as well?

/secfix I think might do it
0
 
LVL 65

Accepted Solution

by:
rockiroads earned 100 total points
ID: 33655682
actually it might just be /sec. I am confirming this with the list of switches here http://www.mydigitallife.info/2007/05/07/robocopy-syntax-command-line-switches-and-examples/
0
 
LVL 85

Assisted Solution

by:oBdA
oBdA earned 100 total points
ID: 33655964
You just add the file name(s) as argument after the source and target folder:
robocopy "S:\ource\FOLDER" "T:\arget\FOLDER" "TheFileName.ext" /copyall
0
 
LVL 6

Assisted Solution

by:Hisham_Elkouha
Hisham_Elkouha earned 50 total points
ID: 33656140
/sec would do it
0
 
LVL 1

Author Closing Comment

by:SAM2009
ID: 33659234
I already tried /sec and /copy...both work fine but there was something that maked me confused.

Exemple: robocopy "S:\ource\FOLDER" "T:\arget\FOLDER" "TheFileName.ext" /copyall

or robocopy "S:\ource\FOLDER" "T:\arget\FOLDER" "TheFileName.ext" /sec


With robocopy XP010 even if folder in target does not exist it will create it and copy file with security NTFS. This is not the case with XP027, with XP027 version like in Win 2008 if folder specified in target is missing the file will be copied but not the permisssion.

Thanks for your helps.
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Resolving an irritating Remote Desktop connection that stops your saved credentials from being used.
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question