MSFN Forum: VB Code from Copying from a to b - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

VB Code from Copying from a to b Rate Topic: -----

#1 User is offline   DaveXP 

  • The One
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,295
  • Joined: 15-July 03

Posted 10 October 2004 - 11:41 AM

Hey, can anyone tell me wat the code is to make a button which can copy files from one place to another

Thanks


#2 User is offline   jdoe 

  • Advanced Member
  • PipPipPip
  • Group: Banned
  • Posts: 314
  • Joined: 02-May 04

Posted 10 October 2004 - 05:44 PM

Private Sub Command1_Click()
  Dim fso As Object
  
  Set fso = CreateObject("Scripting.FileSystemObject")
  fso.CopyFile "C:\*.TXT", "D:\DESTINATION\"

End Sub


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy