Jump to content

Copy to web folder


Recommended Posts

is it possible to use autoit to copy a file to a web folder?

<{POST_SNAPBACK}>

Certainly...The question is what method(s) do you have available to access said web folder, and what (additional) tools may be required.

many topics have discussed FTP and other file xfer mechanisms which can be automated via autoit or standard .cmd files. Even the basic ms ftp client has scripting capability....

Simplest path to success:

1) how are you doing it now?

2) Find a command line tool that does the same thing.

3) use autoit to automate the command line tool , incorporating the level

of error checking / prettiness you require.

Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.

Link to comment
Share on other sites

Certainly...The question is what method(s) do you have available to access said web folder, and what (additional) tools may be required.

many topics have discussed FTP and other file xfer mechanisms which can be automated via autoit or standard .cmd files. Even the basic ms ftp client has scripting capability....

Simplest path to success:

1) how are you doing it now?

2) Find a command line tool that does the same thing.

3) use autoit to automate the command line tool , incorporating the level

of error checking / prettiness you require.

<{POST_SNAPBACK}>

1) Currently I am coping the file from Windows Explorer to a connection in My Network Places. There is a user and password that is required to open the connection.

2) This would be great to find. I have done some searching and was unable to find anything. Any suggestions.

3) If I can find a command line utility, I dont thing I will have any issues writing this.

Thanks for the help.

Link to comment
Share on other sites

1) Currently I am coping the file from Windows Explorer to a connection in My Network Places.  There is a user and password that is required to open the connection. 

2) This would be great to find.  I have done some searching and was unable to find anything.  Any suggestions.

3)  If I can find a command line utility, I dont thing I will have any issues writing this.

Thanks for the help.

<{POST_SNAPBACK}>

Assuming you've already connected to the computer with your userID/pass

From DOS:

copy C:\path\to\file.txt \\server\share\path\to\destination.txt

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Link to comment
Share on other sites

that works fine for a file server, but it doesnt work with a web folder.

<{POST_SNAPBACK}>

You can use "Shell.Application" [.namespace($sDest).CopyHere($sSource)]

That (should) work for simple http:\\... (=$sDest). For HTTPS or WebDav you need an extra tool, like NetDrive.exe (freeware), which let you assign a drive letter for the webfolder.

HTH, Reinhard

Edited by ReFran
Link to comment
Share on other sites

  • 2 weeks later...

You can use "Shell.Application" [.namespace($sDest).CopyHere($sSource)]

That (should) work for simple http:\\... (=$sDest). For HTTPS or WebDav you need an extra tool, like NetDrive.exe (freeware), which let you assign a drive letter for the webfolder.

HTH, Reinhard

<{POST_SNAPBACK}>

thanks, NetDrive solved my problem.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...