Saved Bookmarks
| 1. |
Solve : move file from one server to another? |
|
Answer» HELLO every one I need help to UNDERSTAND the below code and what I should to for my requirement I have a batch file which is being called from another script file, with some parameters Let me show you my batch file code ========================= ECHO ON net use P: /DELETE net use Q: /DELETE net use P: %1 /USER:%4 %5 >> "C:\Test\Log Mover\Logs\sharelog.txt" net use Q: %2 >> "C:\Test\Log Mover\Logs\sharelog.txt" attrib +R Q:\*.zip xcopy /Y /C /D:%3 P:\*.zip Q:\ >> "C:\Test\Log Mover\Logs\sharelog.txt" attrib -R Q:\*.zip net use P: /DELETE net use Q: /DELETE ========================== where :: 1 is the src of the logs, or the web server :: 2 is the destination or local NAS :: 3 is a date like 3/02/2008 to go back and check for logs that got missed :: 4 is the username to use for the remote share, or 1 :: 5 is the password to use for the remote share, or 1 My doubt are 1> what is this code doing 2> what does >> mean 3>where did it get /Y and what is xcopy line doing Plz let me know the answers. Quote My doubt are 1> move file from one server to another 2> >> means to add the "output" to a file 3> xcopy /? |
|