Sign in to follow this  
Followers 0
TPaul81

DriveMapAdd with FTP?

6 posts in this topic

Im trying to use DriveMapAdd for an ftp folder but it doesnt seem to work...

Opt("TrayIconHide", 1)

GUICreate("CretaForce WebDrive", 480, 240)
$username_cf = GUICtrlCreateInput("", 280, 10, 180, 20)
$password_cf = GUICtrlCreateInput("", 280, 40, 180, 20)
$connect_cf = GUICtrlCreateButton("Connect!", 180, 70, 80, 20)

GUISetState()

Func Connect_Drive()
    $username_= GUICtrlRead($username_cf)
    $password_= GUICtrlRead($password_cf)
    DriveMapAdd("X:", "ftp://server3.server.com", 8, $username_, $password_)
    EndFunc

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            DriveMapDel("X:")
            Exit
        Case $msg = $connect_cf
            Call("Connect_Drive")
        EndSelect
    WEnd

Anyone has any ideas?

Share this post


Link to post
Share on other sites



I think that's not possible. But you can use NetDrive


*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites

I think that's not possible. But you can use NetDrive

Looks like you need to log in to download NetDrive. That doesn't help much without an account.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

I came across this in a google search:

http://www.astahost.com/info.php/map-ftp-s...rive_t7292.html

It appears to use CuteFTP as an interpreter... may be worth checking out

edit: never mind, CuteFTP is just his name for the hostfile entry... may still be worth a look though

Edited by SpookMeister

[u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote]

Share this post


Link to post
Share on other sites

[u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0