HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Windows Server 2003
- >
- Re: Robocopy command line in script acquires defau...
Windows Server 2003
1833883
Members
1978
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2007 02:19 AM
03-13-2007 02:19 AM
Robocopy command line in script acquires defaults?
I assembled the following command line for execution in a VBS script:
Call oShell.Run("robocopy.exe " & sCopySource & " " & sCopyDestination & ssday & sopt)
where:
sopt = " /MIR /NP /LOG:e:\BackupCycles\carbon\robolog.txt"
When Robolog executes, I get a mish-mash of inconsistent options, most of which I did not ask for (as quoted from the log):
Options : *.* /S /E /COPY:DAT /PURGE /MIR /NP /R:1000000 /W:30
I understand the R and W, but why the S, E, PURGE ? Are they not redundant or even conflicting?
Call oShell.Run("robocopy.exe " & sCopySource & " " & sCopyDestination & ssday & sopt)
where:
sopt = " /MIR /NP /LOG:e:\BackupCycles\carbon\robolog.txt"
When Robolog executes, I get a mish-mash of inconsistent options, most of which I did not ask for (as quoted from the log):
Options : *.* /S /E /COPY:DAT /PURGE /MIR /NP /R:1000000 /W:30
I understand the R and W, but why the S, E, PURGE ? Are they not redundant or even conflicting?
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2007 03:54 AM
04-18-2007 03:54 AM
Re: Robocopy command line in script acquires defaults?
Have a look through the Robocopy documentation which is very comprehensive and is free download.
I believe the /MIR is for mirror which implies some other options like /COPY:DAT /PURGE /S /E etc so perhaps it is just expanding the options in full for you.
Also, I remember that there is a switch for Robocopy that will save settings to registry creating a 'new' default. Perhaps it is reading the other settings /R: and /W: from whats in the registry on your PC.
I believe the /MIR is for mirror which implies some other options like /COPY:DAT /PURGE /S /E etc so perhaps it is just expanding the options in full for you.
Also, I remember that there is a switch for Robocopy that will save settings to registry creating a 'new' default. Perhaps it is reading the other settings /R: and /W: from whats in the registry on your PC.
The sheep tell me what I need to know
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2007 08:57 PM
04-27-2007 08:57 PM
Re: Robocopy command line in script acquires defaults?
Those retry and wait values are default for Robocopy if they are not specified explicitly in command line. I've had a number of copies still going when I've come back into the office for this reason... *doh*
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP