WiseCopyUser reference manual |
|
WiseCopy can be run from the command line. This means that you can run WiseCopy from within a batch command (a file with .bat extension), for example, or that you can write some software program that, at a point, launches WiseCopy, waiting for it to have finished running or not. This point is not further detailed, as this manual illustrates the features of WiseCopy, and not the Windows API interface.
Running WiseCopy from the command line requires the previous definition of a procedure. Therefore, you can run WiseCopy from the command line if and only if WiseCopy is correctly registered.
The utility of an unattended execution of WiseCopy is obvious: you can activate such a procedure at a programmed time, maybe at night or when the workload of your system or your network is small , thus implementing a very practical backup of an entire disk or of selected folders.
Or, you can think to write your own software program that manipulate certain files, and at the end, it launches WiseCopy to copy the files created or updated. There are endless possibilities.
The command line:
"C:\AFM Applications\WiseCopy\WiseCopy.exe" d:\Myfolder\Step.twc -f -q
shall run WiseCopy (note the double quotes, they are necessary in this case, because the file pathname contains white spaces), executing the procedure d:\ MyFolder\Step.twc.
The -f indicates that the copy is carried forward, ie from source to destination for each step of the procedure. When the procedure is completed WiseCopy ends (-q), allowing the command file to continue with the next command or the launching program to continue.
The command line
"C:\AFM Applications\WiseCopy\WiseCopy.exe" d:\Myfolder\lineup.twc -X -q
shall run WiseCopy executing the procedure d:\Myfolder\lineup.twc, which is performed in both directions (-X), after which WiseCopy terminates.
The command line must contain, in order:
The control parameters are preceded by '-', and are case sensitive.
In case of conflict (ie, if you indicate more than one parameter of this class), the last parameter found on the command line is used. Therefore:
"C:\AFM Applications\WiseCopy\WiseCopy.exe" d:\Myfolder\lineup.twc -X -f -b
is the same as
"C:\AFM Applications\WiseCopy\WiseCopy.exe" d:\Myfolder\lineup.twc -b
The command line
"C:\AFM Applications\WiseCopy\WiseCopy.exe" d:\Myfolder\lineup.twc -> -X
is the same as
"C:\AFM Applications\WiseCopy\WiseCopy.exe" d:\Myfolder\lineup.twc -X
If you specify both -q and -Q, the last parameter on the command line takes the precedence. No error is raised.