xcopy

Copy files without overwrite

风流意气都作罢 提交于 2019-11-27 06:08:17
I just can't seem to find a way on the command line to say "copy all the files from directory A to directory B, but if the file already exists in directory B, don't overwrite it, no matter which file is newer, and don't prompt me." I have been through copy, move, xcopy & robocopy, and the closest I can get is that you can tell robocopy "copy A to B, but don't overwrite newer files with older files," but that doesn't work for me. I looked at xxcopy, but discarded it, as I don't want to have a third-party dependency on a Visual Studio post-build event that will require other SVN users to have

Hide Command Window in C# Application

梦想与她 提交于 2019-11-27 05:51:51
问题 Before you say its a duplicate question, please let me explain (as I've read all similar threads). My application has both of these settings: procStartInfo.CreateNoWindow = true; procStartInfo.WindowStyle = ProcessWindowStyle.Hidden; and is also has WindowsApplication as the output type. The black window STILL comes up when I call a command line command. Is there anything else I can do to hide the window? It doesn't happen for all commands, XCOPY is a situation where it the black window does

What is going wrong when Visual Studio tells me “xcopy exited with code 4”

霸气de小男生 提交于 2019-11-27 04:19:47
问题 I'm not very familiar with post-build events, so I'm a little confused as to what's going wrong with my program. When compiling in visual studio 2010, I get the following: The command "xcopy C:\Users\Me\Path\Foo.bar\Library\dsoframer.ocx C:\Users\Me\Path\Foo.bar\bin\Debug\ /Y /E /D xcopy C:\Users\Me\Path\Foo.bar\ApplicationFiles C:\Users\Me\Path\Foo.bar\bin\Debug\ /Y /E /D xcopy C:\Users\Me\Path\url\ C:\Users\Me\Path\Foo.bar\bin\Debug\ /Y /E /D rmdir /S /Q C:\Users\Me\Path\Foo.bar\bin\Debug\

Windows xcopy

谁说我不能喝 提交于 2019-11-27 01:08:52
1、考虑下面的需求,把aaa目录下面的111.txt 拷贝到 bbb,如下: echo on xcopy .\aaa\111.txt .\bbb\ /y pause 2、注意这里表示路径要用右斜杠,因为左斜杠表示命名的选项,如test.exe /f cfg.xml 3、考虑下面的需求,把aaa目录下面的111.txt 拷贝到 bbb,并且重命名为222.txt,如下: echo on xcopy .\aaa\111.txt .\bbb\222.txt /y pause 执行过程,会提示 目标 .\bbb\222.txt 是文件名 还是目录名 (F = 文件,D = 目录)? 需要用户输入。 4、原因是,xcopy不知道222.txt是个文件还是目录?怎么解决这个问题,消除提示。 这就需要用户,显示地告诉xcopy,222.txt是目录还是文件。 如果希望222.txt是个目录,把111.txt拷贝到222.txt,修改为 xcopy .\aaa\111.txt .\bbb\222.txt\ /y 如果希望222.txt是个文件,也就是copy并且重命名,使用下面的方法,自动输入f 如下: echo f| xcopy .\aaa\111.txt .\bbb\222.txt /y 原理是通道的概念,前一个命令的输出作为后一个命令的输入。echo f 输出f,xcopy 提示输入

DOS常用命令

谁说胖子不能爱 提交于 2019-11-26 23:55:14
DOS常用命令 <script src="../../mb/g-zhong1.js" type="text/javascript"></script>  cd     改变当前目录       sys   制作DOS系统盘   copy    拷贝文件         del   删除文件   deltree   删除目录树        dir   列文件名   diskcopy  制磁盘          edit  文本编辑   format    格式化磁盘        md   建立子目录   mem     查看内存状况       type  显示文件内容   rd     删除目录         ren   改变文件名   记得多少啊,忘了就去上课看看,下面四个命令是新的,给出命令格式,你自己试试看,学电脑重要的就是摸索。 cls     清屏 [适用场合]  屏幕上太乱了,或是屏幕上出现乱码了, 清除屏幕上显示内容但不          影响电脑内部任何信息 [用  法]  cls  回车 move     移动文件,改目录名  [适用场合]  移动文件到别的目录 [用  法]  move [文件名] [目录]        移动文件至新目录下         move [目录名] [目录名]       改目录名 [例  子]  c:/>move c:

POJ 2386 Lake Counting

随声附和 提交于 2019-11-26 20:06:56
地址 http://poj.org/problem?id=2386 《挑战程序设计竞赛》习题 题目描述 Description Due to recent rains, water has pooled in various places in Farmer John’s field, which is represented by a rectangle of N x M (1 <= N <= 100; 1 <= M <= 100) squares. Each square contains either water (‘W’) or dry land (‘.’). Farmer John would like to figure out how many ponds have formed in his field. A pond is a connected set of squares with water in them, where a square is considered adjacent to all eight of its neighbors. Given a diagram of Farmer John’s field, determine how many ponds he has. Input Line 1: Two space-separated

How to deploy SQL Server Compact Edition 4.0?

懵懂的女人 提交于 2019-11-26 19:33:48
How do i deploy Microsoft SQL Server Compact 4.0 ? SQL Server Compact Edition (currently at version 4.0) is: a free, embedded database that software developers can use for building Windows desktop applications. It has a small footprint and supports private deployment of its binaries within the application folder. But how do you actually deploy it? Microsoft says it can be deployed within the application folder ( good ) and supports xcopy deployment . Microsoft also says it cannot be deployed within the application folder ( bad ), and does not support xcopy deployment . some people have

How do I find files with a path length greater than 260 characters in Windows?

痴心易碎 提交于 2019-11-26 18:47:00
问题 I'm using a xcopy in an XP windows script to recursively copy a directory. I keep getting an 'Insufficient Memory' error, which I understand is because a file I'm trying to copy has too long a path. I can easily reduce the path length, but unfortunately I can't work out which files are violating the path length restriction. The files that are copied are printed to the standard output (which I'm redirecting to a log file), but the error message is printed to the terminal, so I can't even work

Copy files without overwrite

十年热恋 提交于 2019-11-26 17:56:58
问题 I just can't seem to find a way on the command line to say "copy all the files from directory A to directory B, but if the file already exists in directory B, don't overwrite it, no matter which file is newer, and don't prompt me." I have been through copy, move, xcopy & robocopy, and the closest I can get is that you can tell robocopy "copy A to B, but don't overwrite newer files with older files," but that doesn't work for me. I looked at xxcopy, but discarded it, as I don't want to have a

batch file Copy files with certain extensions from multiple directories into one directory

随声附和 提交于 2019-11-26 17:35:19
问题 I'm a newbie, so bear with me... I am trying to copy all .doc files that I have scattered throughout several subdirectories of one main directory into another directory using a batch file. I have managed to get a filelist.txt of all the files (there are hundreds) out of these directories that I want to copy using: "C:\Main directory\sub directory" dir /b /s *.doc > "C:\Main directory\sub directory\filelist.txt" What script would I use to xcopy those into one directory? Can I use some code