Sign in to follow this  
Followers 0
Iznogoud

Simple program wich is looping for no reason

3 posts in this topic

#1 ·  Posted (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. :lmao:

Edited by Iznogoud

Share this post


Link to post
Share on other sites



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.

 

Share this post


Link to post
Share on other sites

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

How simple can it be ;)

Sorry for not seeying the solution :lmao:

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