PSS5000/TEMA/803046/05 123 of 152
PSS 5000 – Technical Manual
B Upload Help Tools
echo quit>> tmpupl.txt
ftp s:tmpupl.txt %ipaddr%
echo****************************************************
echo *** waiting for PSS 5000 boot program ***
echo****************************************************
choice /n /tn,15>nul
:upl_now
echo****************************************************
echo *** begin download + upload ***
echo****************************************************
echo %up5k_user%> tmpupl.txt
echo %up5k_pass%>> tmpupl.txt
echo cd /pss_mem/1/prg>> tmpupl.txt
if "%dwlname%" == "skip dwl" goto :skip_dwl
echo get %dwlname%>> tmpupl.txt
:skip_dwl
echo put %uplname%>> tmpupl.txt
echo dir>> tmpupl.txt
echo quit>> tmpupl.txt
ftp s:tmpupl.txt %ipaddr%
echo****************************************************
echo *** complete ***
echo****************************************************
goto :end
:help
echo.
echo Syntax: upload5k.bat user password IP address command
arguments
echo.
echo user : <Username>
echo.
echo password : <Password>
echo.
echo IP address: <PSS 5000's IP address>
echo.
echo command : dir or upload
echo.
echo dir : Make directory listing of PSS 5000's
/pss_mem/1/prg and quit
echo No arguments
echo.
echo upload : Upload a new program to PSS 5000
echo Arguments : old prg new prg skip
echo old prg : Name of the old binary program to save
(e.g. 40191100.bin).
echo If no program should be saved, then specify
skip dwl
echo new prg: Name of the new binary program to upload
(e.g. 40199001.bin)