Jump to content

Simple program wich is looping for no reason


Iznogoud
 Share

Recommended Posts

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
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...