copy

How to copy a LINUX file using c# remotely ?

I have to make a duplicate copy of a file located on a Linux Server and then rename that with another name. For example there is existing file in /temp/100.txt . I have to copy that file to same location with another name i.e. /temp/101.txt . How can I achieve that with c#. We have that folder /temp available as NFS folder from IIS we...

Copy DataGridView contents to clipboard

Hi I want to copy the contents of a DataGridView and paste in in Excel. I tried myDataGrid.SelectAll(); DataObject dataObj = myDataGrid.GetClipboardContent(); Clipboard.SetDataObject(dataObj, true) But this just pastes nothing Any suggestions? Thanks ...

JQuery - Copy dimensions and absolute position of element

I'm trying to copy a element's dimensions and the position(relative to the document) onto another element. Ex: var SelectedElement = $("div#MyTargetElement"); // The CopiedButEmpty element is a div with absolute position that is meant to hover/float above the selected element. $("div#CopiedButEmpty").css("width", SelectedElement...

How can I recursively copy the contents of directory using Perl?

Hi guys. I am running the current version of ActivePerl on Windows Vista, and I was wondering if you could show me the best and simplest way to copy a folder and it's contents to another location. Contents would include various files, and most likely some more nested folders. I imagine there must be a module out there somewhere that I ...

MFC - Copy a directory, it's subfolders and files

Hi all, How do you copy a directory, subfolders and it's files? CopyFile doesn't allow wildcards, MoveFileEx works but the source directory is of course, "moved" not actually "copied" Thanks... ...

Cannot paste an image from clipboard to MS Word

I have an asp.net/C# web application. I have an image steaming .aspx page to render images. I have to copy an image to client's clipboard. So I first load the image in a hidden image box and copy it to clipboard by using javascript command ctrlRange.execCommand('Copy'); Image does copies to clipboard. It can be pasted in MSPaint. But i...

Batch rename&copy&delete not working?

On whatever reason this is not working [gives 'file not found'] set in=c:\myprogram\_save cd %temp% ren 1RO.dat "Titanic Moves 1 of 3 Rotterdam.dat" ren 12RO.img "Titanic Moves 1 of 3 Rotterdam.img" ren 2HA.dat "Titanic Moves 2 of 3 Hawai.dat" ren 22HA.img "Titanic Moves 2 of 3 Hawai.img" ren 3NY.dat "Titanic Moves 3 of 3 NY.dat" ren 33...

Copying files on a remote server over ftp

I use Filezilla to do my FTP duties, and I seem unable to copy files without making a copy to the my local computer. I doubt Filezilla is bad software, so... is this just an inherent quality of FTP? that I can't copy? ...

SVN replicate directory

Is it possible (or even practical) to copy directory from one SVN repository location to another, retaining tho old one and keep history for each individual file in both places? So far I see SVN import which copies the directory but looses the history or SVN move which relocates the directory. Here's a brief example: COPY SVN_ROOT/proj...

Transactional File Copy

Does anyone know of a program for Windows Server 2008, Windows 7, etc. that allows you to do the following: Automatically replaces the Windows copy feature with improved features allowing you to: Copy files from A to B with the ability to shutdown/restart your machine mid-process ... upon restart it resumes Allows you to pause copying...

Efficient copy from one file to another

I'm building a system in Java which has to copy a subset of a file into another file (not necessarily to the beginning of the file). I.e. I have the following parameters: File srcFile, File dstFile, long srcFileOffset, long dstFileOffset, long length Several threads could be reading from the same source-file and writing to the same des...

Is there a PHP5 setting to make it copy objects by value?

I got stuck moving an old website written in php4 to my company's new server that only supports php5. In php4, objects were copied by value, but in php5 it's by reference. Unfortunately for me, the person originally who wrote this site was making objects from others left and right, and now it's causing all sorts of problems. Is there ...

A question about setter in objective-c

This is an example from The Objective-C 2.0 Programming Language. I was just wondering, in the setter at the bottom, can I use value = [newValue retain] instead of value = [newValue copy] ? @interface MyClass : NSObject { NSString *value; } @property(copy, readwrite) NSString *value; @end // assume using garbage collecti...

How do I copy from numerous release directories to a single folder

Okay this is and isn't programming related I guess... I've got a whole bunch of little useful console utilities scattered across a suite of projects that I wrote and I want to dump them all to a single directory to make using them simpler. The only issue is that I have them all compiled in both Debug and Release mode. Given that I onl...

Copying files from one directory to another in Java

Hello, I want to copy files from one directory to another (subdirectory) using Java. I have a directory, dir, with text files. I iterate over the first 20 files in dir, and want to copy them to another directory in the dir directory, which I have created right before the iteration. In the code, I want to copy the review (which represent...

How to test if a file is fully copied in .NET

I am monitoring a folder for new files and need to process them. The problem is that occasionally file opening fails, because system has not finished copying it. What is the correct way to test if the file is finished copying? Clarification: I don't have write permissions to the folder/files and cannot control the copying process (it's...

Computing estimated times of file copies / movements?

Inspired by this xckd cartoon I wondered exactly what is the best mechanism to provide an estimate to the user of a file copy / movement? The alt tag on xkcd reads as follows: They could say "the connection is probably lost," but it's more fun to do naive time-averaging to give you hope that if you wait around for 1,163 hours, it ...

Copy Excel worksheets, macros, and graphs from one workbook to another, moving links to the new workbook

I have an Excel workbook with a number of features: One main user-facing sheet One summary sheet based on the user-facing sheet's data A number of graphs based on the user-facing sheet's data (as in, the type of graphs with a separate tab for them, rather than objects within a worksheet - I'm not sure if they have a special name or spe...

How to automaticly copy & paste fields from excel into a website form

Hi! I have about 50 excel sheets to input on a website everyday, but unfortunately I can only submit 8 of these sheets per hour. Therefore, I'm looking for a tool, or comnbination of tools, that will allow me to automaticly copy & paste fields from Excel sheets, into a designated form on a website, and will allow me to set the time wh...

Dynamically add files to visual studio deployment project.

I've been desperately looking for the answer to this and I feel I'm missing something obvious. I need to copy a folder full of data files into the TARGETDIR of my deployment project at compile time. I can see how I would add individual files (ie. right click in File System and go to Add->File) but I have a folder full of data files whi...