|
File/Folder Path Variables |
|
|
PeerSync Help > Interface Features > Selection Tree > PeerSync > PeerSync Job Settings > Folder Selection > Other Features > File/Folder Path Variables |
Variable file/folder paths can be used to create:
| 1. | Dynamic archives for yearly, monthly, weekly and/or daily backups |
| 2. | Dynamic synchronization based on date |
| 3. | Dynamic synchronization based on logged on user or machine name |
| 4. | Dynamic synchronization based on personal folders or other variables read in from the registry |
| 5. | Log file storage, manipulation and organization |
| 6. | Administrative report file storage, manipulation and organization |
| 7. | Deleted file storage, manipulation and organization |
File/Folder Path Variables
Depending upon the argument used, these folders will be dated, named after the currently logged user, named for the PC from which synchronization was launched, or based on a pre-determined variable stored out and read in from the registry. The following variables can be used in any folder path Job setting available through the Profiler: |
|
Date |
%Date% |
Time |
%Time% |
Date/Time |
%DateTime% |
Minute |
%Minute% |
Hour |
%Hour% |
Day |
%Day% |
Year |
%Year% |
Month/Year |
%MonthYear% |
Minute (all formats) |
%n, nn% |
Hour (all formats) |
%h, hh% |
Day (all formats) |
%d, dd, ddd, dddd, ddddd, dddddd% |
Month (all formats) |
%m, mm, mmm, mmmm, mmmm% |
Year (all formats) |
%y, yy% |
Custom Peer Variables |
|
Logged On User Name |
%UserName% |
Computer Name |
%ComputerName% |
Job Name |
%JobName% |
Source Folder Path |
%SourcePath% |
Target Folder Path |
%TargetPath% |
Deletion Folder Path |
%DeletePath% |
Report File Path |
%ReportPath% |
Windows Variables |
|
Windows Directory |
%WinDir% |
Windows |
%Windows% (also %SystemRoot%) |
System Temp Path |
%Temp% |
System Temp Path |
%Tmp% |
System Drive Letter |
%SystemDrive% |
System 32 (WIN 9x/NT/00) |
%System32% |
Note: You can also use any variables that are located in the registry under HKEY_CURRENT_USER. For example:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
HKEY_CURRENT_USER\Environment (used by default default)
HKEY_CURRENT_USER\Volatile Environment (used by default)
The HKEY_CURRENT_USERS locations can be modified in the PSDef.cfg file as follows:
[Misc Options]
RegVarStr=\Environment;\Volatile Environment;
In addition, the %USERPROFILE% Environmental Variable is now also supported.
Note for PeerSync Jobs linked to PeerLock: PeerLock supports the usage of Windows System and Registry variables in the Source and Target fields (i.e. %UserName%, %ComputerName%). Custom PeerSync variables such as %JobName% are currently not supported and will not work in PeerLock.