Jump to content
Sign in to follow this  

sending more than one file

Recommended Posts


hi, i'm trying to send a range of files that have been dragged and dropped into an guictrlcreateinput box, and are seperated by a '|', however the _FtpPutFile command seems to only want to send one, can any1 help?, heres my code

#include <GuiConstants.au3>
$server = Regread("HKEY_LOCAL_MACHINE\SOFTWARE\xbox_comunicator\", "IP")
$username = regread("HKEY_LOCAL_MACHINE\SOFTWARE\xbox_comunicator\", "username")
$pass = regread("HKEY_LOCAL_MACHINE\SOFTWARE\xbox_comunicator\", "pass")
$driveletter = RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\xbox_comunicator\", "drive letter defult")
GuiCreate("Welcome to Sam's xbox comunicator", 803, 232, -1, -1, -1, $WS_EX_ACCEPTFILES)
$Group_1 = GuiCtrlCreateGroup("Music", 10, 50, 180, 170)
$Group_2 = GuiCtrlCreateGroup("Pictures", 210, 50, 180, 170)
$Group_3 = GuiCtrlCreateGroup("Video", 410, 50, 180, 170)
$Group_4 = GuiCtrlCreateGroup("Other", 610, 50, 170, 170)
$Label_5 = GuiCtrlCreateLabel("Drag and drop the desired items into their respective catagories and they will be sent to the xbox", 150, 30, 580, 20)
$musicdrop = GUICtrlCreateInput ( "Drag files here", 40, 90 , 100 , 20 , -1)
$musicsend = GUICtrlCreateButton ("Send", 63, 140, 40, 20)

While 1
    $msg = GuiGetMsg()
    Case $msg = $GUI_EVENT_CLOSE
    Case    $msg = $musicsend
$guiread = guictrlread($musicdrop, 1)
$Conn = _FTPConnect($Open, $server, $username, $pass, 0)
_FtpPutFile($com, $guiread, '/'& $driveletter &'/')
$Ftpc = _FTPClose($Open)

Share this post

Link to post
Share on other sites

Hi Furso,

From a troubleshooting perspective have you tried uploading multiple files with the earlier FTP script that you had working?

I am just wondering if the issue is to do with the FTP code, or whether the GUI code is somehow responsible for the problem (I'm afraid I don't have any experience with GUI programming) so if it ends up being a GUI issue you will need someone else to help you.


Share this post

Link to post
Share on other sites

hi again, i don't think uploading multiple files is a problem, its just how the data from the input box is read, as it reads files and separates them with a '|', (eg, C:\file1|C:\file2|ect..), so if there was a way to make the script recognize the | symbol, as the end of one file, and the beggining of another.

Thanx for your help earlier VeeDub ;)

Share this post

Link to post
Share on other sites

StringSplit, see help

Edited by Rick

Who needs puzzles when we have AutoIt!!

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