copy

MSBuild copy entire directory while using metadata in path names

只愿长相守 提交于 2019-12-07 18:28:24
Here are few other similar answers that I've found, but none answers my question: Copying entire project structure into another directory using afterbuild task Copy all files and folders using msbuild MSbuild Copy whole folder What I'm trying to do: I need to copy a directory tree into several different places in the project upon compilation. Here is how it presently being done: <ItemGroup> <MediaFiles Include="$(ProjectDir)media\**\*.*" /> <DeployLabel Include="$(ProjectDir)deploy\x"> <Dir>x</Dir> </DeployLabel> <DeployLabel Include="$(ProjectDir)deploy\y"> <Dir>y</Dir> </DeployLabel>

Remote linux server to remote linux server large sparse files copy - How To?

心已入冬 提交于 2019-12-07 18:18:43
问题 I have two twins CentOS 5.4 servers with VMware Server installed on each. What is the most reliable and fast method for copying virtual machines files from one server to the other, assuming that I always use sparse file for my vmware virtual machines? The vm's files are a pain to copy since they are very large (50 GB) but since they are sparse files I think something can be done to improve the speed of the copy. 回答1: If you want to copy large data quickly, rsync over SSH is not for you. As

@property retain OR copy

北城以北 提交于 2019-12-07 17:58:40
问题 First I read this article I think I should use "copy" in my programe. Problem is using NSMutableDictionary copy it will terminate. ***** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[__NSCFDictionary removeAllObjects]: mutating method sent to immutable object'** I have no idea about "mutating method sent to immutable object". I didn't set NSDictionary to NSMutabledictionary pointer. Here is my code .h file @interface Button : NSObject { @private

Can't get MSBuild Community Task RegexReplace to work

。_饼干妹妹 提交于 2019-12-07 17:33:56
问题 I'm trying to copy a bunch of files whose names begin with the prefix DR__ , but the copies must have that prefix removed. That is, DR__foo must be copied as foo . I'm trying this, which is based in the example provided in the documentation (the .chm): <Target Name="CopyAuxiliaryFiles"> <MakeDir Directories="$(TargetDir)Parameters" Condition="!Exists('$(TargetDir)Parameters')" /> <ItemGroup> <ContextVisionParameterFiles Include="$(SolutionDir)CVParameters\DR__*" /> </ItemGroup> <Message Text=

Append date to filename before copy in php

妖精的绣舞 提交于 2019-12-07 15:13:09
问题 I am trying to append date to the file name before copying in PHP. $fileS = "file.csv"; $date = date('m-d-Y H:i:s A e'); $fileD = "file$date.csv"; I have even tried $fileD = "file"."date('m-d-Y H:i:s A e')".".csv"; Then I copy the files $Confirm = copy($fileS, $fileD); I know I should check if the file exists etc etc but for the sake of simplicity to ask the question I am using this :). I am assuming it's something to do with the copy function that doesn't read concatenated strings. I may be

Lotus Notes 7 - copy / move docs. ( parent & response docs ) without changing the UNID ?

回眸只為那壹抹淺笑 提交于 2019-12-07 14:26:40
问题 I have 2 databases : let say dbA and dbB. Actually, dbB is a ''child'' database of dbA, because the forms/views/frameset/etc that it contains they all are also in dbA. I want now, to copy from a view ( let say vwA ) from dbA some 8K docs to the same view ( vwA ) from dbB. THese 8k contains both parent and child docs, which in dbA are listing OK, with @Text(@UniqueDocumentID). I just made a test, copy one parent doc and its response, and pasted in the 2nd database, but unfortunately the

Hide Copy and Deselect UITextView options after copying all text

南楼画角 提交于 2019-12-07 12:30:06
问题 I am working on a messaging app. I want to give a "copy" option to the user when they enter their message in a UITextView . When the user presses the "copy" button, it is copying the message, but the popover shows again and again, and the text is still selectable. I don't know how to control this. I have pasted some source code for your reference. I wrote a sub class for UITextView . - (BOOL)canPerformAction:(SEL)action withSender:(id)sender { NSLog(@"Action : %@", NSStringFromSelector(action

Can't copy Umbrao.sdf from webserver

大兔子大兔子 提交于 2019-12-07 12:23:59
问题 I have an Umbraco application running on a webserver and I need to move the application to another webserver. The Umbraco application uses an embedded database (SQL CE 4). I can copy all the files in the application except the "Umbraco.sdf" file. 回答1: Add file named (if you like you can insert HTML that will be your maintenance page) app_offline.html After that IIS will release Umbraco.sdf and web.config copy and delete/rename mentioned file. 回答2: As the Umbraco installation will be using the

Trying to Copy SQLite DB from data to SD card

我只是一个虾纸丫 提交于 2019-12-07 12:03:43
问题 I am using the following code that was posted somewhere on Stack Overflow and modified for my purposes: try { File sd = Environment.getExternalStorageDirectory(); File data = Environment.getDataDirectory(); if (sd.canWrite()) { String currentDBPath = "//data//"+ "com.exercise.AndroidSQLite" +"//databases//"+"MY_DATABASE"; String backupDBPath = "/temp/MY_DATABASE"; File currentDB = new File(data, currentDBPath); File backupDB = new File(sd, backupDBPath); FileChannel src = new FileInputStream

Copy string - Python

帅比萌擦擦* 提交于 2019-12-07 11:55:11
问题 Ok guys I imagine this is easy but I can't seem to find how to copy a string. Simply COPY to the system like CTRL+C on a text. Basically I want to copy a string so I can for example, lets say, paste(ctrl+v). Sorry for such a trivial question, haha. 回答1: This depends a lot on the OS. On Linux, due to X's bizarre selection model, the easiest way is to use popen('xsel -pi') , and write the text to that pipe. For example: (I think) def select_xsel(text): import subprocess xsel_proc = subprocess