Questions tagged [copy]

To copy is to create a duplicate of an object without destroying the original. Commonly seen in text editors that will let you copy some text and paste it somewhere else.

In computing, copy is related both to the command by which a duplicate of a specified entity is made, both in terms of its definition and content, as well as the resulting duplicate itself.

In terms of abstracted use, 'copy' such as when performing a cut-copy-paste operation via a graphical user interface, is an interface metaphor based on the physical procedure used in manuscript editing to create a page layout.

11278 questions
3
votes
1 answer

Copy all lines hit by search in notepad++

I have a huge file with my db dump which is like the small snippet shown below. 903 09-JAN-14 4 2 "false" "false" "false" 7505 7459 2139 66.51 0.18 69.72 1 903 09-JAN-14 5 3 "false" "false" "false" 7468 7415 2173 …
RBz
  • 896
  • 3
  • 17
  • 34
3
votes
1 answer

How to move files from folder a to b

I want to copy files from one directory to another but it doesn't work. Error that Occurs Can't make dir if he is or something like that This is my code string uplaydir = ""; using (StreamReader sr = new…
Kaczper
  • 103
  • 1
  • 2
  • 11
3
votes
2 answers

How does the copy function work?

I don't understand how the copy function works based on the documentation: The copy built-in function copies elements from a source slice into a destination slice. (As a special case, it also will copy bytes from a string to a slice of bytes.)…
Jason Zhou
  • 433
  • 6
  • 11
3
votes
1 answer

OpenCV copying submatrix into another ROI of image

I need to move a submatrix of the image to another place of the same image: it means move down this sumbmatrix. So I have developed the next code Mat image; image = cv::imread(buffer, 1); nlines = 10; for ( k = 0; k < nlines; k++ ) { for ( j…
Jose M. Jimenez
  • 101
  • 2
  • 7
3
votes
1 answer

How to copy selected listview item by copy command in the context menu

I've a listview and I want to copy the selected item by selecting the copy command in the context menu. I'm able to create a context menu with the copy command as shown in the image below: The problem is when I select a row item and right click it,…
YWah
  • 571
  • 13
  • 38
3
votes
0 answers

android. copy aar file from each module to assets folder

project has following structure: modules: build.gradle app ....assets ....build.gradle core ....build/outputs/aar/core-release.aar (is creating during gradle build) data ....build/outputs/aar/data-release.aar (is creating during gradle build) I need…
vetalitet
  • 703
  • 2
  • 10
  • 25
3
votes
1 answer

How to imitate Bootstrap's html code highlighting and copy to clipboard?

I really like the getting started guide by Bootstrap (http://getbootstrap.com/css/), and I want to do something similar in my project. I've looked at highlight.js but it seems the color is a bit off to me. I don't know how to implement the copy to…
tlaminator
  • 946
  • 2
  • 9
  • 23
3
votes
2 answers

Custom Action dll is not working . Installer is showing error: Wizard ended prematurely

I am using dll for copying one directory to another as a part of wix . So as a test program I am using following code that works fine with console application. Backup.dll namespace WiXTutorial.Samples { using System; using…
Keshav
  • 1,917
  • 18
  • 22
3
votes
2 answers

VBA - Copying and Pasting from Multiple Excel files to Single Excel File

Long time reader and admirer of StackOverflow. Basically I am trying to to loop through a series of Excel files to copy a range of data and paste it on a single Excel workbook/sheet. The cell range location (C3:D8, D3:E8) is not always consistent,…
Andrew Karl
  • 33
  • 1
  • 1
  • 3
3
votes
2 answers

How to copy an Image/BufferedImage

I have a BufferedImage. I want to do two copy of it, to write some things with their Graphics. But, if I write something on one, it will do the same on all the other copy, so I tried to do image.getSubImage(0, 0, image.getWidth(),…
Litarvan
  • 125
  • 3
  • 9
3
votes
2 answers

Create copy an existing Excel file within Java

how can I copy an existing excel macro file "test.xlsm" to a new Excel file in the same directory ("test copy.xlsm")? I have used this approach: private static void copyFileUsingJava7Files(File source, File dest) throws IOException { …
Benjamin
  • 10,603
  • 3
  • 16
  • 28
3
votes
2 answers

Powershell string work

This is my first question here and i'm new to powershell. I have a folder $home\Devoluciones\ with several files named DtoXXXYYYYMM.dat where XXX is a company number, YYYY is the current year and MM stands for current month. What i need to do is to…
Nestoter
  • 79
  • 9
3
votes
1 answer

Copy to clipboard from Firefox add-on content script

I want to write a content script in a Firefox add-on that will copy a string to the user's clipboard in response to an event. I know that I can do this with the Firefox clipboard API like this: var clipboard = require("sdk/clipboard"); var val =…
Joe Mornin
  • 8,766
  • 18
  • 57
  • 82
3
votes
2 answers

ActiveSheet.Paste type (Paste Only values)

I have this simply code, I want to copy only values from WoorkBook1 into Workbook2, only values, because Workbook2 have a specific format. Sub Test() Workbooks("Workbook1.xlsx").Activate Range("B2:B7").Select Selection.Copy …
user4965172
3
votes
5 answers

Oracle Populate backup table from primary table

The program that I am currently assigned to has a requirement that I copy the contents of a table to a backup table, prior to the real processing. During code review, a coworker pointed out that INSERT INTO BACKUP_TABLE SELECT * FROM…
EvilTeach
  • 28,120
  • 21
  • 85
  • 141