GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- HPE BladeSystem
- >
- Legacy
- >
- Windows Server 2003
- >
- Re: Robocopy command line in script acquires defau...
Windows Server 2003
1857306
Members
3815
Online
110372
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp Software
Knowledge Base
Discussions
Forums
Discussions
back
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
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 2026 Hewlett Packard Enterprise Development LP