11,322 questions
2
votes
3
answers
2k
views
Managing file uploads in JSP/Servlets
Once again a very beginner-ish question, but here I go:
I would like to use a servlet or similar to copy an uploaded file (from an html file select) to a permanent location. This is all I need to do ...
63
votes
15
answers
137k
views
How to say no to all "do you want to overwrite" prompts in a batch file copy?
By default, copying from the command prompt will prompt you to overwrite files that already exist in the target location.
You can add "/Y" to say "Yes to all" replacements.
But how can you say "No ...
31
votes
7
answers
43k
views
Can I show file copy progress using FileInfo.CopyTo() in .NET?
I've created a copy utility in c# (.NET 2.0 Framework) that copies files, directories and recursive sub directories etc. The program has a GUI that shows the current file being copied, the current ...
214
votes
9
answers
178k
views
How do I create a copy of an object in PHP?
It appears that in PHP objects are passed by reference. Even assignment operators do not appear to be creating a copy of the Object.
Here's a simple, contrived proof:
<?php
class A {
public $...
753
votes
31
answers
887k
views
What is the difference between a deep copy and a shallow copy?
What is the difference between a deep copy and a shallow copy?
33
votes
4
answers
84k
views
How can I copy data records between two instances of an SQLServer database
I need to copy some records from our SQLServer 2005 test server to our live server. It's a flat lookup table, so no foreign keys or other referential integrity to worry about.
I could key-in the ...
4
votes
3
answers
6k
views
How to determine when copy finishes in VBScript?
Does anyone know of a method to determine when a file copy completes in VBScript? I'm using the following to copy:
set sa = CreateObject("Shell.Application")
set zip = sa.NameSpace(saveFile)
set ...
3940
votes
21
answers
4.1m
views
How do I copy a file?
How do I copy a file in Python?
19
votes
6
answers
13k
views
Can I make the Ant copy task OS-specific?
I have an Ant script that performs a copy operation using the 'copy' task. It was written for Windows, and has a hardcoded C:\ path as the 'todir' argument. I see the 'exec' task has an OS argument, ...
30
votes
8
answers
60k
views
What's the fastest way to copy the values and keys from one dictionary into another in C#?
There doesn't seem to be a dictionary.AddRange() method. Does anyone know a better way to copy the items to another dictionary without using a foreach loop.
I'm using the System.Collections.Generic....
2
votes
6
answers
5k
views
SQL 2005 copy single column between databases
I'm still fairly new to T-SQL and SQL 2005. I need to import a column of integers from a table in database1 to a identical table (only missing the column I need) in database2. Both are sql 2005 ...