Page 1 of 1 1
Topic Options
#92683 - 2003-08-26 12:35 AM win32admin.dll problemo
Lonkero Administrator Offline
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
#92684 - 2003-08-26 12:37 AM Re: win32admin.dll problemo
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
damn silly me!
it's the good olde silencione.
with:
code:
$=$.ftp("www.jooel.lonkero.org", "the","one","binary",$path, $remotedir, "put", $file) 

it was just fine.
thanks for help guys, really helped!
_________________________
!

download KiXnet

Top
#92685 - 2003-08-26 12:39 AM Re: win32admin.dll problemo
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
you gave us much time to help you didn't you... [Wink]
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#92686 - 2003-08-26 12:56 AM Re: win32admin.dll problemo
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
heh.
well, about the same amount as I gave myself [Wink]

who knows, you boys may have new opportunity some time in the future [Big Grin]

...yeah, right [Razz]
_________________________
!

download KiXnet

Top
#92687 - 2003-08-26 01:01 AM Re: win32admin.dll problemo
Howard Bullock Offline
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
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#92688 - 2003-08-26 02:03 AM Re: win32admin.dll problemo
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
who reads manuals or checks samples [Wink]

still, you are right hoby...
anyway, I read the manual-draft and it could use some more words on some parts.
_________________________
!

download KiXnet

Top
#92689 - 2003-08-26 02:22 AM Re: win32admin.dll problemo
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
It was quickly done. I will incorporate suggestions.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
Page 1 of 1 1


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 857 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.06 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org