XCOPY

Developer(s)Microsoft, IBM, DR, Datalight, Novell, Rene Ableidinger, ReactOS Contributors
Initial release1986, 38–39 years ago
Operating systemMS-DOS, PC DOS, MSX-DOS, SISNE plus, OS/2, eComStation, ArcaOS, Windows, DR DOS, ROM-DOS, FreeDOS, ReactOS
TypeCommand
LicenseFreeDOS: GPL
ReactOS: LGPL
Others: Proprietary
Websitedocs.microsoft.com/en-us/windows-server/administration/windows-commands/xcopy Edit this on Wikidata

In computing, XCOPY is a command used on IBM PC DOS, MS-DOS, IBM OS/2,[1] Microsoft Windows,[2] FreeDOS,[3] ReactOS,[4] and related operating systems for copying multiple files or entire directory trees from one directory to another and for copying files across a network.

Overview

XCOPY stands for extended copy,[5] and was created as a more functional file copying utility than the copy command found in earlier operating systems. XCOPY first appeared in DOS 3.2.[6]

While still included in Windows 10, XCOPY has been deprecated in favor of robocopy, a more powerful copy tool, which is now supplied with the Microsoft Windows Server and Desktop operating systems.[7]

DR DOS 6.0[8] and Datalight ROM-DOS[9] include an implementation of the XCOPY command.

The FreeDOS version was developed by Rene Ableidinger and is licensed under the GPL.[10]

J. Edmeades developed the Wine-compatible version that is included in ReactOS. It is licensed under the LGPL.[11]

Compression

Since Windows Server 2019 and Windows 10, a compression option is available in xcopy when copying across a network. With this switch, if the destination computer supports SMB compression and the files being copied are very compressible, there may be significant improvements to performance. The SMB compression adds inline whitespace compression to file transfers. Compression is also available with the robocopy command and Hyper-V Live Migration with SMB.[12][13]

Example

Create a new directory by copying all contents of the existing directory, including any files or subdirectories having the hidden or system attributes and empty directories.

>xcopy e:\existing e:\newcopy /e /i /h

If the pathnames include spaces, they must be enclosed in quotation marks.

>xcopy "D:\Documents and Settings\MY.USERNAME\My Documents\*" "E:\MYBACKUP\My Documents\" /D/E/C/Y

Copy entire drive in to a mapped network drive while ignoring any errors in network restartable mode.

>xcopy *.* z:\Netmirror /E /V /C /F /H /Y /Z  1>out.txt 2>err.txt

Copy a single file without prompt if it is a file or a directory

>cmd /c echo F | xcopy "c:\directory 1\myfile" "c:\directory 2\myfile"

Limitations

XCOPY fails with an "insufficient memory" error when the path plus filename is longer than 254 characters.[14] An option "/J" copies files without buffering;[15] moving very large files without the option (available only after Server 2008R2) can consume all available RAM on a system.

No open files

XCOPY will not copy open files. Any process may open files for exclusive read access by withholding the FILE_SHARE_READ [16]

XCOPY does not support the Windows Volume Shadow Copy service which effectively allows processes to have access to open files, so it is not useful for backing up live operating system volumes.

XCOPY deployment

XCOPY deployment or xcopy installation is a software application's installation into a Microsoft Windows system simply by copying files. The name is derived from the XCOPY command line facility provided by Microsoft operating systems.

In contrast, the installation of a typical Windows application will require a significant number of additional steps before the application is ready to be used. Most of this additional work involves, directly or indirectly, adding or modifying entries in the Windows Registry. Even when an application uses ordinary files for its own data, many common facilities provided by Windows require some type of registration step before they are available to programs. Usually, one or more specialized tools (such as Windows Installer, InnoSetup, or NSIS) are used to help coordinate these relatively complex operations.

See also

