By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,097 Members | 1,431 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,097 IT Pros & Developers. It's quick & easy.

Copying file

P: 7
Hello there!
I want to copy the file with different name within same folder. I am not seeing any method in FileSystemObject which will do it. Does anybody know how to do it? Please help me, It's urgent.
Mar 15 '07 #1
Share this Question
Share on Google+
1 Reply


vijaydiwakar
100+
P: 579
Hello there!
I want to copy the file with different name within same folder. I am not seeing any method in FileSystemObject which will do it. Does anybody know how to do it? Please help me, It's urgent.
try to use this code
Expand|Select|Wrap|Line Numbers
  1. Dim fSys As New FileSystemObject
  2. Private Sub Form_Load()
  3.     fSys.CopyFile "C:\a.jpg", "D:\", True
  4. End Sub
  5.  
Mar 15 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.