
July 11th, 2008, 04:10 PM
|
 |
|
|
Join Date: Jun 2006
Location: Salem, OH
|
|
Quote: | Originally Posted by jayden This is what I have to start but it will not copy
Copy "\\qwqwqw\c$\Program Files\device\under\Engine \\sasasa\c$\Program Files\device\under\Engine \" sasasa.log | To begin with, you have a problem with your syntax. The first parameter is the source, the second parameter is the destination. You have them both combined in a set of quotes making them one single parameter. Finally, there is no third parameter. If you want to log the actions, you'll need to capture the output. Try this.
Code:
Copy "\\qwqwqw\c$\Program Files\device\under\Engine\*.*" "\\sasasa\c$\Program Files\device\under\Engine\" >> sasasa.log
This should work providing that qwqwqw is the local machine.
As a word of caution, any time that you wish to work with a remote computer, you should probably shy away from the command line and look toward WMI. Windows Management Instrumentation is designed for this.
__________________
 Click the image if at any point you don't like my decision.
Scripting problems? Windows questions? Ask the Windows Guru!
|