How to suppress prompting and not overwrite an existing destination file in XCOPY?

  • Thread starter Thread starter Dmitriy Kopnichev
  • Start date Start date
D

Dmitriy Kopnichev

Hello
How to suppress prompting and not overwrite an existing destination file in
XCOPY? There's no this in the XCOPY help or XCOPY /?
 
Not sure, as I I haven't used xcopy for ages - robocopy from the resource
kit will do this nicely for you, tho.
 
Thanks for your reply!
How to get the resource kit or the robocopy?
"Lanwench [MVP - Exchange]"
 
||| "Dmitriy Kopnichev" <[email protected]>
||| wrote in message ||| Hello How to suppress prompting and not overwrite an
||| existing destination file in XCOPY? There's no this in the
||| XCOPY help or XCOPY /?

|| "Lanwench [MVP - Exchange]"
|| || Not sure, as I I haven't used xcopy for ages - robocopy from
|| the resource kit will do this nicely for you, tho.

| "Dmitriy Kopnichev" <[email protected]>
| wrote in message | Thanks for your reply! How to get the resource kit or the robocopy?

For more information about robocopy.exe see the following
Web Page, and click the links to Syntax, Examples, etc.

Microsoft Documentation | Tools and Settings Collection
Introduction to Resource Kit Tools
Windows Server 2003 Resource Kit Tools Help
Robocopy_exe Robust File Copy Utility
http://www.microsoft.com/resources/documentation/windowsServ/2003/all/techref/en-us/robocopy.asp

To download the Windows Server 2003 Resource Kit
Tools visit the following Web Page:

Microsoft Download Center: Download details
Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en

Note 1:
The Supported Operating Systems for the
Windows Server 2003 Resource Kit Tools are:

Windows Server 2003, Windows XP
 
Thanks for your reply!
How to get the Robocopy_exe Robust File Copy Utility, not to download all
the Resource Kit Tools 12 mb file?
 
||||| "Dmitriy Kopnichev" <[email protected]>
||||| wrote in message ||||| Hello How to suppress prompting and not overwrite an
||||| existing destination file in XCOPY? There's no this in the
||||| XCOPY help or XCOPY /?

|||| "Lanwench [MVP - Exchange]"
|||| Not sure, as I I haven't used xcopy for ages - robocopy
|||| from the resource kit will do this nicely for you, tho.

||| "Dmitriy Kopnichev" <[email protected]>
||| wrote in message ||| Thanks for your reply! How to get the resource kit or the
||| robocopy?

|| "Carrie Garth" <[email protected]>
|| wrote in message || <SNIP> Windows Server 2003 Resource Kit Tools Help
|| http://www.microsoft.com/resources/documentation/windowsServ/2003/all/techref/en-us/robocopy.asp
|| <SNIP> Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en
|| <SNIP>

| "Dmitriy Kopnichev" <[email protected]>
| wrote in message | Thanks for your reply!
| How to get the Robocopy_exe Robust File Copy Utility, not
| to download all the Resource Kit Tools 12 mb file?

Sorry. But I do not think that you can download
robocopy.exe separately from the Resource Kit Tools.

An alternative tool with a great deal of flexibility is XXCopy.
This tool is freeware for personal usage, is packaged as a
*.zip file for download, and is only 244 KB zipped.

Note that XXCopy has hundreds of switches and takes
some practice, but there is a great deal of documentation and
support (gotta love it!)

For the main Web Page for XXCopy see:

XXCOPY, a Versatile File Management Utility
--- Boldly Extended Xcopy
http://www.xxcopy.com/

For Guidance and Reference (Technical Bulletins)
http://www.xxcopy.com/index.html#tbul

To download the XXCopy help (*.chm) file:
http://www.xxcopy.com/xxcopy.chm

To read the XXCOPY Discussion Group:
http://groups.yahoo.com/group/xxcopy

To view the numerous NG postings from the author of
XXCOPY, Kan Yabumoto:
http://www.google.com/groups?&q=author:Kan+author:Yabumoto

And if I understand correctly what you are trying to do...

You have a backup of files from a certain folder, say
C:\My Documents, in another folder, say D:\backup.
And you want to be able to backup brand new files
only (from C:\My Documents to D:\backup). That is,
you do not want to overwrite existing files. And you
do not want to be prompted as to such. If that is
correct then use XXCopy with the /BB switch.
For example:

