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 upload2. Then compare your generated by the bat and you write by hand
CodePudding user response:
The head of the building Lord influence moodCodePudding user response: