Results 1 to 4 of 4

Thread: How to copy a file in VB 6.0 on Windows Vista

  1. #1
    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.

  2. #2
    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:-
    "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

  3. #3
    Join Date
    Apr 2008
    Posts
    2,005

    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.

    private function movefile()
    Dim oFSO
    Set oFSO = CreateObject("Scripting.FileSystemObject")
    oFSO.movefile "C:\12345.txt", "D:\"
    set ofso = nothing
    end function

  4. #4
    Join Date
    Oct 2005
    Posts
    2,393

    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.

Similar Threads

  1. Windows 8: copy and file transfer improved
    By jackalz in forum Web News & Trends
    Replies: 1
    Last Post: 24-08-2011, 02:22 PM
  2. Windows file copy is tremendously slow
    By steve72 in forum Networking & Security
    Replies: 2
    Last Post: 07-11-2009, 11:57 AM
  3. Replies: 5
    Last Post: 02-09-2009, 06:19 PM
  4. Replies: 2
    Last Post: 21-03-2009, 07:08 PM
  5. Slow file copy in Vista (VERY VERY slow in fact)
    By Nick Gilbert in forum Vista Help
    Replies: 5
    Last Post: 26-09-2007, 01:23 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,977,458.63494 seconds with 17 queries