xxcopy "c:\My Documents" d:\backup\ /BB

Note that I may have misunderstood what you
are trying to do. And I am not an expert in the use
of XXCopy (or any command line tool for that
matter). So if you decided to use my command
please test the command on a temp directory with
temp files before you actually use it on your
valuable data.
 
Thanks for your reply!
Yes. I want to be able to backup absent in the backup files only.
Carrie Garth said:
||||| "Dmitriy Kopnichev" <[email protected]>
||||| wrote in message ||||| Hello How to suppress prompting and not overwrite an
||||| existing destination file in XCOPY? There's no this in the
||||| XCOPY help or XCOPY /?

|||| "Lanwench [MVP - Exchange]"
|||| Not sure, as I I haven't used xcopy for ages - robocopy
|||| from the resource kit will do this nicely for you, tho.

||| "Dmitriy Kopnichev" <[email protected]>
||| wrote in message ||| Thanks for your reply! How to get the resource kit or the
||| robocopy?

|| "Carrie Garth" <[email protected]>
|| wrote in message || <SNIP> Windows Server 2003 Resource Kit Tools Help
|| http://www.microsoft.com/resources/documentation/windowsServ/2003/all/techref/en-us/robocopy.asp
|| <SNIP> Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en
|| <SNIP>

| "Dmitriy Kopnichev" <[email protected]>
| wrote in message | Thanks for your reply!
| How to get the Robocopy_exe Robust File Copy Utility, not
| to download all the Resource Kit Tools 12 mb file?

Sorry. But I do not think that you can download
robocopy.exe separately from the Resource Kit Tools.

An alternative tool with a great deal of flexibility is XXCopy.
This tool is freeware for personal usage, is packaged as a
*.zip file for download, and is only 244 KB zipped.

Note that XXCopy has hundreds of switches and takes
some practice, but there is a great deal of documentation and
support (gotta love it!)

For the main Web Page for XXCopy see:

XXCOPY, a Versatile File Management Utility
--- Boldly Extended Xcopy
http://www.xxcopy.com/

For Guidance and Reference (Technical Bulletins)
http://www.xxcopy.com/index.html#tbul

To download the XXCopy help (*.chm) file:
http://www.xxcopy.com/xxcopy.chm

To read the XXCOPY Discussion Group:
http://groups.yahoo.com/group/xxcopy

To view the numerous NG postings from the author of
XXCOPY, Kan Yabumoto:
http://www.google.com/groups?&q=author:Kan+author:Yabumoto

And if I understand correctly what you are trying to do...

You have a backup of files from a certain folder, say
C:\My Documents, in another folder, say D:\backup.
And you want to be able to backup brand new files
only (from C:\My Documents to D:\backup). That is,
you do not want to overwrite existing files. And you
do not want to be prompted as to such. If that is
correct then use XXCopy with the /BB switch.
For example:

xxcopy "c:\My Documents" d:\backup\ /BB

Note that I may have misunderstood what you
are trying to do. And I am not an expert in the use
of XXCopy (or any command line tool for that
matter). So if you decided to use my command
please test the command on a temp directory with
temp files before you actually use it on your
valuable data.
 
It is strange that Windows XP Professional by itself can't copy files
without overwriting and prompting!
Carrie Garth said:
||||| "Dmitriy Kopnichev" <[email protected]>
||||| wrote in message ||||| Hello How to suppress prompting and not overwrite an
||||| existing destination file in XCOPY? There's no this in the
||||| XCOPY help or XCOPY /?

|||| "Lanwench [MVP - Exchange]"
|||| Not sure, as I I haven't used xcopy for ages - robocopy
|||| from the resource kit will do this nicely for you, tho.

||| "Dmitriy Kopnichev" <[email protected]>
||| wrote in message ||| Thanks for your reply! How to get the resource kit or the
||| robocopy?

|| "Carrie Garth" <[email protected]>
|| wrote in message || <SNIP> Windows Server 2003 Resource Kit Tools Help
|| http://www.microsoft.com/resources/documentation/windowsServ/2003/all/techref/en-us/robocopy.asp
|| <SNIP> Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en
|| <SNIP>

