T
Tony G
These tips might help someone trying to use the command-line, and it's an FYI
to Microsoft as well.
The command to create a folder pair is :
synctoy -d(left=, right=, name=,operation=Synchronize|Echo|Contribute,
[check=yes|no], excluded=,included=)
That's a copy/paste from the help file. Note that there is a space before
"right=", but not before "operation=", etc. The command-line is not
forgiving of spaces. Spaces must Not be present in the command-line or the
command fails.
The open parenthesis must also immediately follow the -d. The trailing
close parenthesis is also required, but no error is displayed and the command
will look like it's successful even if it fails. See below.
As expected, use quotes around paths with spaces:
(left="c:\my source",right="d:\my target"...)
Failure to do so will result in a transparent error as indicated above.
The 'check' parameter _must_ by 'yes' if you want to check files. If the
value is 'y' or anything else the value is not set.
Microsoft: "synctoy -uBadProfile" causes a GUI dialog to launch to display
the error. This wouldn't be the preferred behavior in a lot of cases. A
dialog also displays if the right/target path isn't valid. Can you add flags
for sending errors to GUI, Log, or STDOUT? The error does not hit the .log
file, but there are a lot of files like this: SyncToyAppRuntime-0n.DAT.
Hint: These binary files begin with "MSQM".
When the commandline with -d fails the following error is saved to the log:
Exception handled:Length cannot be less than zero.
Parameter name: length
That error seems to be used for a number of errors, making problems
difficult to diagnose. One example is if the trailing parenthesis is missing.
Another is when quotes are missing when a path has spaces. I understand
what's happening, I'm just commenting on the silent failure and non-specific
error message.
Final question: You can't change a profile from the command line, you must
delete and recreate it with a -u and -d operation. Does this do anything to
mess up the synchronicity of the source and target?
HTH
(Say, how much do people at Microsoft get paid to do QA? LOL)
to Microsoft as well.
The command to create a folder pair is :
synctoy -d(left=, right=, name=,operation=Synchronize|Echo|Contribute,
[check=yes|no], excluded=,included=)
That's a copy/paste from the help file. Note that there is a space before
"right=", but not before "operation=", etc. The command-line is not
forgiving of spaces. Spaces must Not be present in the command-line or the
command fails.
The open parenthesis must also immediately follow the -d. The trailing
close parenthesis is also required, but no error is displayed and the command
will look like it's successful even if it fails. See below.
As expected, use quotes around paths with spaces:
(left="c:\my source",right="d:\my target"...)
Failure to do so will result in a transparent error as indicated above.
The 'check' parameter _must_ by 'yes' if you want to check files. If the
value is 'y' or anything else the value is not set.
Microsoft: "synctoy -uBadProfile" causes a GUI dialog to launch to display
the error. This wouldn't be the preferred behavior in a lot of cases. A
dialog also displays if the right/target path isn't valid. Can you add flags
for sending errors to GUI, Log, or STDOUT? The error does not hit the .log
file, but there are a lot of files like this: SyncToyAppRuntime-0n.DAT.
Hint: These binary files begin with "MSQM".

When the commandline with -d fails the following error is saved to the log:
Exception handled:Length cannot be less than zero.
Parameter name: length
That error seems to be used for a number of errors, making problems
difficult to diagnose. One example is if the trailing parenthesis is missing.
Another is when quotes are missing when a path has spaces. I understand
what's happening, I'm just commenting on the silent failure and non-specific
error message.
Final question: You can't change a profile from the command line, you must
delete and recreate it with a -u and -d operation. Does this do anything to
mess up the synchronicity of the source and target?
HTH
(Say, how much do people at Microsoft get paid to do QA? LOL)