Sign in to follow this  
Followers 0
dinodod

Network support

7 posts in this topic

:whistle:

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

Share this post


Link to post
Share on other sites



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 ]---

Share this post


Link to post
Share on other sites

G: is a mapped network folder

FileCopy("g:\*.DBF", "c:\backups") = nothing copied

Is there a way to do this in Autoit ?

See FileFindFirstFile in help files



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

:whistle:

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!

<{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.

Share this post


Link to post
Share on other sites

:whistle:

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

Share this post


Link to post
Share on other sites

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 :whistle:


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

:whistle:

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0