#92683 - 2003-08-26 12:35 AM
win32admin.dll problemo
Lonkero
KiX Master Guru
Registered: 2001-06-05
Posts: 22346
Loc: OK
not a real problem but annoying. I have simple UDF:function upload ($path ,$file ,$remotedir )
dim $
$ =createobject ("win32admin" )
? "not yet"
$.ftp ("www.jooel.lonkero.org" , "the" ,"one" ,"binary" ,$path , $remotedir , "put" , $file )
? "not yet"
exit @error
endfunction
now, it displays "1" in the middle of "not yet" lines. how come?
_________________________
! download
KiXnet
Top
#92687 - 2003-08-26 01:01 AM
Re: win32admin.dll problemo
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
That is why there is sample code:; Method FTP($RemoteServer, $Account, $Password, $Mode, $LocalDir, $RemoteDir, $Action, $Filename)
; $Mode -> [ascii|binary]
; $Action -> [get|put|size]
;
; Performs the specified FTP operation.
; Be sure to double the "@" in the password or email address if used for anonymous logons.
$RemoteServer = 'server.xyz.com'
$Account = 'user1'
$Password = 'password'
$Mode = 'ascii'
$LocalDir = 'c:\data'
$RemoteDir = ''
$Action = 'get'
$Filename = 'file.txt'
if $Win32Admin.FTP ( $RemoteServer , $Account , $Password , $Mode , $LocalDir , $RemoteDir , $Action , $Filename )
? ? "FTP successful"
?
else
? ? "FTP Failed! @serror"
?
endif
Top
#92689 - 2003-08-26 02:22 AM
Re: win32admin.dll problemo
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
It was quickly done. I will incorporate suggestions.
Top
Moderator: Shawn , ShaneEP , Ruud van Velsen , Arend_ , Jochen , Radimus , Glenn Barnas , Allen , Mart
0 registered
and 857 anonymous users online.