Home > database >  PB through the console send attachments of small problem
PB through the console send attachments of small problem

Time:09-20

The code below is very simple

String ls_datapath
String ls_ftpdataname
String ls_dataname
The integer li_bat

Ls_datapath=sle_1. Text
Ls_dataname=sle_2. Text
Ls_ftpdataname=String (Today (), "yyyy - mm - dd) + ls_dataname passed//file name
Li_bat=FileOpen (' 333. Bat, lineMode! The Write! , LockWrite! The Replace!

FileWrite (li_bat, 'FTP')
FileWrite (li_bat, 'open 192.168.1.118')
FileWrite (li_bat, 'administrator')//account password to the
FileWrite (li_bat, '452352329 qq')
FileWrite (ls_datapath li_bat, 'put' + + 'upload \' + ls_ftpdataname)
FileWrite (li_bat, 'bye')
FileWrite (li_bat, 'exit')
FileClose (li_bat)
The Run (' 333. Bat, Minimized!)

Messagebox (" message ", "data report")


OK code so simple
But is the past not
Don't know where there is error
Hope great god correct...

CodePudding user response:

1. Direct write by hand a bat to try whether you can upload

2. Then compare your generated by the bat and you write by hand

CodePudding user response:

The head of the building Lord influence mood

CodePudding user response:

refer to the second floor lzp_lrp response:
the head of the building Lord influence mood


Hand over a
Completely no problem
But not to write in a batch file

CodePudding user response:

Generated after the BAT, DOS run the BAT and see for yourself

CodePudding user response:

refer to the second floor lzp_lrp response:
the head of the building Lord influence mood

See the later, saved, breakfast,
  • Related