Jump to content

DriveMapAdd with FTP?


TPaul81
 Share

Recommended Posts

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?

Link to comment
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

Link to comment
Share on other sites

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]

Link to comment
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]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...