xcopy

XCopy will not copy in visual studio

元气小坏坏 提交于 2019-12-02 11:34:36
问题 I'll copy a exe into another folder with a post build event from visual studio. This should happens every build. I haven't any errors, the exe output is in a custom folder, but it will not copy into another folder, why? The build output from visual studio is only: Build successfully. 0 files copied . With this script, I've changed the output folder: $(SolutionDir)..\..\build\$(ProjectName)\ . And with this, I'll try to copy the result into another folder: xcopy "$(SolutionDir)..\..\build\$

Copy file as another name if file exist

我是研究僧i 提交于 2019-12-02 07:48:38
I want to copy specific file from pc to usb my code : xcopy /H /Y /C /R "C:\image1.jpeg" "G:\backup\image.jpeg" i want to do following : if G:\backup\image1.jpeg exist, copy image.jpeg as image2.jpeg (or as another name), if image2.jpeg exist, copy as image3.jpeg and ect.. Is it possible to do this? I'm going to assume your source name is "image.jpeg" and your destination has the appended suffix. I recommend putting a dot before the appended suffix to make it clear where the original name ends and the suffix begins. Your original name could already have a number at the end. Here is a crude but

XCopy will not copy in visual studio

给你一囗甜甜゛ 提交于 2019-12-02 04:25:15
I'll copy a exe into another folder with a post build event from visual studio. This should happens every build. I haven't any errors, the exe output is in a custom folder, but it will not copy into another folder, why? The build output from visual studio is only: Build successfully. 0 files copied . With this script, I've changed the output folder: $(SolutionDir)..\..\build\$(ProjectName)\ . And with this, I'll try to copy the result into another folder: xcopy "$(SolutionDir)..\..\build\$(ProjectName)\$(TargetFileName)" "$(SolutionDir)..\..\bin\AutoCopy-Server.exe*" . With the "*" at the end,

How do I copy file and folder structure using xcopy from a text file?

我怕爱的太早我们不能终老 提交于 2019-12-02 00:48:43
问题 I have a text file containing a list of files and folders. What I want to do is use xcopy to replicate what is written in the text file. My text file looks like this: "C:\FOLDER" "C:\FOLDER\FILE1.TXT" "C:\FOLDER\FILE2.TXT" "C:\FOLDER\FOLDER2" "C:\FOLDER\FOLDER2\FILE3.TXT" For a given output directory "C:\OUTPUT" I would like to replicate the entire structure, so: "C:\OUTPUT\FOLDER" "C:\OUTPUT\FOLDER\FILE1.TXT" "C:\OUTPUT\FOLDER\FILE2.TXT" "C:\OUTPUT\FOLDER\FOLDER2" "C:\OUTPUT\FOLDER\FOLDER2

How do I copy file and folder structure using xcopy from a text file?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 22:13:53
I have a text file containing a list of files and folders. What I want to do is use xcopy to replicate what is written in the text file. My text file looks like this: "C:\FOLDER" "C:\FOLDER\FILE1.TXT" "C:\FOLDER\FILE2.TXT" "C:\FOLDER\FOLDER2" "C:\FOLDER\FOLDER2\FILE3.TXT" For a given output directory "C:\OUTPUT" I would like to replicate the entire structure, so: "C:\OUTPUT\FOLDER" "C:\OUTPUT\FOLDER\FILE1.TXT" "C:\OUTPUT\FOLDER\FILE2.TXT" "C:\OUTPUT\FOLDER\FOLDER2" "C:\OUTPUT\FOLDER\FOLDER2\FILE3.TXT" How can I accomplish this? So far I have written a for loop that reads in each line of the

Exclude multiple file extension in xcopy

三世轮回 提交于 2019-12-01 14:49:42
I have few extensions which I want to exclude from xcopy. I don't know in which folder/directory those may exist. Below is the command I'm using: xcopy /r /d /i /s /y C:\test1 C:\test2 /exclude:.txt+.exe Anh help on this? What you are looking for is this: xcopy /R /D /I /S /Y /EXCLUDE:exclude.txt "C:\test1" "C:\test2" Together with the following content of exclude.txt : .txt .exe However, the /EXCLUDE option of xcopy is very poor. It does not really exclude files with the given extensions, it actually excludes all items whose full paths contain .txt or .exe at any position. Supposing there is

How to append date to directory path in xcopy

柔情痞子 提交于 2019-12-01 10:26:50
I do have a xcopy statement in bat file.. would you please help me to append today's date to one of directories in destination xcopy /S /E /I %sourceFolder% "C:\Shared\copy\%destinationFolder%" today date is 06072013 so I want my destination look like below C:\Shared\copy-today's date........ Thanks This is method of getting a date stamp that doesn't depend on the regional settings. Wmic is available in Windows XP Pro and higher. @echo off for /f "delims=" %%a in ('wmic OS Get localdatetime ^| find "."') do set dt=%%a set datestamp=%dt:~0,8% set timestamp=%dt:~8,6% set YYYY=%dt:~0,4% set MM=

ET框架分布式服务器部署

心不动则不痛 提交于 2019-12-01 09:50:47
前言:可能是大佬都觉得简单吧都没有详细的介绍(有介绍,可能是我太小白看不懂,哈哈哈),捉摸了一段时间把大佬们的文档记录下: 一、各服务器命名和作用(摘自:ET社区) 服务器名称 Manager : 对服务器进程进行管理Realm : 登录服务器 ( 验证账号密码 相当于LoginServer 祖传叫法,你想叫什么随你) Gate : 网关服务器 DB : 数据库服务器 Location : 位置服务器 Map : 地图服务器 Client : 客户端 All Server: 所有服务器集合 各服务器的作用(摘录自文档ET框架笔记): Manager:连接客户端的外网和连接内部服务器的内网,对服务器进程进行管理,自动检测和启动服务器进程。加载有内网组件NetInnerComponent,外网组件NetOuterComponent,服务器进程管理组件。自动启动突然停止运行的服务器,保证此服务器管理的其它服务器崩溃后能及时自动启动运行。 Realm:对Actor消息进行管理(添加、移除、分发等),连接内网和外网,对内网服务器进程进行操作,随机分配Gate服务器地址。内网组件NetInnerComponent,外网组件NetOuterComponent,Gate服务器随机分发组件。客户端登录时连接的第一个服务器,也可称为登录服务器。 Gate:对玩家进行管理,对Actor消息进行管理(添加

How to append date to directory path in xcopy

独自空忆成欢 提交于 2019-12-01 06:37:51
问题 I do have a xcopy statement in bat file.. would you please help me to append today's date to one of directories in destination xcopy /S /E /I %sourceFolder% "C:\Shared\copy\%destinationFolder%" today date is 06072013 so I want my destination look like below C:\Shared\copy-today's date........ Thanks 回答1: This is method of getting a date stamp that doesn't depend on the regional settings. Wmic is available in Windows XP Pro and higher. @echo off for /f "delims=" %%a in ('wmic OS Get

Batch: Copy files from txt file into one folder

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 19:04:07
问题 I am attempting to create a batch file to copy several files listed in a text file to a new folder. I have found several threads relating to this, but I can still not get the batch to work properly. The problem I am encountering is that the files listed in the txt are all in different source locations and have different extensions. The list reads, for example: C:\Users\Foo\Pictures\Photographs\September\P1030944.jpg C:\Users\Foo\Videos\Art\Movies\Class\movie.avi C:\Users\Foo\Music\Jazz\20051