MPlb Posted May 23, 2008 Share Posted May 23, 2008 I am trying to use the filecopy command to copy the entire contents of one folder to another (without creating the folder name). The command I am using is: FileCopy ("x:\myfolder\*.*", "y:\hisfolder\",9) I just cannot get this to copy the files... However, if I use something like: FileCopy ("x:\myfolder\a*.exe", "y:\hisfolder\",9) FileCopy ("x:\myfolder\b*.exe", "y:\hisfolder\",9) . . . FileCopy ("x:\myfolder\z*.exe", "y:\hisfolder\",9) This works fine but is not nice and I may miss some files... How can I get the *.* wildcard working with FileCopy? Thanks Link to comment Share on other sites More sharing options...
ChrisL Posted May 23, 2008 Share Posted May 23, 2008 Whats wrong with DirCopy() ? [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
MPlb Posted May 23, 2008 Author Share Posted May 23, 2008 Won't DirCopy also create the directory name that I'm copying from? Link to comment Share on other sites More sharing options...
ChrisL Posted May 23, 2008 Share Posted May 23, 2008 This should work DirCopy ("x:\myfolder", "y:\hisfolder") [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now