Hey - fair enough - but there was alot of variables I did not understand in your script - so I started from scratch and by looking at all your other scripts and some examples in the help file, I made this script.. - All I need to do now is write all the missing lines for the different cities.., maybe find out how to display status in a status windows and figure out how to show the program running so I can terminate it without using the taskmanager.. - but right now it looks like its working..
I really really really appreciate ALL your help !!! - It was a BIG help for me.. !!!
Please look at the script and please comment.. :-)
While 1
;Comment: Check London to start image capture
If FileExists ( 'c:\ftp\london\1.txt' ) Then
Run ( 'c:\ftp\program\httpcmd.exe root:test@192.168.1.10')
Filemove ( "c:\ftp\london\1.txt", "c:\ftp\london\2.txt", 0)
EndIf
;Comment: Check Paris to start image capture
If FileExists ( 'c:\ftp\paris\1.txt' ) Then
Run ( 'c:\ftp\program\httpcmd.exe root:test@192.168.1.11')
Run ( 'c:\ftp\program\httpcmd.exe root:test@192.168.1.12')
Run ( 'c:\ftp\program\httpcmd.exe root:test@192.168.1.13')
Filemove ( "c:\ftp\paris\1.txt", "c:\ftp\paris\2.txt", 0)
EndIf
;Comment: Check London for JPG images
If FileExists ( 'c:\ftp\london\*.jpg' ) Then
FileMove ( "c:\ftp\london\2.txt", "c:\ftp\london\3.txt", 0)
EndIf
;Comment: Check Paris for three JPG images
$search = FileFindFirstFile("c:\ftp\paris\*.jpg")
Local $Count=0
While 1
$file = FileFindNextFile($search)
If @error Then ExitLoop
$Count+=1
WEnd
; Close the search handle
FileClose($search)
IF $Count>=3 Then
FileMove ( "c:\ftp\paris\2.txt", "c:\ftp\paris\3.txt", 0)
EndIf
WEnd