Can you give me an example of a write statement?



________________________________
From: Mikeb <[email protected]>
To: RBASE-L Mailing List <[email protected]>
Sent: Sun, February 27, 2011 8:11:27 AM
Subject: [RBASE-L] - Re: Passing a variable from Rbase

Simple enough then.  Create your ScripName.ftp file dynamically in RBase and 
write the command lines as needed, collecting whatever RBase variable is 
needed into a write statement.
When complete, then launch as you do now.


----- Original Message ----- 
From: "TOM HART" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Saturday, February 26, 2011 8:20 PM
Subject: [RBASE-L] - Re: Passing a variable from Rbase


> Here is an example of the script
> To run from Rbase I    launch scriptname.ftp
> the help files say you can create variables with the $
> like  $ftpname="ftp.myftp.com" and could do this
> OPENHOST($ftpname,etc,)
> #
> # More script samples at http://www.ScriptFTP.com/examples.php
> # Online scripting guide at http://www.ScriptFTP.com/reference.php
> # Free technical support at http://www.ScriptFTP.com/contact.php
> #
> # Remember to save the changes before clicking run on the ScriptFTP 
> window.
>
> # Connect to FTP server
> OPENHOST("ftp.myftp.com","myuserid","mypassword")
>
> # Download the new or modified asc files from the FTP site
> SYNC("C:\myfolder","/mainfolder/ftpfolder",DOWNLOAD,"*.asc")
>
> # Transfer finished, close the connection
> CLOSEHOST
>
>
>
>
>
>
> ________________________________
> From: Mikeb <[email protected]>
> To: RBASE-L Mailing List <[email protected]>
> Sent: Sat, February 26, 2011 5:40:33 PM
> Subject: [RBASE-L] - Re: Passing a variable from Rbase
>
> OK.. I get that there are command scripts the are executed toward the FTP
> program, but:
>
> What is the environment in which the commands (OPENHOST / PUTFILE) are 
> run?
> Command Prompt? Or does the FTP program host its own scripting environment
> like the R> in RBase.
>
> ----- Original Message ----- 
> From: "TOM HART" <[email protected]>
> To: "RBASE-L Mailing List" <[email protected]>
> Sent: Saturday, February 26, 2011 3:39 PM
> Subject: [RBASE-L] - Re: Passing a variable from Rbase
>
>
>> here is an example
>>
>> $host="ftp.myhost.com"
>> $user="myuser"
>> $password="123456"
>>
>> OPENHOST($host,$user,$password)
>> PUTFILE("*.*",SUBDIRS)
>>
>>
>>
>> ________________________________
>> From: Mikeb <[email protected]>
>> To: RBASE-L Mailing List <[email protected]>
>> Sent: Sat, February 26, 2011 1:48:40 PM
>> Subject: [RBASE-L] - Re: Passing a variable from Rbase
>>
>> how does the ftp program get the variables? Command Line?
>>
>>
>> ----- Original Message ----- From: "TOM HART" <[email protected]>
>> To: "RBASE-L Mailing List" <[email protected]>
>> Sent: Saturday, February 26, 2011 1:14 PM
>> Subject: [RBASE-L] - Passing a variable from Rbase
>>
>>
>>> Can a variable be passed from Rbase to another program that can use
>>> variables.
>>> EG
>>> I found an FTP program that I can integrate into Rbase,  this program 
>>> can
>>> use
>>> variables
>>>
>>> In Rbase
>>> set variable in Rbase-  set var vFTPHost text = 'My host name'
>>>
>>> I know in Rbase the variable will be .vFTPHost but in the FTP program a
>>>variable
>>> is defined with $variablename
>>> Can this be done
>>>
>>> Tom Hart
>>> 

Reply via email to