Micah C Posted March 19, 2009 Share Posted March 19, 2009 Hello, I have an AutoIT script that copy's a directory to another directory on that computer. I would like to have this script run remotely on another computer with psexec. Here is what I need help with. How can I have a directory copied from that computer to my computer \\Ower\c$\Auto Hack\File_Dump\ AutoIT Script DirCopy(@MyDocumentsDir, "\\Owner\c$\Auto Hack\File_Dump\", 1) Psexec psexec -c \\Computer1 "AUTOITSCRIPT.exe" So far the only thing that I have accomplished is copying a non functional AutoIt script to the remote machine. Any help is appreciated. Micah C Quote Link to comment Share on other sites More sharing options...
Micah C Posted March 20, 2009 Author Share Posted March 20, 2009 No one? Hmm.. Do I need to re word the question or is what im trying to accomplish not possible? Quote Link to comment Share on other sites More sharing options...
shawty Posted March 21, 2009 Share Posted March 21, 2009 Use psexec to call Xcopy if it's a windows machine. you might need to check the params for xcopy to get it exact. But somthing like xcopy drive:\\hckedfiles \\sharemachine\share\files or so on should do the trick. Cheers Shawty Quote Link to comment Share on other sites More sharing options...
freeb Posted March 21, 2009 Share Posted March 21, 2009 Could you not just do something like copy \\targetpc\C$\blaa \\yourpc\C$\dump\ on your system. Quote Link to comment Share on other sites More sharing options...
shawty Posted March 21, 2009 Share Posted March 21, 2009 You could if you where sure the path & share exsisted. Remember however, most savy sysadmins will disable the default C$ and other x$ shares for security reasons. That said, anything you can run from a command line on your own box, can in theory be run on the remote PC using psexec, providing A) the user account your specifying has permission on the remote to do this B ) The app/CLI program exists on the remote PC C) the share exists Cheers Shawty Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.