Questions tagged [copying]

This tag refers to the process of making an exact duplicate of a file, database, etc.

Use this tag for questions related to copying files, databases, etc. on a system.

374 questions
-1
votes
1 answer

Copying a powerpoint file

I am currently trying to work on a program to automatically copy a PowerPoint into another file when ran however I cannot use shutil as it cannot handle pptx files any suggestions would be appreciated.
J.Rimmer
  • 27
  • 6
-1
votes
1 answer

How to get string with fullpath of files for copy files

I have directories (for example, 5555555) where stored files (files named "directory-date", for example 555555-181118). I get collection List with Directory.GetFiles(string) help. How I can get full pathways of files and copy these files to…
Egor
  • 13
  • 3
-1
votes
1 answer

when copying objects, problem w/ staticaly declared array, that is a member of a member object of the object being copied

I have a vector of A objects. class A contains a member object of type B. class B contains a statically declared array of bool. When I copy an A object into the vector, the values in the bool array are lost. I though this shouldn't be a problem…
Matt Munson
  • 2,903
  • 5
  • 33
  • 52
-1
votes
1 answer

How to copy/move files without replacement

I have a backup of all of my data in two separate places. Usually the workflow is analyzing/modifying the data in one place and then backing it up by simply copying it to the other location. As data accumulates this gets slower and slower. I was…
HAB311
  • 1
-1
votes
3 answers

C++ - copying from const char* to string

Is there a way to copy string from const char* to string in C++? I'm trying to do something like this: #include #include using namespace std; int main(){ string s1; const char* pStr = "Sample Text"; for(int i =…
user7314153
-1
votes
1 answer

Optimizing per-thread copying and 0-padding of data in registers/L1

I'm writing a kernel which, among other things, has each thread populate one variable with data constituting the lower bytes, and pads the rest (assuming little-endianness). This is done repeatedly and non-uniformly across threads, in that some…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
-1
votes
3 answers

Copying 2D arrays in C

I'm trying to copy some 2D arrays of strings into an another one. I have 2 arrays that look like this: char *tabA[SIZE]; char *tabB[SIZE]; I want to copy tabA[indexA] to tabB[indexB] but strcpy(tabB[indexB], tabA[indexA]) doesn't work at all,…
z0idb3rg
  • 461
  • 1
  • 6
  • 12
-1
votes
1 answer

Write function fcopy() that takes two file name inputs and copies the content of the first file into the second using Python

So I did: def fcopy(original, copy): 'creates a copy of file original named copy' infile = open(original) content = infile.read() print(content) But this only print out what's in the original file. No clue how to copy the content of…
Frank
  • 339
  • 8
  • 18
-1
votes
1 answer

Extra character at end while copying?

This is making me nuts I am trying to make a simple program to copy any type of file using the following code but the result I get is unexpected (one or two extra characters at the end of copied file?). For instance if my original file has This is…
Naveen
  • 105
  • 1
  • 9
-1
votes
2 answers

How to compare files while copying them to another directory?

I'm currently using the following snippet to go through millions of files in a very large directory and then copy the ones that I need into another working directory. sNos is an int[] which holds some integers. I check if the filename contains one…
sparta93
  • 3,684
  • 5
  • 32
  • 63
-1
votes
1 answer

Sorting Vector of Coordinates C++

I am trying to sort a vector of coordinates. The vector has pointers to these coordinates. I want to sort them by x and by y. What I am currently thinking of how to do this is as follows make two copies of the vector and then sort them. I am unsure…
Masterminder
  • 1,127
  • 7
  • 21
  • 31
-1
votes
1 answer

How to find whether the content copying of pdf file is allowed or not?

How to find whether content copying of a pdf file is enabled or not in command line.
-1
votes
2 answers

Creating a file and copying its content to other file in c language

I need a C program to copy contents of one file to another file along with the following conditions : 1.) The file from which we read data may or may not exist. 2.) The file to which the data is being copied may or may not exist. If the file exists,…
Aditya Vikas Devarapalli
  • 3,186
  • 2
  • 36
  • 54
-1
votes
1 answer

Copying data into new sheet depending upon selection of rows or columns based upon highlighted

This question may be posted on other forums as well but i am unable to find out my answer. I want a macro that could Copy my selected rows or columns or cells. makes new file.xlsx pastes that data in that sheet.
IConfused
  • 693
  • 1
  • 5
  • 14
-2
votes
1 answer

How to remove duplicates automatically in excel?

I have two files, File A and File B. I copied File A, Column A's data into File B, Column A I want to remove Duplicate Values from Column A when I paste into File B (without using VBA would be much better). Thank you
1 2 3
24
25