dbTalk Databases Forums  

wildcarding CopyFile

comp.databases.ms-access comp.databases.ms-access


Discuss wildcarding CopyFile in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bobh
 
Posts: n/a

Default wildcarding CopyFile - 03-30-2010 , 12:53 PM






Hi All,

In AccessXP in a sub can I wildcard the CopyFile command or do I have
to specify each file

example can I write

CopyFile "c:\MyData\*.*" , "y:\YourUpdate\*.*"

or

CopyFile "c:\MyData\*" , "y:\YourUpdate\*.txt"

thanks
bobh

Reply With Quote
  #2  
Old   
Tom van Stiphout
 
Posts: n/a

Default Re: wildcarding CopyFile - 03-30-2010 , 10:25 PM






On Tue, 30 Mar 2010 10:53:14 -0700 (PDT), bobh <vulcaned (AT) yahoo (DOT) com>
wrote:

From the help file:
FileSystemObject.CopyFile "c:\mydocuments\letters\*.doc",
"c:\tempfolder\"

You can also take 1 minute and try it for yourself. Don't be afraid of
trying something.

-Tom.
Microsoft Access MVP


Quote:
Hi All,

In AccessXP in a sub can I wildcard the CopyFile command or do I have
to specify each file

example can I write

CopyFile "c:\MyData\*.*" , "y:\YourUpdate\*.*"

or

CopyFile "c:\MyData\*" , "y:\YourUpdate\*.txt"

thanks
bobh

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.