dinodod Posted August 8, 2005 Posted August 8, 2005 What i am trying to do is pretty simple. I want to create a backup application that copies data from a network folder to either another network folder or a local folder. Seems simple. However, I have tried both a mapped drive letter and using the full URL in my scripts to copy from the network to a local folder but no luck. G: is a mapped network folder FileCopy("g:\*.DBF", "c:\backups") = nothing copied Is there a way to do this in Autoit ? Please advise and thanks! Digital Chaos - Life as we know it today.I'm a Think Tank. Problem is, my tank is empty.The Quieter you are, the more you can HearWhich would you choose - Peace without Freedom or Freedom without Peace?Digital Chaos Macgyver ToolkitCompletely Dynamic MenuSQLIte controlsAD FunctionsEXCEL UDFPC / Software Inventory UDFPC / Software Inventory 2GaFrost's Admin Toolkit - My main competitor :)Virtual SystemsVMWAREMicrosoft Virtual PC 2007
sandyd Posted August 8, 2005 Posted August 8, 2005 Don't think you can use wildcards in the filecopy command (i could be wrongm, dont have the help file here). You would have to build a fileliast and copy each one seperately. Could always created a batch file with the "g:\*.DBF", "c:\backups" in it and RunWait that instead. ----[ SandyD ]---
BigDod Posted August 8, 2005 Posted August 8, 2005 G: is a mapped network folderFileCopy("g:\*.DBF", "c:\backups") = nothing copiedIs there a way to do this in Autoit ?See FileFindFirstFile in help files Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
Dickb Posted August 8, 2005 Posted August 8, 2005 What i am trying to do is pretty simple. I want to create a backup application that copies data from a network folder to either another network folder or a local folder. Seems simple. However, I have tried both a mapped drive letter and using the full URL in my scripts to copy from the network to a local folder but no luck.G: is a mapped network folderFileCopy("g:\*.DBF", "c:\backups") = nothing copiedIs there a way to do this in Autoit ?Please advise and thanks!<{POST_SNAPBACK}>I have just tested it and it works with wildcards from a network disk. But... the destination directory must exist, so you have to create it before the FileCopy.
dinodod Posted August 8, 2005 Author Posted August 8, 2005 From the network? Unless I'm doing something wrong, I can't access network folders / drives with autoit. So you can map a network folder and copy files to and from it with an autoit script? Digital Chaos - Life as we know it today.I'm a Think Tank. Problem is, my tank is empty.The Quieter you are, the more you can HearWhich would you choose - Peace without Freedom or Freedom without Peace?Digital Chaos Macgyver ToolkitCompletely Dynamic MenuSQLIte controlsAD FunctionsEXCEL UDFPC / Software Inventory UDFPC / Software Inventory 2GaFrost's Admin Toolkit - My main competitor :)Virtual SystemsVMWAREMicrosoft Virtual PC 2007
BigDod Posted August 8, 2005 Posted August 8, 2005 So you can map a network folder and copy files to and from it with an autoit script?<{POST_SNAPBACK}>You can map anetwork drive using DriveMapAdd Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
Dickb Posted August 8, 2005 Posted August 8, 2005 From the network? Unless I'm doing something wrong, I can't access network folders / drives with autoit. So you can map a network folder and copy files to and from it with an autoit script?<{POST_SNAPBACK}>Indeed. I had a mapped drive (mapped under windows ad P: to a server) and a local directory on the C: disk. I did a FileCopy the same way as you described in the first post and it worked. I copied only files, no subdirectories.
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