home *** CD-ROM | disk | FTP | other *** search
- clear
- set scroll on
- set alarm on
- set atime 3
- set port com1
- set baudrate 9600
- set databits 7
- set stopbits 1
- set parity even
- set flowctrl off
- set ascii blankex off
- set ascii echo off
- set ascii charpace 10
- set ascii linepace 5
- set ascii up_cr cr
- set ascii up_lf strip
- rflush
- kflush
- when "*FUS:" "^M"
- ;
- ;
- ;
- log open "aeg_upl.log"
- ;
- ;
- ;
- message "Dateiname: "
- get s0
- isfile s0
- if not success
- assign s9 " nicht gefunden..."
- goto end
- endif
- message "^M"
- ;
- ;
- ;
- transmit "^M"
- waitfor "FUS:" 5
- if not waitfor
- assign s9 "SPS-Timeout..."
- goto end
- endif
- ;
- ;
- ;
- transmit "HE^M"
- waitfor "FUS:" 5
- if not waitfor
- assign s9 "SPS-Timeout HE..."
- goto end
- endif
- ;
- ;
- ;
- transmit "SBN^M"
- waitfor "PROGRAMM LOESCHEN (J)" 5
- if not waitfor
- assign s9 "SPS-Timeout SBN..."
- goto end
- endif
- transmit "J^M"
- waitfor "FUS:" 20
- if not waitfor
- assign s9 "SPS-Timeout J..."
- goto end
- endif
- ;
- ;
- ;
- transmit "M^M"
- waitfor "ADR:" 5
- if not waitfor
- assign s9 "SPS-Timeout M..."
- goto end
- endif
- ;
- transmit "1^M"
- pause 1
- ;
- ;
- ;
- sendfile ascii s0
- ;
- ;
- ;
- transmit "E^M"
- waitfor "FUS:" 5
- if not waitfor
- assign s9 "SPS-Timeout E..."
- goto end
- endif
- ;
- transmit "PRZE^M"
- waitfor "FUS:" 5
- if not waitfor
- assign s9 "SPS-Timeout PRZE..."
- goto end
- endif
- ;
- ;
- ;
- assign s9 "Datei wurde an SPS gesendet..."
- ;
- ;
- ;
- end:
- cwhen
- message s9
- log close
- exit
- ;
- ;
- ;