| "Dmitriy Kopnichev" <[email protected]>
| wrote in message | Thanks for your reply!
| How to get the Robocopy_exe Robust File Copy Utility, not
| to download all the Resource Kit Tools 12 mb file?

Sorry. But I do not think that you can download
robocopy.exe separately from the Resource Kit Tools.

An alternative tool with a great deal of flexibility is XXCopy.
This tool is freeware for personal usage, is packaged as a
*.zip file for download, and is only 244 KB zipped.

Note that XXCopy has hundreds of switches and takes
some practice, but there is a great deal of documentation and
support (gotta love it!)

For the main Web Page for XXCopy see:

XXCOPY, a Versatile File Management Utility
--- Boldly Extended Xcopy
http://www.xxcopy.com/

For Guidance and Reference (Technical Bulletins)
http://www.xxcopy.com/index.html#tbul

To download the XXCopy help (*.chm) file:
http://www.xxcopy.com/xxcopy.chm

To read the XXCOPY Discussion Group:
http://groups.yahoo.com/group/xxcopy

To view the numerous NG postings from the author of
XXCOPY, Kan Yabumoto:
http://www.google.com/groups?&q=author:Kan+author:Yabumoto

And if I understand correctly what you are trying to do...

You have a backup of files from a certain folder, say
C:\My Documents, in another folder, say D:\backup.
And you want to be able to backup brand new files
only (from C:\My Documents to D:\backup). That is,
you do not want to overwrite existing files. And you
do not want to be prompted as to such. If that is
correct then use XXCopy with the /BB switch.
For example:

xxcopy "c:\My Documents" d:\backup\ /BB

Note that I may have misunderstood what you
are trying to do. And I am not an expert in the use
of XXCopy (or any command line tool for that
matter). So if you decided to use my command
please test the command on a temp directory with
temp files before you actually use it on your
valuable data.
 
Thanks for your reply.
XCOPY source destination /Y overwrites destination files without prompting.
I do not want to overwrite. What does your " -n" do in XCOPY command?
Nathan McNulty said:
I haven't tested this yet, but does XCOPY source destination /Y -n work?

Nathan McNulty


Dmitriy said:
It is strange that Windows XP Professional by itself can't copy files
without overwriting and prompting!
||||| "Dmitriy Kopnichev" <[email protected]>
||||| wrote in message ||||| Hello How to suppress prompting and not overwrite an
||||| existing destination file in XCOPY? There's no this in the
||||| XCOPY help or XCOPY /?

|||| "Lanwench [MVP - Exchange]"
|||| <[email protected]> ||||

wrote in message
|||| Not sure, as I I haven't used xcopy for ages - robocopy
|||| from the resource kit will do this nicely for you, tho.

||| "Dmitriy Kopnichev" <[email protected]>
||| wrote in message ||| Thanks for your reply! How to get the resource kit or the
||| robocopy?

|| "Carrie Garth" <[email protected]>
|| wrote in message || <SNIP> Windows Server 2003 Resource Kit Tools Help
||

http://www.microsoft.com/resources/documentation/windowsServ/2003/all/techref/en-us/robocopy.asp
|| <SNIP> Windows Server 2003 Resource Kit Tools

http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en
|| <SNIP>

| "Dmitriy Kopnichev" <[email protected]>
| wrote in message | Thanks for your reply!
| How to get the Robocopy_exe Robust File Copy Utility, not
| to download all the Resource Kit Tools 12 mb file?

Sorry. But I do not think that you can download
robocopy.exe separately from the Resource Kit Tools.

An alternative tool with a great deal of flexibility is XXCopy.
This tool is freeware for personal usage, is packaged as a
*.zip file for download, and is only 244 KB zipped.

Note that XXCopy has hundreds of switches and takes
some practice, but there is a great deal of documentation and
support (gotta love it!)

For the main Web Page for XXCopy see:

XXCOPY, a Versatile File Management Utility
--- Boldly Extended Xcopy
http://www.xxcopy.com/

For Guidance and Reference (Technical Bulletins)
http://www.xxcopy.com/index.html#tbul

To download the XXCopy help (*.chm) file:
http://www.xxcopy.com/xxcopy.chm

