Scripting

Eveyone telluse to use scripting

and thant not the problem

people leke me have a good i deaon how things work but cant seem to work out the code part of things

like you get programers and you get people that use programs like delphi to create programs

so i am a uset that uses delphi dont seem to get the concept of coading

now the main reason for this window is so that people can start putting examples of diffrent ways to use code to do diffrent kinds of things
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
here is an Example how to save a file with the file name of the lisacnce on the board and time
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
/system export file=([/system license get software-id] . “" .
[:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6] . "
” .
[:pick [/system clock get time] 0 2] . [:pick [/system clock get time] 3 5] . [:pick [/system clock get time] 6 8])
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
your out put will look like
2ZVW-LTT_2009mar24_153716.rsc


and if you wanted to change th month part of the name you would addin the following in front ofthe last code
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

:local month [:pick [/system clock get date] 0 3]; :local monthNum
“00”; :if (month = “jan”) do={
:set monthNum “01”;
} else={
:if (month = “feb”) do={
:set monthNum “02”;
} else={
:if (month = “mar”) do={
:set monthNum “03”;
} else={
:if (month = “apr”) do={
:set monthNum “04”;
} else={
:if (month = “may”) do={
:set monthNum “05”;
} else={
:if (month = “jun”) do={
:set monthNum “06”;
} else={
:if (month = “jul”) do={
:set monthNum “07”;
} else={
:if (month = “aug”) do={
:set monthNum “08”;
} else={
:if (month = “sep”) do={
:set monthNum “09”;
} else={
:if (month = “oct”) do={
:set monthNum “10”;
} else={
:if (month = “nov”) do={
:set monthNum “11”;
} else={
:if (month = “dec”) do={
:set monthNum “12”;
}}

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
so hoping other people will use this to help others as many people dont get the code part