what is the meaning of |1|0 in this backup project ?

Get help with using AutoHotkey and its commands and hotkeys
fun_9990
Posts: 44
Joined: 06 Oct 2017, 11:45

what is the meaning of |1|0 in this backup project ?

21 Oct 2017, 08:11

what is the meaning of |1|0 in this backup project ?
here , https://autohotkey.com/board/topic/2952 ... up-script/

Optional Backup Info file example:
C:\Another Source\*.*|D:\Another Destination\|1|0
C:\Another Source\*.*|D:\Another Destination\|0|0
C:\Another Source\*.*|D:\Another Destination\|1|1
C:\Another Source\*.*|D:\Another Destination\|0|0
C:\Another Source\*.*|D:\Another Destination\|1|0
C:\Another Source\*.*|D:\Another Destination\|1|1

we see this parameter

what is the meaning of 0|0 or 0|1 and etc...
User avatar
jeeswg
Posts: 3296
Joined: 19 Dec 2016, 01:58
Location: UK

Re: what is the meaning of |1|0 in this backup project ?

21 Oct 2017, 13:57

If you do a search for 'Assign paths/option(s) to variables', it parses the string delimited by pipe characters, and the variables generated appear to be:
CopySourcePattern|CopyDest|CopySubFlag|CpEmpty|n_prep|n_appp

It appears that:
- CopySubFlag determines whether files in subfolders of CopySourcePattern are backed up.
- CpEmpty determines whether subfolders are created or not. Possibly this relates to creating empty folders.

But I would be cautious and double-check things before proceeding with anything. Possibly even you should back up your data before testing this backup script.

One thing that made things less clear is that the text you are referring to appears to be stored in a variable called BackupInfo, and that variable is parsed based on ? before it is parsed based on |. So you don't ever see a line like:
Loop, Parse, BackupInfo, |
but instead:
Loop, Parse, BackupInfo, ? and Loop, Parse, A_LoopField, |

[EDIT:] See here for more info on how to use the script:
How to use Generic Timed File Backup Script for several locations - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=40453

Return to “Ask For Help”

Who is online

Users browsing this forum: amitmalik99, Bing [Bot], Manlikezab12 and 41 guests