fredmartinmaine
IS-IT--Management
This robocopy command:
robocopy "H:" "T:\My Drive" /E /XD "*$RECYCLE.BIN*" /XF "*thumbs.db*" /V /LOG:"H:\robocopy.txt"
Works fine from a DOS command line, but in a batch file that's run from the command line, produces this:
Source - I:\IT Files\Projects\My Drive\ H:\MX T:\My Drive Dest - I:\E \XD
The I: drive and path are the current directory. I don't know why it's added those, and I don't know what's generating the   characters. But, it calls them out as invalid parameters and prevents robocopy from running.
Is there some special syntax needed for running from a batch file?
Fred
robocopy "H:" "T:\My Drive" /E /XD "*$RECYCLE.BIN*" /XF "*thumbs.db*" /V /LOG:"H:\robocopy.txt"
Works fine from a DOS command line, but in a batch file that's run from the command line, produces this:
Source - I:\IT Files\Projects\My Drive\ H:\MX T:\My Drive Dest - I:\E \XD
The I: drive and path are the current directory. I don't know why it's added those, and I don't know what's generating the   characters. But, it calls them out as invalid parameters and prevents robocopy from running.
Is there some special syntax needed for running from a batch file?
Fred