Orao Posted April 18, 2011 Share Posted April 18, 2011 How can i copy a file or folder to a shared network folder on another PC in my network(WORKGROUP)?For example copy a file to shared folder "\\pc101\admin"Also is it possible to copy to an Administrator share location ex. "\\pc101\c$" ,for this i would need to enter a username and password, can autoit do this automatically;1. Enter username and password to connect to the pc2. copy files to the destination foler of that pcThank you for Help Link to comment Share on other sites More sharing options...
Orao Posted April 18, 2011 Author Share Posted April 18, 2011 Anybody...? Is it not possible to copy a file to a network PC with autoit?? Link to comment Share on other sites More sharing options...
hannes08 Posted April 18, 2011 Share Posted April 18, 2011 Hi Orao, sure you can copy a file with filecopy(). If you don't want to use filecopy you could automate the copy process via a DOS copy. e.g. Run("copy file1.txt \\server\share\file1.cmd") If you'd like to use authentication first you could use Run() with a combination of "net use \\server\share <password> /user:<user>". Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler] Link to comment Share on other sites More sharing options...
Orao Posted April 18, 2011 Author Share Posted April 18, 2011 Thanks a lot! I will try that Link to comment Share on other sites More sharing options...
goldenix Posted April 18, 2011 Share Posted April 18, 2011 (edited) try mapping that network drive first open some random folder, ->Tools->Map network drive. Then go to my computer & there you will see new drive with the letter you selected. And now u can use say filecopy(a.txt, z:\a.txt) Edited April 18, 2011 by goldenix My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list] 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