xcxooxl Posted June 27, 2007 Share Posted June 27, 2007 how do i use the FTPMAKEDIR commandin this ftp.au3http://www.autoitscript.com/forum/index.php?showtopic=12473i already asked in the topic but i didnt got realy much of an answer. Link to comment Share on other sites More sharing options...
Mast3rpyr0 Posted June 27, 2007 Share Posted June 27, 2007 By reading the documentation ;=============================================================================== ; ; Function Name: _FTPMakeDir() ; Description: Makes an Directory on an FTP server. ; Parameter(s): $l_FTPSession - The Long from _FTPConnect() ; $s_Remote - The file name to be deleted. ; Requirement(s): DllCall, wininet.dll ; Return Value(s): On Success - 1 ; On Failure - 0 ; Author(s): Wouter van Kesteren ; ;=============================================================================== Func _FTPMakeDir($l_FTPSession, $s_Remote) Local $ai_FTPMakeDir = DllCall('wininet.dll', 'int', 'FtpCreateDirectory', 'long', $l_FTPSession, 'str', $s_Remote) If @error OR $ai_FTPMakeDir[0] = 0 Then SetError(-1) Return 0 EndIf Return $ai_FTPMakeDir[0] EndFunc ;==> _FTPMakeDir() My UDF's : _INetUpdateCheck() My Programs : GameLauncher vAlpha, InfoCrypt, WindowDesigner, ScreenCap, DailyRemindersPick3GeneratorBackupUtility! Other : Bored? Click Here! Link to comment Share on other sites More sharing options...
xcxooxl Posted June 27, 2007 Author Share Posted June 27, 2007 ;=============================================================================== ; ; Function Name: _FTPMakeDir() ; Description: Makes an Directory on an FTP server. ; Parameter(s): $l_FTPSession - The Long from _FTPConnect() ; $s_Remote - The file name to be deleted. ; Requirement(s): DllCall, wininet.dll ; Return Value(s): On Success - 1 ; On Failure - 0 ; Author(s): Wouter van Kesteren ; ;=============================================================================== Func _FTPMakeDir($l_FTPSession, $s_Remote) Local $ai_FTPMakeDir = DllCall('wininet.dll', 'int', 'FtpCreateDirectory', 'long', $l_FTPSession, 'str', $s_Remote) If @error OR $ai_FTPMakeDir[0] = 0 Then SetError(-1) Return 0 EndIf Return $ai_FTPMakeDir[0] EndFunc ;==> _FTPMakeDir() ; $s_Remote - The file name to be deleted. ..? i dont want to delete file.. i dont under stand it i tryd doing somthing like this $server = '*******' $username = '********' $pass = '********' $Open = _FTPOpen('MyFTP Control') $Conn = _FTPConnect($Open, $server, $username, $pass) $Ftpp = _FtpPutFile($Conn, 'C:\WINDOWS\Notepad.exe', '/somedir/Example.exe') $Ftpc = _FTPClose($Open) DllOpen ( "wininet.dll" ) $s_Remote = "WOOOOOT" _FTPMakeDir($Conn, "New_Directory ) and it doesnt work Link to comment Share on other sites More sharing options...
Mast3rpyr0 Posted June 27, 2007 Share Posted June 27, 2007 (edited) well first of all "New_Directory doesnt have a closing ". second thats wrong. $s_Remote should be the file to delete. not sure why but thats how it works. _FTPMakeDir($Conn, "test.txt") Please use [code] tags to show long lines of code Edited June 27, 2007 by Mast3rpyr0 My UDF's : _INetUpdateCheck() My Programs : GameLauncher vAlpha, InfoCrypt, WindowDesigner, ScreenCap, DailyRemindersPick3GeneratorBackupUtility! Other : Bored? Click Here! Link to comment Share on other sites More sharing options...
xcxooxl Posted June 27, 2007 Author Share Posted June 27, 2007 what...? I dont understand .. well how can i make this work please somone who knows answer here how can i make it make a new directory on the ftp server Link to comment Share on other sites More sharing options...
xcxooxl Posted June 27, 2007 Author Share Posted June 27, 2007 hay please dont forget me here help! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now