copy

Copy-Item : Cannot bind argument to parameter 'Path' because it is null

自古美人都是妖i 提交于 2019-12-13 02:58:53
问题 I am not sure what is going on. I am very new to Power Shell. I have a folder structure containing images in them. I am looking to get all the images that are X days old and copy those images to two other locations. The error I am getting is: Copy-Item : Cannot bind argument to parameter 'Path' because it is null. At C:\Documents and Settings\Administrator.VDICORP\Desktop\ProcessOSImages.ps1:37 char:24 + copy-item -path <<<< $TheImage -destination $TestSite + CategoryInfo : InvalidData: (:)

Ant: How to know if at least one copy task from ten copy tasks actually copied a file

南楼画角 提交于 2019-12-13 02:56:56
问题 I have a target which has several copy tasks; It basically copies the common jars to our set of applications from a centralized location to the lib folder of the application. Seeing as this is a regular copy task a jar will be copied only if it is newer than the one currently in the lib folder. This is the relevant part in the build.xml: <target name="libs"/> <copy file=... /> <copy file=... /> <copy file=... /> <antcall target="clean_compiled_classes"/> </target> <target name="clean_compiled

VBA Copy Paste Values From Separate Ranges And Paste On Same Sheet, Same Row Offset Columns (Repeat For Multiple Sheets)

夙愿已清 提交于 2019-12-13 02:39:08
问题 I was going to make a Case statement but I don't think that makes much sense in this situation, I'm a VBA n00b, since this workbook will remain quite static I don't mind taking the non-optimal approach and record a macro of me copying and pasting but I thought I'd ask here before I land on that. I have 6 worksheets in 1 workbook. Sheet1: Copy BA17:BI31, Copy BA48:BI50, Copy BA67:BI81, Copy BA98:BI100, Copy BA117:BI131, Copy BA148:BI150, Copy BA167:BI181, Copy BA198:BI200, Copy BA215:BI215,

Batch Deleting Files While Performing a Copy/Merge

送分小仙女□ 提交于 2019-12-13 02:38:51
问题 I have 2 files, "launcher.jar" and "camStudio.jar" that I need merged. I decided to try to do this using batch with the code: copy /b launcher.jar + camStudio.jar file.jar However, the resulting "file.jar" only contains the contents of "camStudio.jar". How can I prevent the files in "launcher.jar" from being deleted? 回答1: Combining the contents of two .jar files is a little more complicated than just calling copy from the command line. Rather than a normal directory, .jar files are a type of

Ant publish stuff to different locations

a 夏天 提交于 2019-12-13 02:33:43
问题 I have a java project and an ANT script to build and then distribute the project to other projects with a simple copy command. I would like to only name the place where to copy to files to once in the header of the ant script, and not have an explicit copy-task for every project that is dependent on this project. I can't find anything like arrays in ANT, so what would be the cleanest way of distributing something to multiple directories? 回答1: According to what I commented under Martin's

Eclipse PDT, how do I get the files on the server?

我只是一个虾纸丫 提交于 2019-12-13 02:23:32
问题 I am trying to learn how to use Eclipse Helios PDT, but I don't understand how one gets the files from their workspace to the server. The PDT documentation is painfully sparse. I have my workspace in /home/bob/workspace and my local dev webroot is /home/bob/public_html. If I set up a run configuration for my php project I see where I can set up the path to the server, etc, but I do not see any obvious way to auto copy the files to my webroot to actuallly run the project. If I click on run, I

C++ copy constructor behaviour [duplicate]

蹲街弑〆低调 提交于 2019-12-13 02:17:10
问题 This question already has answers here : What are copy elision and return value optimization? (4 answers) Closed 5 years ago . There is a part of C++ code I don't really understand. Also I don't know where should I go to search information about it, so I decided to ask a question. #include <iostream> #include <string> using namespace std; class Test { public: Test(); Test(Test const & src); Test& operator=(const Test& rhs); Test test(); int x; }; Test::Test() { cout << "Constructor has been

implementing custom accessor methods

给你一囗甜甜゛ 提交于 2019-12-13 02:16:30
问题 I am reading "Core Data Programming Guide". It contains this text: You must, however, change attribute values in a KVC-compliant fashion. For example, the following typically represents a programming error: NSMutableString *mutableString = [NSMutableString stringWithString:@"Stig"]; [newEmployee setFirstName:mutableString]; [mutableString setString:@"Laura"]; For mutable values, you should either transfer ownership of the value to Core Data, or implement custom accessor methods to always

std::array copy semantics

て烟熏妆下的殇ゞ 提交于 2019-12-13 00:50:07
问题 #include <array> #include <iostream> using namespace std; struct SimpleDebugger { SimpleDebugger(int val = 0) : x(val) { cout << "created" << endl; } SimpleDebugger(const SimpleDebugger &that) : x(that.x) { cout << "copied" << endl; } ~SimpleDebugger() { cout << "killed!" << endl; } int getX() const { return x; } void setX(int val) { x = val; } private: int x; }; array<SimpleDebugger, 3> getInts(int i) { array<SimpleDebugger, 3> a; a[0].setX(i); a[1].setX(i + 1); a[2].setX(i + 2); cout <<

MSBuild recursive copy

我们两清 提交于 2019-12-13 00:39:33
问题 In Csproj I have the following section: <ItemGroup> <Content Include="C\MyPath\**"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <Link>Res\%(RecursiveDir)%(Filename)%(Extension)</Link> </Content> Thus if C\MyPath\ has a following structure: -C -MyPath -f1.txt -folder1 -f3.txt -folder4 -folder2 -f4.txt -folder5 I don`t want exactly the recursive copy but I want folder1 and folder2 not to be generated but rather start recursive copy from the second level: -Res - f1.txt - f3,txt