References

  1. ^ "JaTomes Help - OS/2 Commands". www.jatomes.com. Archived from the original on 2019-04-14.
  2. ^ Xcopy
  3. ^ "The FreeDOS Project blog: FreeDOS commands quick-reference". freedos-project.blogspot.com. Archived from the original on 2018-07-22.
  4. ^ "Reactos/Base/Applications/Cmdutils/Xcopy at master · reactos/Reactos". GitHub.
  5. ^ "Windows NT File System Files". Microsoft Help and Support. Microsoft. 2006-11-01.
  6. ^ Wolverton, Van (2003). Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition. Microsoft Press. ISBN 0-7356-1812-7.
  7. ^ Pietrek, Matt (2007-01-16). "Robocopy built into Vista". Under The Hood (an MSDN blog).
  8. ^ DR DOS 6.0 User Guide Optimisation and Configuration Tips
  9. ^ "Datalight ROM-DOS User's Guide" (PDF). www.datalight.com.
  10. ^ "FreeDOS 1.2 Updates Package - XCopy (FreeDOS Base)". Ibiblio.org. 2007-09-22. Retrieved 2022-09-08.
  11. ^ "Reactos/Reactos". GitHub. 26 November 2021.
  12. ^ Smith, Russell (27 November 2020). "SMB Compression Lowers Bandwidth and Improves Copy Times in Windows Server and Azure". Petri.
  13. ^ Output from xcopy /? in Windows 10 includes "/COMPRESS - Request network compression during file transfer where applicable".
  14. ^ Maciak, Luke (2007-02-05). "Xcopy: Insufficient Memory".
  15. ^ "Technet: Xcopy". 2019-05-01.
  16. ^ CreateFileA function (fileapi.h)

Further reading

Read other articles:

Showing UpPoster resmiSutradaraKelly ReichardtProduser Neil Kopp Vincent Savino Anish Savjani Ditulis oleh Jon Raymond Kelly Reichardt Pemeran Michelle Williams Hong Chau Maryann Plunkett John Magaro André Benjamin James Le Gros Judd Hirsch Penata musikEthan RoseSinematograferChristopher BlauveltPenyuntingKelly ReichardtPerusahaanproduksiFilmScienceDistributorA24Tanggal rilis 27 Mei 2022 (2022-05-27) (Cannes) 07 April 2023 (2023-04-07) (Amerika Serikat) Durasi108 meni...

 

Questa voce sull'argomento aziende televisive è solo un abbozzo. Contribuisci a migliorarla secondo le convenzioni di Wikipedia. AtresmediaLogo Stato Spagna Forma societariasocietà per azioni ISINES0109427734 Fondazione25 dicembre 1989 a San Sebastián de los Reyes Sede principaleSan Sebastián de los Reyes GruppoPlaneta Corporación S.R.L. (41,7%) Persone chiaveSilvio González Moreno (AD) SettoreMedia e communication Fatturato950,8 milioni di € (2022) Utile netto112,9 mil...

 

Stadion Jules Deschaseaux Informasi stadionNama lamaStadion Kotamadya Havre (1932–1954)LokasiLokasiLe Havre, PrancisKoordinat49°30′07″N 0°10′16″E / 49.501942°N 0.171061°E / 49.501942; 0.171061Koordinat: 49°30′07″N 0°10′16″E / 49.501942°N 0.171061°E / 49.501942; 0.171061KonstruksiDibuka1932Direnovasi1999Data teknisPermukaanRumputKapasitas16.382PemakaiLe Havre AC (1932–2012)Sunting kotak info • L • BBantua...

2018 social simulation game 2018 video gameMy Child LebensbornDeveloper(s)Sarepta StudioPublisher(s)TeknopilotPlatform(s)Android (operating system)iOSWindowsNintendo SwitchPlayStation 4Xbox OneReleaseAndroidMay 8, 2018[1]iOSMay 18, 2018[1]Windows, Switch, PS4, Xbox OneJune 1, 2021[2]Genre(s)Social simulation gameMode(s)Single-player My Child Lebensborn is a 2018 social simulation game developed by Sarepta Studio and published by Teknopilot for iOS, Android, Windows, Ni...

 