To read the XXCOPY Discussion Group:
http://groups.yahoo.com/group/xxcopy

To view the numerous NG postings from the author of
XXCOPY, Kan Yabumoto:
http://www.google.com/groups?&q=author:Kan+author:Yabumoto

And if I understand correctly what you are trying to do...

You have a backup of files from a certain folder, say
C:\My Documents, in another folder, say D:\backup.
And you want to be able to backup brand new files
only (from C:\My Documents to D:\backup). That is,
you do not want to overwrite existing files. And you
do not want to be prompted as to such. If that is
correct then use XXCopy with the /BB switch.
For example:

xxcopy "c:\My Documents" d:\backup\ /BB

Note that I may have misunderstood what you
are trying to do. And I am not an expert in the use
of XXCopy (or any command line tool for that
matter). So if you decided to use my command
please test the command on a temp directory with
temp files before you actually use it on your
valuable data.
 
I knew that /Y suppresses the prompt to overwrite and I was wondering in
text if a -n would allow you to answer no to all the overwrite
questions. I'm thinking this is not possible :(

Nathan McNulty


Dmitriy said:
Thanks for your reply.
XCOPY source destination /Y overwrites destination files without prompting.
I do not want to overwrite. What does your " -n" do in XCOPY command?
I haven't tested this yet, but does XCOPY source destination /Y -n work?

Nathan McNulty


Dmitriy said:
It is strange that Windows XP Professional by itself can't copy files
without overwriting and prompting!


||||| "Dmitriy Kopnichev" <[email protected]>
||||| wrote in message ||||| Hello How to suppress prompting and not overwrite an
||||| existing destination file in XCOPY? There's no this in the
||||| XCOPY help or XCOPY /?

|||| "Lanwench [MVP - Exchange]"
|||| <[email protected]> ||||

wrote in message


|||| Not sure, as I I haven't used xcopy for ages - robocopy
|||| from the resource kit will do this nicely for you, tho.

||| "Dmitriy Kopnichev" <[email protected]>
||| wrote in message ||| Thanks for your reply! How to get the resource kit or the
||| robocopy?

|| "Carrie Garth" <[email protected]>
|| wrote in message || <SNIP> Windows Server 2003 Resource Kit Tools Help
||
http://www.microsoft.com/resources/documentation/windowsServ/2003/all/techref/en-us/robocopy.asp
|| <SNIP> Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en
|| <SNIP>

| "Dmitriy Kopnichev" <[email protected]>
| wrote in message | Thanks for your reply!
| How to get the Robocopy_exe Robust File Copy Utility, not
| to download all the Resource Kit Tools 12 mb file?

Sorry. But I do not think that you can download
robocopy.exe separately from the Resource Kit Tools.

An alternative tool with a great deal of flexibility is XXCopy.
This tool is freeware for personal usage, is packaged as a
*.zip file for download, and is only 244 KB zipped.

Note that XXCopy has hundreds of switches and takes
some practice, but there is a great deal of documentation and
support (gotta love it!)

For the main Web Page for XXCopy see:

XXCOPY, a Versatile File Management Utility
--- Boldly Extended Xcopy
http://www.xxcopy.com/

For Guidance and Reference (Technical Bulletins)
http://www.xxcopy.com/index.html#tbul

To download the XXCopy help (*.chm) file:
http://www.xxcopy.com/xxcopy.chm

To read the XXCOPY Discussion Group:
http://groups.yahoo.com/group/xxcopy

To view the numerous NG postings from the author of
XXCOPY, Kan Yabumoto:
http://www.google.com/groups?&q=author:Kan+author:Yabumoto

And if I understand correctly what you are trying to do...

You have a backup of files from a certain folder, say
C:\My Documents, in another folder, say D:\backup.
And you want to be able to backup brand new files
only (from C:\My Documents to D:\backup). That is,
you do not want to overwrite existing files. And you
do not want to be prompted as to such. If that is
correct then use XXCopy with the /BB switch.
For example:

xxcopy "c:\My Documents" d:\backup\ /BB

Note that I may have misunderstood what you
are trying to do. And I am not an expert in the use
of XXCopy (or any command line tool for that
matter). So if you decided to use my command
please test the command on a temp directory with
temp files before you actually use it on your
valuable data.
 
Back
Top