PC Review


Reply
Thread Tools Rate Thread

Copy file from source to destination directory

 
 
Krich
Guest
Posts: n/a
 
      7th Oct 2003
I want to copy image such as .jpg or .gif from source
directory to destination directory but I don't know how
to or what object or method to use.
 
Reply With Quote
 
 
 
 
Sender
Guest
Posts: n/a
 
      7th Oct 2003
Example:

File.copy("c:\abc.jpg", "d:\abc.jpg")

(To use File class you have to write following in the beginning of the file,
outside of any class
Imports System.IO

"Krich" <(E-Mail Removed)> wrote in message
news:01ec01c38cf3$512f45e0$(E-Mail Removed)...
> I want to copy image such as .jpg or .gif from source
> directory to destination directory but I don't know how
> to or what object or method to use.



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      7th Oct 2003
"Krich" <(E-Mail Removed)> scripsit:
> I want to copy image such as .jpg or .gif from source
> directory to destination directory but I don't know how
> to or what object or method to use.


Have a look at the 'FileCopy' method.

--
Herfried K. Wagner <http://www.mvps.org/dotnet>
MS-MVP · VB Classic, VB.NET <script></script>
----------------------------------------------------------------------------
Java-Server für J2EE-Applikationen verwundbar
<http://www.heise.de/newsticker/data/dab-07.10.03-000/>
----------------------------------------------------------------------------
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible? Dynamic copy/paste source AND destination? LiAD Microsoft Excel Programming 5 10th Nov 2009 06:53 PM
copy folder from source to Destination in backgroundworker Bruce Reiland Microsoft C# .NET 0 1st Apr 2008 10:49 PM
user form to copy and paste from source to destination rbekka33 Microsoft Excel Programming 2 13th Sep 2004 05:01 AM
File copy error "Destination Folder is a Subfolder of the Source Folder Frank Windows XP Basics 0 14th Apr 2004 09:34 PM
Re: File copy error "Destination Folder is a Subfolder of the Source Folder Michael Solomon \(MS-MVP Windows Shell/User\) Windows XP Basics 0 14th Apr 2004 07:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:25 AM.