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