Script Sync Help
About Script Sync:
ScriptSync is a conduit that works with scripts,batch files.
When SS starts loads the script "default.txt" and executes each
line during a hotsync session
It is very easy to program it, all you do is to write a text file,you can
even use the editor that inserts commands with tips etc.
|
Reserved words of ScriptSync |
|
| Keywords | Variables |
| LOG GOTO SETPALMDATE PALMUSER FILE_EXIST GET SEND GETSF SENDSF SHELLWAIT DELETE CHAIN WAIT ENDSYNC :LABEL |
{PALMUSER} {USERPATH} {NEWUSER} |
You always use the keywords terminated with a = sign
Like LOG="C:\MYDATA\MYLOG:TXT"
Parameter must be between " " - Chr(34)
"10"
"SMSF" Etc.
When Multiple parameters then - sign between
"SMSF"-"10"-"10"
| SYNTAX | |
| Keyword | Example |
| LOG | LOG="C:\MYDATA\MYLOG.TXT" |
| Creates a log file of what the script engine does | |
| GOTO | GOTO=MYLABEL |
| Goto will jump to a label, always forward, the above example will jump to line it finds :MYLABEL | |
| SETPALMDATE | SETPALMDATE= |
| Will set the palms date to current date and time of the Desktop PC | |
| PALMUSER | PALMUSER="PdaTec" GOTO=DONTSYNC |
| This is the User that is Hotsyncing during the session.Here if the palm user is PDATEC It will jump to label DONTSYNC | |
| FILE_EXIST | FILE_EXIST="TopsyncDemo.PRC" GOTO= DONTINSTALL |
| If the file "TopsyncDemo.PRC" is found then It will jump to label DONTINSTALL | |
| GET | GET="C:\TOPSYNCWIZARD\SF41RDK.prc" |
| Will get a file (SF41RDK.prc) from palm to desktop | |
| SEND | SEND="C:\TOPSYNCWIZARD\INS_DEMO\TopsyncDemo.PRC" |
| Will copy a file from desktop to palm (TopsyncDemo.PRC) | |
| GETSF | The parameters are "C:\TOPSYNCWIZARD\SF_DEMO\TRYSF.DBF" Name of the file "50" <<<< SF Version Can be 30-31-34-35-40-50 For different Sf Versions ; 30=SF 3.1 Standart, 31=SF 3.1 Entrp. ; 34=SF 3.5 Standart, 35=SF 3.5 Entrp. ; 40=SF 4.xx Entrp. , 50=SF 5.xx Entrp. "SMSF" <<< CREATOR ID of the application "00" <<< Version Mayor Of the application ( SF 4.XX,5.XX Needs this,Other versions ignored ) "00" <<< Version Minor Of the application ( SF 4.XX,5.XX Needs this,Other versions ignored ) |
|
GETSF=
"C:\TOPSYNCWIZARD\SF_DEMO\TRYSF.DBF"-"50"-"SMSF"-"00"-"00" Will get the pdb from palm and convert it to DBF |
|
| SENDSF | SENDSF="C:\TOPSYNCWIZARD\SF_DEMO\TRYSF.DBF"-"50"-"SMSF"-"00"-"00" Parameters are the same as GETSF |
| Will convert dbf to pdb and send it after to palm | |
| SHELLWAIT | SHELLWAIT=10="C:\TopSyncWizard\ExternalProgram.exe" |
| we call our external program and wait 10 seconds for it to finish >SHELLWAIT=xx= xx is the seconds to wait | |
| DELETE | DELETE="TopsyncDemo.PRC" |
| Will delete the file from palm ("TopsyncDemo.PRC") | |
| CHAIN | CHAIN="C:\TOPSYNCWIZARD\ChainedScript.txt" |
| will continue the script from the file "C:\TOPSYNCWIZARD\ChainedScript.txt" | |
| WAIT | WAIT="15" |
| Will let the conduit idle,here for 15 seconds WAIT="xx" xx is the seconds to wait | |
| ENDSYNC | ENDSYNC= |
| Will finish the sync operation | |
| :LABEL | :mylabel :dontinstall |
| This is a lable that will be jumped from a GOTO Keyword Must start with : :finishuser | |
| Variables | |
| {PALMUSER} | The name of the connected user as variable Not
as a Keyword they can be used in the script CHAIN="C:\USERS\{PALMUSER}\ChainedScript.txt" will be "C:\USERS\PDATEC\ChainedScript.txt" if the palm users name is PDATEC |
| {USERPATH} | The path of the connected user CHAIN="{USERPATH}\ChainedScript.txt" can be during hotsync CHAIN="C:\PALM\PDATEC\ChainedScript.txt" |
| {NEWUSER} | Will be = to user name if its a new user
>>
PALMUSER={NEWUSER} will return true PALMUSER={NEWUSER} GOTO=FORNEWUSERS will jump to label :FORNEWUSERS if the user is connecting for the first time |
Some notes about the script rules:
PS:
For correct SF conversion the sf runtimes must be present on the desktop.