%quartus_bin_path%\quartus_cpf -c -q 100KHz -g 3.3 -n p output_files\pistorm.pof bitstream.svf
if %errorlevel% neq 0 GOTO ERRORSVF
%quartus_bin_path%\quartus_cpf -c -q 100KHz -g 3.3 -n p output_files\pistorm.pof bitstream.svf
if %errorlevel% neq 0 GOTO ERRORSVF
if %errorlevel% neq 0 GOTO ERRORSCP
echo y | plink -l pi -pw raspberry -P 22 %piaddress% "cd pistorm && ./nprog.sh"
if %errorlevel% neq 0 GOTO ERRORSCP
echo y | plink -l pi -pw raspberry -P 22 %piaddress% "cd pistorm && ./nprog.sh"