Quantcast
Channel: CobianSoft
Viewing all articles
Browse latest Browse all 4242

Cobian Reflector • Re: %ERRORS and other parameters for Events non operational

$
0
0
Good morning and happy new year

I wanted to use the variables that are described in https://www.cobiansoft.com/crHelp/parameters.html when sending the emails reporting errors in the backup.

To test all the variables, I have put them in the body of the message and this has been the result:
- A group that has performed as expected, based on the descriptions of the variables.
- A group of 3 variables, very important, that have worked as literals, so they have not been useful to me.
- One last group, which simply has not worked as expected: they have not returned any value that allows working with them.

Is this the expected behavior, or is it that I have not understood anything at all?

Thanks in advance...



1) Variable substitution works correctly

Code:

%APPDATA:             C:\Users\{{USER}}\AppData\Roaming - Path to the current user's application data directory%APPLICATIONPATH:     C:\Program Files\Cobian Reflector - The path from which the program is being run%CCFORMATDATETIME:    2022-01-04 10:00:01 - Format the current data and time using the option from the Alternative date-time format (Options/Advanced), using the current culture%COMMONAPPDATA:       C:\ProgramData - Path to the common application data directory%COMPUTERNAME:        PICSL-LAB2 - Substituted with the name of the computer%COMPUTERNOSPACENAME: PICSL-LAB2 - Substituted with the name of the computer but any space in the name is eliminated%DATENOTIME:          2022-01-04 - The current date, without the time%DATETIME:            2022-01-04 10:00:01 - The current date and time%DBPATH:              C:\Program Files\Cobian Reflector\DB - The path to the history database subdirectory%DOMAINNAME:          PICSL - The domain of the logged in (actual) user%ERRORS:              2 - Is substituted by the number of errors up to this moment%FNCCFORMATDATETIME:  2022-01-04 10;00;01 - Format the current data and time using the option from the Alternative date-time format (Options/Advanced), but eliminating all the characters that are illegal in a file name. Uses the current culture%FNDATENOTIME:        2022-01-04 - The current date without the time, but can be used directly as a file name%FNDATETIME:          2022-01-04 10;00;01 - The current date and time, but can be used directly as a file name%FNFORMATDATETIME:    2022-01-04 10;00;01 - Format the current data and time using the option from the Alternative date-time format (Options/Advanced), but eliminating all the characters that are illegal in a file name. Uses the invariant culture%FNTIMENODATE:        10:00:01 - The current time without the date, but can be used directly as a file name%FORMATDATETIME:      2022-01-04 10:00:01 - Format the current data and time using the option from the Alternative date-time format (Options/Advanced), using the invariant culture%LISTSPATH:           C:\Program Files\Cobian Reflector\Lists - The path to the lists subdirectory%LOCALAPPDATA:        C:\WINDOWS\system32\config\systemprofile\AppData\Local - Path to the current user's local application data%LOCALSETTINGS:       C:\WINDOWS\system32\config\systemprofile\AppData\Local\CobianSoft\Cobian Reflector - The path to the settings subdirectories%LOGSPATH:            C:\Program Files\Cobian Reflector\Logs - The path to the Logs subdirectory%SETTINGSPATH:        C:\Program Files\Cobian Reflector\Settings - The path to the Settings subdirectory%TIMENODATE:          10:00:01 - The current time, without the date%USERNAME:            SYSTEM - The name of the account of the actual user%USERPROFILE:         C:\WINDOWS\system32\config\systemprofile - Path to the current user's profile directory
2) The original variable appears as a literal

Code:

%DEFAULTBODY:         %DEFAULTBODY - Use a default text for the mail body.%DEFAULTSUBJECT:      %DEFAULTSUBJECT - Use a default string for the mail subject.%DISKLABEL:           %DISKLABEL - The label of some volume that will be substituted by the actual volume letter.
3) These variables appear empty, without any content.

Code:

%DESKTOP:             ¿? - Path to the current user's desktop%DOCUMENTS:           ¿? - Path to the current user's document folder%PERSONAL:            ¿? - Path to the current user's home directory%PICTURES:            ¿? - Path to the current user's picture's folder%TASKNAME:            ¿? - The name of the task that is being executed%TASKNOSPACENAME:     ¿? - The name of the task that is being executed but any space is eliminated%VIDEOS:              ¿? - Path to the current user's video folder
My 2¢ :-)
Hi Luis,

I'm sorry for the miswriting. I ment %ERRORS of course.
But it is not only this parameter that is concerned.
I have not tried them all, but a couple of them like %DATETIME, %USERNAME, %DOCUMENTS, %DISKLABEL, etc. and none of them works...

Reflector DOES start the bat files as usual, but they don't receive the parameter values.
As I wrote, it has probably to do with the way the executable files are registered and that it is not possible to edit.

Ronald

Statistics: Posted by picdev — 04 Jan 2022, 12:39



Viewing all articles
Browse latest Browse all 4242

Trending Articles