473,396 Members | 2,057 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Copying files to a new location

Is there a way, using code, to copy files from one location to
another? I have a table with the filenames so, having defined the path
to the folder, I then need to copy the relevant files and paste them
into a new folder. Any ideas please?
Jul 24 '08 #1
4 5535
"anthony" <an*************@gmail.comwrote in message
news:13**********************************@k30g2000 hse.googlegroups.com...
Is there a way, using code, to copy files from one location to
another? I have a table with the filenames so, having defined the path
to the folder, I then need to copy the relevant files and paste them
into a new folder. Any ideas please?
Check out the FileCopy statement in help.
Jul 24 '08 #2
anthony <an*************@gmail.comwrote in news:13bca13e-a92c-4702-ab27-
81**********@k30g2000hse.googlegroups.com:
Is there a way, using code, to copy files from one location to
another? I have a table with the filenames so, having defined the path
to the folder, I then need to copy the relevant files and paste them
into a new folder. Any ideas please?
Copy
FileCopy "C:\Users\lyle fairfield\Documents\Excel\ks959.zip", "C:\Users
\lyle fairfield\Documents\Access\ks959.zip"
Move
Name "C:\Users\lyle fairfield\Documents\Access\ks959.zip" As "C:\Users\lyle
fairfield\Documents\Excel\ks959.zip"
Jul 24 '08 #3
On 24 Jul, 11:33, "Stuart McCall" <smcc...@myunrealbox.comwrote:
"anthony" <anthony.marr...@gmail.comwrote in message

news:13**********************************@k30g2000 hse.googlegroups.com...
Is there a way, using code, to copy files from one location to
another? I have a table with the filenames so, having defined the path
to the folder, I then need to copy the relevant files and paste them
into a new folder. Any ideas please?

Check out the FileCopy statement in help.
That is just the ticket. Many thanks!
Jul 24 '08 #4
On 24 Jul, 11:56, lyle fairfield <lylef...@yah00.cawrote:
anthony <anthony.marr...@gmail.comwrote in news:13bca13e-a92c-4702-ab27-
810fe2495...@k30g2000hse.googlegroups.com:
Is there a way, using code, to copy files from one location to
another? I have a table with the filenames so, having defined the path
to the folder, I then need to copy the relevant files and paste them
into a new folder. Any ideas please?

Copy
FileCopy "C:\Users\lyle fairfield\Documents\Excel\ks959.zip", "C:\Users
\lyle fairfield\Documents\Access\ks959.zip"

Move
Name "C:\Users\lyle fairfield\Documents\Access\ks959.zip" As "C:\Users\lyle
fairfield\Documents\Excel\ks959.zip"
Thank you so much Lyle
Jul 24 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dan | last post by:
We debug a VB.Net App that uses compact framework to a DAP Windows CE.Net device. When I debug I would like to only have the EXE copied down. Right now it copies any referrences as well and...
5
by: Bill Rust | last post by:
I have a component that needs to access files which exist in the same directory as the DLL containing the component itself. To determine the component's installation directory, I'm using...
1
by: Aaron Masten | last post by:
Is there any way to force traffic from a particular Class C IP Subnet to the Cluster Controller. The main reason I am asking is that we have a custom ASP.NET Application that is hosted on the a...
6
by: Jim Heavey | last post by:
I have written a little application which copies files from one location to another location. Before it copies the file, it ensure the directory for both the from and to locations is valid. It...
2
by: Jerad Rose | last post by:
I have a fairly simple C# console app which copies files from a network folder to a local folder. When the app resides on my local C: drive, it runs just fine. However, when the app resides on a...
2
by: jatphat | last post by:
Somebody help me. How do i copy my Access database from one location on my hard disk to another . i tried file.copy(source, distination ) but the file would not move. i always get this error ...
2
by: Alan Bak | last post by:
HI I am running Active Perl on a Windows XP machine. I am hoping to get some advise on a strategy to monitor and copy files that are arriving in a directory and need to be copied to a second...
0
by: AmyHanson | last post by:
I am new to mobile development and am having some trouble sources for the tasks I need to perform. I have been looking around and I can find plenty of information on copying the file initiating on...
1
by: Mike P | last post by:
I have been asked to create an application that copies folders on a network from one location to another, based upon a text file on the network that lists folder name, destination, and copy...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.