National highway in India Route map National Highway 966Schematic map of National Highways in IndiaRoute informationLength125 km (78 mi)Major junctionsFromRamanattukara,Kozhikode, KeralaToPalakkad, Kerala LocationCountryIndiaStatesKerala: 125 kmPrimarydestinationsKondotty, Malappuram, Perinthalmanna, Mannarkkad Highway system Roads in India Expressways National State Asian ← NH 66→ NH 544 National Highway 966 (NH 966) is a highway which connects Palakkad, Malappuram and Koz...

 

2019 smartphone from Samsung Samsung Galaxy A50BrandSamsungManufacturerSamsung ElectronicsSloganBuilt for the Era of LiveSeriesGalaxy A seriesModelSM-A505F/DS SM-A505FN/DS (Global) SM-A505GN/DS SM-A505FM/DS SM-A505YN SM-A505G (Latin America) SM-A505W (Canada) SM-A505U (United States) SM-A505U1Compatible networks2G, 3G, 4G, LTE, VoLTE, Wi-Fi, BluetoothFirst releasedFebruary 25, 2019; 5 years ago (2019-02-25)Availability by regionMarch 13, 2019; 5 years ago (...

The Teenage Liberation Handbook AuthorGrace LlewellynCountryUnited StatesLanguageEnglishGenreNonfictionPublisherLowry House PublishersPublication date1991Media typePrint (Paperback)Pages435ISBN978-0-9629591-7-2 The Teenage Liberation Handbook: How to Quit School and Get a Real Life and Education, which was published in 1991 by Grace Llewellyn, is a book about unschooling and youth empowerment.[1] Largely inspired by John Holt's educational philosophy,[2] the book encourag...

 

Ini adalah nama Batak Toba, marganya adalah Panjaitan. Lundu PanjaitanS.H., M.A. Anggota DPD RI dari Sumatera UtaraMasa jabatan3 Maret 2006 – 1 Oktober 2009PresidenSusilo Bambang YudhoyonoPendahuluRaja Inal SiregarPenggantiPetahanaWakil Gubernur Sumatera Utara ke-4Masa jabatan16 Juni 1998 – 16 Juni 2003Menjabat bersama Abdul Wahab DalimunthePresidenB.J. HabibieAbdurrahman WahidMegawati SoekarnoputriGubernurTengku Rizal NurdinPendahuluPieter SibaraniPenggantiR...

 

City in Fars province, Iran For the administrative division of Fars province, see Khonj County. For the village in Isfahan province, see Khanj. For the village in South Khorasan province, see Khonj. This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Khonj – news · newspapers · books · scholar · JSTOR (January 2...

穆罕默德·达乌德汗سردار محمد داود خان‎ 阿富汗共和國第1任總統任期1973年7月17日—1978年4月28日前任穆罕默德·查希爾·沙阿(阿富汗國王)继任穆罕默德·塔拉基(阿富汗民主共和國革命委員會主席團主席) 阿富汗王國首相任期1953年9月7日—1963年3月10日君主穆罕默德·查希爾·沙阿 个人资料出生(1909-07-18)1909年7月18日 阿富汗王國喀布尔逝世1978年4月28日(...

 

This is a dynamic list and may never be able to satisfy particular standards for completeness. You can help by adding missing items with reliable sources. This article needs to be updated. Please help update this article to reflect recent events or newly available information. (April 2012) This is a partial list of automobile sales by model. Wherever possible, references to verify the claims have been included, however even figures given by manufacturers may have a degree of inaccuracy or hy...

 

British doctor (c. 1490–1549) Andrew BoordeBornc. 1490Boords Hill, Holms Dale, Sussex, EnglandDiedApril 1549 (aged c. 60)Occupation(s)traveller, physician, writer Andrew Boorde (or Borde) (c. 1490 – April 1549) was an English traveller, physician and writer. Life Born at Boords Hill, Holms Dale, Sussex, he was educated at the University of Oxford, and was admitted a member of the Carthusian order while under age. In 1521 he was dispensed from religion in order that he might a...

Indian actor Jagapathi BabuBabu at the 62nd Filmfare Awards South, 2015BornVeeramachaneni Jagapathi Chowdary[1] (1962-02-12) 12 February 1962 (age 62)Machilipatnam, Andhra Pradesh, IndiaOther namesJB, Jaggu Bhai, Prime Star, JagguOccupationActorYears active1977—presentSpouseLakshmiChildren2ParentV. B. Rajendra Prasad (father) Veeramachaneni Jagapathi Chowdary (born 12 February 1962), professionally known as Jagapathi Babu (pronunciationⓘ), is an Indian actor known f...

 

Irish footballer (born 1983) Jonathan Walters Walters playing for the Republic of Ireland in 2013Personal informationFull name Jonathan Ronald Walters[1]Date of birth (1983-09-20) 20 September 1983 (age 40)[2]Place of birth Moreton, Merseyside, EnglandHeight 6 ft 0 in (1.83 m)[3]Position(s) ForwardTeam informationCurrent team Stoke City (sporting director)Youth career Shaftesbury1998–2000 Blackburn RoversSenior career*Years Team Apps (Gls)2000–2...

 

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: New Zealand Sculling Championship – news · newspapers · books · scholar · JSTOR (June 2013) (Learn how and when to remove this message) The New Zealand Sculling Championship was the professional Single Sculls Championship of New Zealand held between 1881 and th...

Scottish footballer Alex James Alex James (right) playing in France, 1934Personal informationFull name Alexander Wilson JamesDate of birth (1901-09-14)14 September 1901Place of birth Mossend, Lanarkshire, ScotlandDate of death 1 June 1953(1953-06-01) (aged 51)Place of death London, EnglandPosition(s) Inside forwardSenior career*Years Team Apps (Gls) Bellshill Athletic Ashfield 1922–1925 Raith Rovers 98 (27)1925–1929 Preston North End 147 (53)1929–1937 Arsenal 231 (26)1939 Drumcondr...

 

此條目需要补充更多来源。 (2023年9月18日)请协助補充多方面可靠来源以改善这篇条目,无法查证的内容可能會因為异议提出而被移除。致使用者:请搜索一下条目的标题(来源搜索:林雲陔 — 网页、新闻、书籍、学术、图像),以检查网络上是否存在该主题的更多可靠来源(判定指引)。 林雲陔 林云陔(1881年2月2日—1948年10月4日)旧名公競,字毅公,广東省高州府信�...

 

La sonde spatiale durant son transit puis après avoir largué le module de descente Venus Mobile Explorer est un projet de sonde spatiale de la NASA étudié en 2009 dont l'objectif était l'analyse in situ de la surface de Vénus. Cette mission de type Flagship (cout de plusieurs milliards de dollars) répondait à certains des objectifs définis par le groupe de travail Venus Exploration Analysis Group (VEXAG). Le projet n'a pas été concrétisé par la suite. La mission devait permettre...

Lansana Kouyaté Perdana Menteri GuineaMasa jabatan1 Maret 2007 – SekarangPendahuluAzim IsabekovPenggantiEugène Camara Informasi pribadiLahir1950Koba, GuineaPartai politikPUP Penghargaan Commander of the Legion of Honour (en) Order of Mono (en) Commander of the National Order of Mali (en) Sunting kotak info • L • B Lansana Kouyaté (lahir 1950) merupakan Perdana Menteri Guinea saat ini. Dia memenangkan pemilihan Perdana Menteri Guinea pada Februari 2007 dan mulai men...

 

Japanese isolationist policy from 1633–1853 This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Sakoku – news · newspapers · books · scholar · JSTOR (July 2018) (Learn how and when to remove this message) Part of a series on theHistory of JapanA view of Dejima in Nagasaki Bay PeriodsPaleolithicbefore 14,000 BC...