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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FileMove and wildcard question

Status
Not open for further replies.

chapm4

IS-IT--Management
Nov 12, 2001
38
0
0
US
I have several files beneath a directory that I need to move to another directory. Basically daily report files will be moved to an archive directory before new reports are created. I can not figure out how to move all files beneath a directory to another directory. MoveFile does not like wildcards I guess.

 
Have you tried something like this:

System.IO.Directory.Move("c:\RptDir\*.rpt", "C:\Archive")

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top