Iznogoud Posted January 24, 2006 Share Posted January 24, 2006 (edited) Hi, i have made a really simple program wich uploads files from a directory to an ftp server. The problem is if i open the program it keeps opening for unlimited times. This is my code: #include <GUIConstants.au3> #include <Date.au3> ; -------------------- Creating SplahScreen ---------------------- GUICreate("Bezig met foto's uploaden . . .",476,246,-1,-1,$WS_SIZEBOX+$WS_SYSMENU); will create a dialog box that when displayed is centered $n=GUICtrlCreatePic("C:\FTP\logo.jpg", "", "", "476", "236") GUISetState () ; -------------------- Record Start Time ------------------------- $startHour = @HOUR $startMin = @MIN $startSec = @SEC ; -------------------- Uploading files --------------------------- RunWait("ftp -s:c:\FTP\ftp.txt", "", @SW_HIDE) ; -------------------- Record End Time --------------------------- $StopHouR = @HOUR $StopMin = @MIN $StopSec = @SEC ; -------------------- Transfer Complete Message ----------------- MsgBox(0,"Company name", "Start time: "& $StartHour & ":" & $StartMin & ":" & $StartSec & @LF & "End time: " & $StopHour & ":" & $StopMin & ":" & $StopSec & @LF & " " & @LF & " Transfer Complete") The text wich is in ftp.exe: open 192.168.1.1 test test bin cd /FOTO promp mput C:\FOTO\*.* bye I can't find any loops wich is causing this problem, maybe i am doing things wrong but i don't know what. Edited January 24, 2006 by Iznogoud Link to comment Share on other sites More sharing options...
GaryFrost Posted January 24, 2006 Share Posted January 24, 2006 My guess is your naming your script ftp then compiling to ftp . exe then in that script there is a call to ftp . exe Try renaming the script/exe SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Iznogoud Posted January 24, 2006 Author Share Posted January 24, 2006 My guess is your naming your script ftp then compiling to ftp . exe then in that script there is a call to ftp . exeTry renaming the script/exeHow simple can it be Sorry for not seeying the solution 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