file-copying Questions

6

Solved

I want to copy/paste a file from one folder to another folder in windows using R, but it's not working. My code: > file.rename(from="C:/Users/msc2/Desktop/rabata.txt",to="C:/Users/msc2/Desktop/...
Unfortunate asked 22/4, 2012 at 9:55

21

Solved

How do I copy a file in Python?
Kilar asked 23/9, 2008 at 19:23

2

Solved

My goal is to write a simple Powershell script that will take one mandatory argument, that argument must be a full file path to a shortcut (.lnk) file, then the script will resolve the shortcut's t...
Chrysolite asked 8/12, 2022 at 10:30

27

Solved

I'm thinking of using Docker to build my dependencies on a Continuous Integration (CI) server, so that I don't have to install all the runtimes and libraries on the agents themselves. To achieve ...
Spontaneity asked 26/2, 2014 at 17:46

28

Solved

Every now and then when I build my solution here (with 7 projects in it) I get the dreaded 'Command copy exited with code 4' error, in Visual Studio 2010 Premium ed. This is because of the post-bu...

3

Solved

I need to transfer around 4.2 GB of files from my local computer to a server B. However to ssh into server B, I need to ssh into server A. Currently I'm copying files from my local computer to ser...
Sodomite asked 8/11, 2015 at 20:23

2

Solved

When using the File.Copy() method the file is copied to its new directory however it loses its original permissions. Is there a way to copy a file so that it doesn't lose the permissions?
Evans asked 6/2, 2012 at 16:51

7

I see that Java 8 has significantly cleaned up reading the contents of a file into a String: String contents = new String(Files.readAllBytes(Paths.get(new URI(someUrl)))); I am wondering if ther...
Beautifully asked 16/3, 2015 at 12:8

8

Solved

I'm trying to automate pushing a file into my users' home directories, but am stuck on a "Permission Denied" error — is thrown on line 6 here, with the CopyFile call. There are other parts of the ...
Ferromanganese asked 17/4, 2013 at 22:56

6

Is it possible to copy a file which is being using by another process at the same time? I ask because when i am trying to copy the file using the following code an exception is raised: System.IO...
Guillemette asked 29/5, 2011 at 10:16

3

Solved

Why the code below results in: public static class Program { public static void Main(params string[] args) { var sourceFileName = @"C:\Users\ehoua\Desktop\Stuff\800MFile.exe"; var destinatio...
Bibliotaph asked 22/2, 2017 at 22:51

8

Solved

Basic situation: I am copying some NTFS disks in openSUSE. Each one is 2 TB. When I do this, the system runs slow. My guesses: I believe it is likely due to caching. Linux decides to discard useful...
Otolaryngology asked 11/4, 2012 at 11:42

1

Solved

I wonder about an efficient way to copy files (on Linux, on a FS which supports copy-on-write (COW)). Specifically, I want that my implementation uses copy-on-write if possible, but otherwise falls...
Baryton asked 30/12, 2020 at 10:50

4

Solved

I have a script that needs to copy files on a regular basis (every hour). I can open the source and destination folder using windows explorer and copy the file without issue. However, if I try the...
Broch asked 21/3, 2017 at 17:39

3

Solved

I've some audio files in my res/raw folder. For some reasons, i want to copy this files to my SDCard When, my application starts. How can i done this? Anyone guide me?
Perform asked 29/12, 2011 at 5:53

2

During the Azure Release pipeline, I would like to copy a file in a Git repo to the wwwroot directory in the app service. The output from the task says it copies the file but it is not there. I am ...
Mourner asked 14/1, 2020 at 13:12

6

Solved

Anybody know of a way to copy a file from path A to path B and suppressing the Windows file system cache? Typical use is copying a large file from a USB drive, or server to your local machine. Wind...
Elayneelazaro asked 7/9, 2008 at 18:56

2

Solved

I have a bunch of text files(say ss1.txt,ss2.txt,ss3.txt etc.) under a directory with my Java program (C:/Users/java/dir1)? I want to move my txt files to a new directory that hasn't been created y...
Titanesque asked 13/4, 2015 at 3:34

4

Solved

I have a list called fileList containing thousands of filenames and sizes something like this: ['/home/rob/Pictures/some/folder/picture one something.jpg', '143452'] ['/home/rob/Pictures/some/othe...
Carmon asked 17/10, 2018 at 9:52

1

Solved

I was wondering after using computer for a long times it feels like copy paste was fundamental feature but I know it is not. So the question is how does this really work? I thought of all ideas h...
Bohlin asked 19/10, 2018 at 7:19

3

Solved

I found a small snippet for doing a recursive file copy in C#, but am somewhat stumped. I basically need to copy a directory structure to another location, along the lines of this... Source: C:\da...
Dockage asked 15/8, 2011 at 12:25

2

Solved

I'll be copying a large file over the network using my winforms app and I need to show some kind of progress bar. Rather than cook up my own copy routine, I was thinking that it might be better to ...
Simmers asked 14/7, 2011 at 1:15

1

The Windows API function CopyFileEx allows a callback function to be specified which is then being called when a part of the file has been copied to e.g. provide the user with feedback about the pr...
Albers asked 15/3, 2018 at 10:11

2

Solved

I have a Vagrant / Ansible set up on my Windows host. Ansible is set up to run on the Ubuntu guest, as Vagrant up executes a shell script which copies the provisioning yml files onto the guest and ...
Rafael asked 2/9, 2015 at 6:50

2

Solved

I'm trying to move my files into htdocs folder of an apache image. Her's what my dockerfile looks like: FROM httpd:2.4 MAINTAINER Ankit COPY ./public-html/ /usr/local/apache2/htdocs/ But the COP...
Classify asked 30/7, 2017 at 15:56

© 2022 - 2024 — McMap. All rights reserved.