Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wildcards in a Path?

Status
Not open for further replies.

PALman

Technical User
May 15, 2002
160
GB
Can anyone help me with the syntax for copying a file found in one of many folders at the end of a path.

FileCopy "\\Level-01\Level-02\Level-03\C10000-C10999\" + filename, "C:\Jobs Folder\+ filename

FileCopy "\\Level-01\Level-02\Level-03\C11000-C11999\" + filename, "C:\Jobs Folder\+ filename

Both the paths find the file and copt it ok. However I would like replace the folders C10000-C10999 and C11000-C11999 with wildcard/s

any help much appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top