Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 04-06-2009
Member
 
Join Date: Apr 2009
Posts: 105
How to copy a file in VB 6.0 on Windows Vista

I'm running Windows Vista as my operating system. I would like to know how can i copy a file in VB 6.0. What is the command that i can used to copy a file in VB 6.0? Does any body knows about it? Kindly provide me the correct solution for the above issue.
Reply With Quote
  #2  
Old 04-06-2009
Member
 
Join Date: Apr 2008
Posts: 1,948
Re: How to copy a file in VB 6.0 on Windows Vista

If you want to copy a file in VB 6.0, then you need to use the following command:-
Quote:
"c:\my file.txt" As "c:\1.txt"
It will help you to copy a particular file in VB 6.0 on your Windows Vista
Reply With Quote
  #3  
Old 04-06-2009
Member
 
Join Date: Apr 2008
Posts: 2,001
Re: How to copy a file in VB 6.0 on Windows Vista

If you ewant you can also use the following code, in order to move the file from your c drive to your d drive on your pc.

Quote:
private function movefile()
Dim oFSO
Set oFSO = CreateObject("Scripting.FileSystemObject")
oFSO.movefile "C:\12345.txt", "D:\"
set ofso = nothing
end function
Reply With Quote
  #4  
Old 04-06-2009
Member
 
Join Date: Oct 2005
Posts: 2,389
Re: How to copy a file in VB 6.0 on Windows Vista

Try to look into your File System Object on your system. It's a part of the Microsoft Scripting Runtime library and can be used in VB. It will help you to find "VB6 FSO COPY FILE" on your pc, and then you need to just click on it.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to copy a file in VB 6.0 on Windows Vista"
Thread Thread Starter Forum Replies Last Post
Windows 8: copy and file transfer improved jackalz Web News & Trends 1 24-08-2011 02:22 PM
Windows file copy is tremendously slow steve72 Networking & Security 2 07-11-2009 11:57 AM
Windows encountered a problem when trying to copy this file sg19000 Windows Software 5 02-09-2009 06:19 PM
Copy the path of a File/Folder to Clipboard in WIndows 7 & Vista TheGreatOne Tips & Tweaks 2 21-03-2009 07:08 PM
Slow file copy in Vista (VERY VERY slow in fact) Nick Gilbert Vista Help 5 26-09-2007 01:23 AM


All times are GMT +5.5. The time now is 02:01 PM.