I have used FTP for copying my announcements to a local or network drive, and while it is not difficult, I just hate it when I can't get a program (VAL Manager) to do what it says it will do.
That being said, I followed europe's advice and wrote a script to automate the FTP process. I don't want to steal europe's thunder, but thought I'd share that script file:
TEST.SCR
Code:
user
val
val12345
bin
prompt
mget .wav
quit
(val is the FTP username, and val12345 is the password.)
Being a computer guy from the old DOS days, I wrote a batch file to call the script. It first prompts you to enter the name of a new directory, then it creates that directory, changes to it, launches FTP with the necessary switches to launch the script, copies the announcements to the new directory, then executes the DIR command to list all of the files in the new directory. The batch file and the FTP script are in a directory called VAL, and I create sub-directories based on the date of the back-up (ie, 20080807). That way I have multiple versions of the announcements as they change - in case I ever need to go back to a previous version.
Here is the batch file:
Code:
@echo off
cls
echo.
echo.
set /P tdir=Enter the name for the new directory:
::
:: Make directory
::
echo.
echo The Variable entered is %tdir%
echo.
echo.
echo Making directory %tdir%
MD %tdir%
echo.
echo Changing to directory %tdir%
cd %tdir%
echo.
dir
::
:: Launch the FTP script
::
ftp -n -s:H:\val\test.scr xxx.xxx.xxx.xxx
dir
::
:: Pause and end
::
Pause
cd ..
goto end
:end
The FTP command has two switches: -n, which turns off the automatic login process, and -s: which is the script file. In my case, that script file (test.scr) is stored in H:\val\. That is followed by the IP address to which you want to connect. You will need to change the IP address to the IP of your VAL board.
It is my understanding that the SET /P command is only valid under Windows XP.
I then made a shortcut for this and put it on my desktop. Now I just have to enable filexfer, run the batch file, and disable filexfer. If anyone knows of a way to automate that process, I'd like to know it.....
Feel free to try this, and please share any tweaks you may come up with.
And if you know how to get VAL Manager to do what it's supposed to do, please share that as well....
- Duaneness