Sign in to follow this  
Followers 0
trescon

No run program

8 posts in this topic

Hi all, I would like to bring my problem (perhaps shared by others).

I have a program that acts as a shell to launch other programs (basically acts as a grouping buttons), in practice pressing the button launches other programs (all in Autoit).
Everything works fine as long as you run programs that use local resources; when I choose to start the program that uses the FTP to update some files ..... does not work.
Then I checked out two conditions:

1 - if the program is launched from the interface has administrator rights, nothing happens; I asked to confirm the execution and then will not start.
2 - if the same program as I boot directly from Windows, the program asks me administrator rights, I confirm, and he downloads from the ftp site, all you have to.

Is there any way to solve?

Thanks

Io ho un programmino che fa da shell per poter lanciare altri programmi (in pratica fa da raggruppamento pulsanti) , in pratica premendo dei pulsanti lancia degli altri programmi (tutti in Autoit).


Tutto funziona bene finchè esegue programmi che usano risorse locali; quando il programma che scelgo di avviare utilizza la funzione FTP per aggiornare alcuni archivi ..... non funziona.
Allora ho verificato due condizioni :

1- se il programma che viene lanciato dall'interfaccia ha i diritti di amministratore , non succede nulla; non mi viene chiesto di confermare l'esecuzione e quindi non si avvia.
2- se lo stesso programma lo avvio direttamente io da windows, il programma mi chiede i diritti di amministratore, io confermo , e lui scarica dal sito ftp tutto quello che deve.

C'è modo di risolvere ??

Grazie


Thank You

Alberto

---------------------------------------------------

I am translate with Google.

Share this post


Link to post
Share on other sites



Please post your code, we cannot assist without seeing what you're doing.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

The program can not post, there are too many calls with FTP login and password delicate.
I can say, however, that up to first install the version of Autoit 3.3.10.2 all worked perfectly and I even dreamed of having to ask the administrator rights to do start the program.

Il programma non lo posso postare, ci sono troppe chiamate FTP con login e password delicati.


Posso dire pero che fino a prima di installare la versione di Autoit 3.3.10.2 tutto funzionava perfettamente e neppure mi sognavo di dover chiedere i diritti di amministratore per fare avviare il programma.


Thank You

Alberto

---------------------------------------------------

I am translate with Google.

Share this post


Link to post
Share on other sites

Then you need to post a reproducer that shows the problem you're experiencing, rather than having us guess at what you've written and then troubleshoot it for you. Help us help you ;)


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

post-71627-0-25836800-1396620185_thumb.jpost-71627-0-91085700-1396620433_thumb.j

Then in Photo 1 (Shell) shows the basic interface.
Then as you can see from the photo 2 (our) I click on the menu and I select the "our."
The click on this link a program that works by taking steps in July 2013 without ever giving problems, up to the moment when I upgraded to 3.3.2.10 Autoit.
In summary, if I click on the link "our", the program does not launch; if I launch it from any folder as a file, it starts and does its job.

Why?
 

Il click su questo link avvian un programma che funziona da luglio 2013 senza mai dare problemi, fino al momento in cui ho aggiornato ad Autoit 3.3.2.10 .


Riepilogando, se clicco sul link "nostri" il programma non viene lanciato; se io lo lancio dalla cartella come un file qualsiasi , si avvia e fa il suo lavoro.

Perche ??

Grazie


Thank You

Alberto

---------------------------------------------------

I am translate with Google.

Share this post


Link to post
Share on other sites

If you are not prepared to post your code (remove sensitive information) then there's little point posting pictures.

Just go through every added or fixed function in the changelog since last version that worked and test them all individually.


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

Hi, here's the code as requested.

#RequireAdmin
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=au3.ico
#AutoIt3Wrapper_Outfile=C:\Procedure\Programmi\Shell\Download\download.exe
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#cs
    *****************************************************
    DOWNLOAD 10/06/2013
    *****************************************************


#ce


#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <FTPEx.au3>
#include <ButtonConstants.au3>


Dim $host, $username, $pass, $data, $data_ita, $host1, $username1, $pass1

Dim $dim_back, $dim_sell, $dim_ppespart, $dim_file_cove[3], $dim_file_miei[3], $data_file[23], $fatto_file[23], $label_dim_file_cove[3], $Label_dim_file_miei[3], $label_data_file[23], $label_fatto[23]

$anno = @YEAR
$mese = @MON
$giorno = @MDAY
$data = @YEAR & @MON & StringFormat("%02d", @MDAY)
$data_ita = $giorno & "-" & $mese & "-" & $anno
$sell = ("/in/sellout_" & $data)

$perc_prog = ("/procedure/programmi")


Global $nome_file_cove[3] = ["", "/out/BACKORD.csv", $sell]
Global $nome_file_arc[8] = ["", "/**********.it/procedure/archivi/volantino/volantino.txt", "/*********.it/procedure/archivi/volantini/volantini.txt", "/***********.it/procedure/archivi/tvcolor", "/************.it/procedure/archivi/tablet", "/*************.it/procedure/archivi/fotocamere", "/****************.it/procedure/archivi/computer", "/************.it/procedure/archivi/cellulari"]
Global $nome_file_prog[2] = ["", "/shell"]
; Percorsi Base
Global $Sito ="/*************.it/procedure/"
Global $Pc ="c:/Procedure/"
Global $ava
;

Dim $coordinate_dim_file_1[23] = [0, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 864, 864, 864, 864, 864, 864, 864, 864, 864, 864, 208, 864] ; ex 216 , 872
Dim $coordinate_dim_file_2[23] = [0, 144, 192, 240, 288, 336, 384, 432, 480, 528, 576, 144, 192, 240, 288, 336, 384, 432, 480, 528, 576, 648, 648]
Dim $coordinate_dim_file_3[23] = [0, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73] ; ex 59
Dim $coordinate_dim_file_4[23] = [0, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23]

$host = '**.***.**.**'
$username = '****'
$pass = '**********'


#region ### START Koda GUI section ###
Global $Form2 = GUICreate("Download Archivi", 1000, 670, -1, -1)
Global $Label_Data_Odierna = GUICtrlCreateLabel("Data :", 756, 40, 50, 27)
GUICtrlSetFont(-1, 14, 800, 0, "Calibri")
Global $Data_Odierna = GUICtrlCreateLabel($data_ita, 828, 40, 111, 27, $SS_CENTER, BitOR($WS_EX_CLIENTEDGE, $WS_EX_STATICEDGE))
GUICtrlSetFont(-1, 14, 400, 0, "Calibri")
Global $Ditta = GUICtrlCreateLabel("******. S.r.l.", 80, 32, 245, 61)
GUICtrlSetFont(-1, 36, 800, 0, "BRADDON")
GUICtrlSetColor(-1, 0x0000FF)
; ******************************
Global $Label_backord = GUICtrlCreateLabel("1 - BACKORD.csv :", 48, 144, 126, 23)
GUICtrlSetFont(-1, 12, 800, 0, "Calibri")
$label_dim_file_cove[1] = GUICtrlCreateLabel("Dim_file", $coordinate_dim_file_1[1], $coordinate_dim_file_2[1], $coordinate_dim_file_3[1], $coordinate_dim_file_4[1], $SS_SUNKEN) ; 216, 144, 59, 23
GUICtrlSetFont(-1, 12, 400, 0, "Calibri")
Global $Data_file1 = GUICtrlCreateLabel("Data_file", 320, 144, 64, 23, $SS_SUNKEN)
GUICtrlSetFont(-1, 12, 400, 0, "Calibri")
Global $Fatto1 = GUICtrlCreateLabel("Fatto", 424, 144, 37, 23, $WS_BORDER, BitOR($WS_EX_CLIENTEDGE, $WS_EX_STATICEDGE))
GUICtrlSetFont(-1, 12, 400, 0, "Calibri")
Global $Ora_attuale = GUICtrlCreateLabel(@HOUR & ":" & @MIN, 1064, 40, 70, 27, $SS_CENTER, BitOR($WS_EX_CLIENTEDGE, $WS_EX_STATICEDGE))
GUICtrlSetFont(-1, 14, 400, 0, "Calibri")
; *********************************
Global $Label_sellout = GUICtrlCreateLabel("2 - SELLOUT.csv :", 48, 192, 105, 23)
GUICtrlSetFont(-1, 12, 800, 0, "Calibri")
$label_dim_file_cove[2] = GUICtrlCreateLabel("Dim_file", $coordinate_dim_file_1[2], $coordinate_dim_file_2[2], $coordinate_dim_file_3[3], $coordinate_dim_file_4[4], $SS_SUNKEN)
GUICtrlSetFont(-1, 12, 400, 0, "Calibri")
Global $Data_file2 = GUICtrlCreateLabel("Data_file", 320, 192, 64, 23, $SS_SUNKEN)
GUICtrlSetFont(-1, 12, 400, 0, "Calibri")
Global $Fatto2 = GUICtrlCreateLabel("Fatto", 424, 192, 37, 23, -1, BitOR($WS_EX_CLIENTEDGE, $WS_EX_STATICEDGE))
GUICtrlSetFont(-1, 12, 400, 0, "Calibri")
; ********************************
Global $Label_volantino = GUICtrlCreateLabel("3 - VOLANTINO.txt :", 48, 240, 132, 23)
GUICtrlSetFont(-1, 12, 800, 0, "Calibri")
$Label_dim_file_miei[1] = GUICtrlCreateLabel("Dim_file", $coordinate_dim_file_1[3], $coordinate_dim_file_2[3], $coordinate_dim_file_3[3], $coordinate_dim_file_4[3], $SS_SUNKEN)
GUICtrlSetFont(-1, 12, 400, 0, "Calibri")
Global $Data_file3 = GUICtrlCreateLabel("Data_file", 320, 240, 64, 23, $SS_SUNKEN)
GUICtrlSetFont(-1, 12, 400, 0, "Calibri")
Global $Fatto3 = GUICtrlCreateLabel("Fatto", 424, 240, 37, 23, -1, BitOR($WS_EX_CLIENTEDGE, $WS_EX_STATICEDGE))
GUICtrlSetFont(-1, 12, 400, 0, "Calibri")
; *********************************
Global $Label_volantini = GUICtrlCreateLabel("4 - VOLANTINI.txt :", 48, 288, 132, 23)
GUICtrlSetFont(-1, 12, 800, 0, "Calibri")
$Label_dim_file_miei[2] = GUICtrlCreateLabel("Dim_file", $coordinate_dim_file_1[4], $coordinate_dim_file_2[4], $coordinate_dim_file_3[4], $coordinate_dim_file_4[4], $SS_SUNKEN)
GUICtrlSetFont(-1, 12, 400, 0, "Calibri")
Global $Data_file4 = GUICtrlCreateLabel("Data_file", 320, 288, 64, 23, $SS_SUNKEN)
GUICtrlSetFont(-1, 12, 400, 0, "Calibri")
Global $Fatto4 = GUICtrlCreateLabel("Fatto", 424, 288, 37, 23, -1, BitOR($WS_EX_CLIENTEDGE, $WS_EX_STATICEDGE))
GUICtrlSetFont(-1, 12, 400, 0, "Calibri")
; **********************************
$ava=GUICtrlCreateLabel ("",400,450,400,23)
GUICtrlSetFont(-1, 12, 400, 0, "Calibri")
#region  **** forse ****


#endregion **** forse ****
$Label3 = GUICtrlCreateLabel("Software By T. A.", 536, 640, 130, 17)
$Label4 = GUICtrlCreateLabel("Rev. 0.0.3     26-04-2013", 704, 640, 150, 17)
Global $Button1 = GUICtrlCreateButton("Avvia", 530, 100, 83, 41)

GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

        Case $Form2
        Case $Button1
            Call("dimensioni_cove", $nome_file_cove)
            Call("dimensioni_miei", $nome_file_arc)

    EndSwitch
WEnd



Func Dimensioni_cove($nome_file_cove)
    $host = '**.***.**.**'
    $username = '*****'
    $pass = '********'

    $open = _FTP_Open('FTP Uploader')
    $connessione = _FTP_Connect($open, $host, $username, $pass)

    For $s = 1 To 2

        $dim_file_cove[$s] = _FTP_FileGetSize($connessione, $nome_file_cove[$s])
        GUICtrlSetData($label_dim_file_cove[$s], $dim_file_cove[$s])



    Next

    $close = _FTP_Close($open)

EndFunc
Func Dimensioni_miei($nome_file_arc)
    $host_miei = '**.***.**.***'
    $username_miei = '************'
    $pass_miei = '**********'
    Global $Sito ="/********.it/procedure/"
    Global $Pc ="c:/Procedure/"
    $open = _FTP_Open('FTP Uploader')
    $connessione = _FTP_Connect($open, $host_miei, $username_miei, $pass_miei)

    For $s = 1 To 2 ; 8

        $dim_file_miei[$s] = _FTP_FileGetSize($connessione, $nome_file_arc[$s])
        GUICtrlSetData($Label_dim_file_miei[$s], $dim_file_miei[$s])



    Next

        GUICtrlSetData($ava,"** Avvio Aggiornamento Archivi **")


#region   *** Programmi/Shell ***
        GUICtrlSetData($ava,"programmi/Shell/*.*  ........  Avviato")
    _FTP_FileGet($connessione, $sito & "programmi/Shell/Shell.exe",$Pc & "programmi/Shell/Shell.exe")
    _FTP_FileGet($connessione, $sito & "programmi/Shell/Download/Download.exe",$Pc &  "programmi/Shell/Download/Download.exe")
    _FTP_FileGet($connessione, $sito & "programmi/Shell/Volantini/Volantino_leggi.exe",$Pc &  "programmi/Shell/Volantini/Volantino_leggi.exe")
    _FTP_FileGet($connessione, $sito & "programmi/Shell/Tablet/Tablet.exe",$Pc &  "programmi/Shell/Tablet/Tablet.exe")
    _FTP_FileGet($connessione, $sito & "programmi/Shell/Computer/Computer.exe",$Pc &  "programmi/Shell/Computer/Computer.exe")
    _FTP_FileGet($connessione, $sito & "programmi/Shell/Cellulari/Cellulari.exe",$Pc &  "programmi/Shell/Cellulari/Cellulari.exe")
    _FTP_FileGet($connessione, $sito & "programmi/Shell/Fotocamere/Fotocamere.exe",$Pc &  "programmi/Shell/Fotocamere/Fotocamere.exe")
    _FTP_FileGet($connessione, $sito & "programmi/Shell/Sconto/Menu_Sconto.exe",$Pc &  "programmi/Shell/Sconto/Menu_Sconto.exe")
    _FTP_FileGet($connessione, $sito & "programmi/Shell/Tvcolor/Tvcolor.exe",$Pc &  "programmi/Shell/Tvcolor/Tvcolor.exe")
    _FTP_FileGet($connessione, $sito & "programmi/Shell/Assistenze/Assistenze.exe",$Pc &  "programmi/Shell/Assistenze/Assistenze.exe")
    _FTP_FileGet($connessione, $sito & "programmi/Shell/Assistenze/Rub_Assistenze.exe",$Pc &  "programmi/Shell/Assistenze/Rub_Assistenze.exe")


        GUICtrlSetData($ava,"programmi/Shell/*.*  ........  Fatto")

#endregion  *** Programmi/Shell ***
; **************************************************
#region   *** Archivi/Rubrica ***
        GUICtrlSetData($ava,"archivi/rubrica/*.*  ........  Avviato")
    _FTP_FileGet($connessione, $sito & "archivi/Rubrica/Fornitori_Bruno.pdf",$Pc & "Archivi/Rubrica/Fornitori_Bruno.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/Rubrica/agenti_IT.pdf",$Pc & "Archivi/Rubrica/agenti_IT.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/Rubrica/agenti_Bianco.pdf",$Pc & "Archivi/Rubrica/agenti_Bianco.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/Rubrica/Rub_Assistenze.txt",$Pc & "Archivi/Rubrica/Rub_Assistenze.txt")
        GUICtrlSetData($ava,"archivi/rubrica/*.*  ........  Fatto")

#endregion   *** Archivi/Rubrica ***
; ***************************************************
#region   *** Archivi/Assistenza
        GUICtrlSetData($ava,"archivi/Assistenza/Cove/*.*  ........  Avviato")
    _FTP_FileGet($connessione, $sito & "archivi/Assistenza/Cove/MODULO_RMA_GED.xlsx",$Pc & "Archivi/Assistenza/Cove/MODULO_RMA_GED.xlsx")
    _FTP_FileGet($connessione, $sito & "archivi/Assistenza/Cove/MODULO_RMR_GED.xlsx",$Pc & "Archivi/Assistenza/Cove/MODULO_RMR_GED.xlsx")
;
    _FTP_FileGet($connessione, $sito & "archivi/Assistenza/Cove/MODULO_RMA_IT_E_VIDEOGIOCO.xlsx",$Pc & "Archivi/Assistenza/Cove/MODULO_RMA_IT_E_VIDEOGIOCO.xlsx")
    _FTP_FileGet($connessione, $sito & "archivi/Assistenza/Cove/MODULO_RMA_IT_E_VIDEOGIOCO.xlsx",$Pc & "Archivi/Assistenza/Cove/MODULO_RMR_IT_E_VIDEOGIOCO.xlsx")
;
    _FTP_FileGet($connessione, $sito & "archivi/Assistenza/Cove/MODULO_RMA_PED.xlsx",$Pc & "Archivi/Assistenza/Cove/MODULO_RMA_PED.xlsx")
    _FTP_FileGet($connessione, $sito & "archivi/Assistenza/Cove/MODULO_RMR_PED.xlsx",$Pc & "Archivi/Assistenza/Cove/MODULO_RMR_PED.xlsx")
;
    _FTP_FileGet($connessione, $sito & "archivi/Assistenza/Cove/MODULO_RMA_RISCALDAMENTO_E_CLIMA.xlsx",$Pc & "Archivi/Assistenza/Cove/MODULO_RMA_RISCALDAMENTO_E_CLIMA.xlsx")
    _FTP_FileGet($connessione, $sito & "archivi/Assistenza/Cove/MODULO_RMR_RISCALDAMENTO_E_CLIMA.xlsx",$Pc & "Archivi/Assistenza/Cove/MODULO_RMR_RISCALDAMENTO_E_CLIMA.xlsx")
;
    _FTP_FileGet($connessione, $sito & "archivi/Assistenza/Cove/MODULO_RMA_TELEFONIA.xlsx",$Pc & "Archivi/Assistenza/Cove/MODULO_RMA_TELEFONIA.xlsx")
    _FTP_FileGet($connessione, $sito & "archivi/Assistenza/Cove/MODULO_RMR_TELEFONIA.xlsx",$Pc & "Archivi/Assistenza/Cove/MODULO_RMR_TELEFONIA.xlsx")

    GUICtrlSetData($ava,"archivi/Assistenza/Cove/*.*  ........  Fatto")

#endregion   *** Archivi/Assistenza
; ***************************************************
#region   *** Archivi/Informatica
        GUICtrlSetData($ava,"archivi/Informatica/*.*  ........  Avviato")
    _FTP_FileGet($connessione, $sito & "archivi/Informatica/Riepilogo_Sellout.xls",$Pc & "Archivi/Informatica/Riepilogo_Sellout.xls")
    _FTP_FileGet($connessione, $sito & "archivi/Informatica/Listini/Listino_Apple.pdf",$Pc & "Archivi/Informatica/Listini/Listino_Apple.pdf")

    GUICtrlSetData($ava,"archivi/Informatica/*.*  ........  Fatto")

#endregion   *** Archivi/Informatica
; ***************************************************
#region   *** Archivi/Audio-Video
        GUICtrlSetData($ava,"archivi/Audio-Video/*.*  ........  Avviato")
    _FTP_FileGet($connessione, $sito & "archivi/Audio-Video/Listini/Listino_Sharp.pdf",$Pc & "Archivi/Audio-Video/Listini/Listino_Sharp.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/Audio-Video/Listini/Listino_Pure.pdf",$Pc & "Archivi/Audio-Video/Listini/Listino_Pure.pdf")

;   _FTP_FileGet($connessione, $sito & "archivi/Informatica/Listini/Listino_Apple.pdf",$Pc & "Archivi/Informatica/Listini/Listino_Apple.pdf")

    GUICtrlSetData($ava,"archivi/Audio-Video/*.*  ........  Fatto")

#endregion   *** Archivi/Audio-Video
; ***************************************************
#region    *** Archivi/Volantini *** ; non li uso più
        GUICtrlSetData($ava,"archivi/Volantini/Concorrenza/*.*  ........  Avviato")
    _FTP_FileGet($connessione, $sito & "archivi/Volantini/Concorrenza/Accessori IT.txt",$Pc & "Archivi/Volantini/Concorrenza/Accessori IT.txt")
    _FTP_FileGet($connessione, $sito & "archivi/Volantini/Concorrenza/Accessori Av.txt",$Pc & "Archivi/Volantini/Concorrenza/Accessori Av.txt")
    _FTP_FileGet($connessione, $sito & "archivi/Volantini/Concorrenza/Cellulari.txt",$Pc & "Archivi/Volantini/Concorrenza/Cellulari.txt")
    _FTP_FileGet($connessione, $sito & "archivi/Volantini/Concorrenza/Climatizzatori.txt",$Pc & "Archivi/Volantini/Concorrenza/Climatizzatori.txt")
    _FTP_FileGet($connessione, $sito & "archivi/Volantini/Concorrenza/Console.txt",$Pc & "Archivi/Volantini/Concorrenza/Console.txt")
    _FTP_FileGet($connessione, $sito & "archivi/Volantini/Concorrenza/Cordless.txt",$Pc & "Archivi/Volantini/Concorrenza/Cordless.txt")
    _FTP_FileGet($connessione, $sito & "archivi/Volantini/Concorrenza/Fotocamere.txt",$Pc & "Archivi/Volantini/Concorrenza/Fotocamere.txt")
    _FTP_FileGet($connessione, $sito & "archivi/Volantini/Concorrenza/Dvd.txt",$Pc & "Archivi/Volantini/Concorrenza/Dvd.txt")
    _FTP_FileGet($connessione, $sito & "archivi/Volantini/Concorrenza/Hi-Fi.txt",$Pc & "Archivi/Volantini/Concorrenza/Hi-Fi.txt")
    _FTP_FileGet($connessione, $sito & "archivi/Volantini/Concorrenza/Key.txt",$Pc & "Archivi/Volantini/Concorrenza/Key.txt")
    _FTP_FileGet($connessione, $sito & "archivi/Volantini/Concorrenza/Hdd.txt",$Pc & "Archivi/Volantini/Concorrenza/Hdd.txt")
    _FTP_FileGet($connessione, $sito & "archivi/Volantini/Concorrenza/Navigatori.txt",$Pc & "Archivi/Volantini/Concorrenza/Navigatori.txt")
    _FTP_FileGet($connessione, $sito & "archivi/Volantini/Concorrenza/Notebook.txt",$Pc & "Archivi/Volantini/Concorrenza/Notebook.txt")
    _FTP_FileGet($connessione, $sito & "archivi/Volantini/Concorrenza/Stampanti.txt",$Pc & "Archivi/Volantini/Concorrenza/Stampanti.txt")
    _FTP_FileGet($connessione, $sito & "archivi/Volantini/Concorrenza/Tablet.txt",$Pc & "Archivi/Volantini/Concorrenza/Tablet.txt")
    _FTP_FileGet($connessione, $sito & "archivi/Volantini/Concorrenza/Tvcolor.txt",$Pc & "Archivi/Volantini/Concorrenza/Tvcolor.txt")
    _FTP_FileGet($connessione, $sito & "archivi/Volantini/Concorrenza/Videocamere.txt",$Pc & "Archivi/Volantini/Concorrenza/Videocamere.txt")
    _FTP_FileGet($connessione, $sito & "archivi/Volantini/Concorrenza/Videogiochi.txt",$Pc & "Archivi/Volantini/Concorrenza/Videogiochi.txt")
        GUICtrlSetData($ava,"archivi/Volantini/Concorrenza/*.*  ........  Fatto")

;"Accessori IT|Accessori AV|Cellulari|Climatizzatori|Console|Cordless|Fotocamere|Dvd|Hi-Fi|Key|Hdd|Navigatori|Notebook|Stampanti|Tablet|Tvcolor|Videocamere|Videogiochi"
#endregion   *** Archivi/Volantini ***
; ***************************************
#region   *** Archivi/Accessori   ***
        GUICtrlSetData($ava,"archivi/Accessori/*.*  ........  Avviato")

    _FTP_FileGet($connessione, $sito & "archivi/Accessori/Cellular_Line/Listino_Cellular_Line.pdf",$Pc & "archivi/Accessori/Cellular_Line/Listino_Cellular_Line.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/Accessori/Indiana_Line/Listino_Indiana.pdf",$Pc & "archivi/Accessori/Indiana_Line/Listino_Indiana.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/Accessori/G&BL/Listino_Gebl.pdf",$Pc & "archivi/Accessori/G&BL/Listino_Gebl.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/Accessori/Trust/Listino_Trust.pdf",$Pc & "archivi/Accessori/Trust/Listino_Trust.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/Accessori/Samsung/Listino_Samsung_Acc_Cell.pdf",$Pc & "archivi/Accessori/Samsung/Listino_Samsung_Acc_Cell.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/Accessori/Lg/Accessori_Cellulari_Lg.pdf",$Pc & "archivi/Accessori/Lg/Accessori_Cellulari_Lg.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/Accessori/SBS/Listino_SBS_Audio_Video.pdf",$Pc & "archivi/Accessori/SBS/Listino_SBS_Audio_Video.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/Accessori/SBS/Listino_SBS_Tablet_Informatica.pdf",$Pc & "archivi/Accessori/SBS/Listino_SBS_Tablet_Informatica.pdf")


        GUICtrlSetData($ava,"archivi/Accessori/*.*  ........  Fatto")

#endregion   ***  Archivi/Accessori
; ****************************************
#region  ***  Archivi/Cellulari  ***
        GUICtrlSetData($ava,"archivi/Cellulari/*.*  ........  Avviato")

    _FTP_FileGet($connessione, $sito & "archivi/Cellulari/Sony/Listino_Cellulari_Sony.pdf",$Pc & "archivi/Cellulari/Sony/Listino_Cellulari_Sony.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/Cellulari/Nokia/Listino_Nokia.pdf",$Pc & "archivi/Cellulari/Nokia/Listino_Nokia.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/Cellulari/Lg/Listino_Lg_Cell.pdf",$Pc & "archivi/Cellulari/Lg/Listino_Lg_Cell.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/Cellulari/Samsung/Listino_Samsung_Cell.pdf",$Pc & "archivi/Cellulari/Samsung/Listino_Samsung_Cell.pdf")

        GUICtrlSetData($ava,"archivi/Cellulari/*.*  ........  Fatto")

#endregion   ***  Archivi/Cellulari
; ****************************************

#region   ***  Broadcaster   ***
        GUICtrlSetData($ava,"archivi/Broadcaster/*.*  ........  Avviato")

    _FTP_FileGet($connessione, $sito & "archivi/Broadcaster/Mediaset/Canvass_Mediaset.pdf",$Pc & "archivi/Broadcaster/Mediaset/Canvass_Mediaset.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/Broadcaster/Mediaset/Listino_Ricaricabili.pdf",$Pc & "archivi/Broadcaster/Mediaset/Listino_Ricaricabili.pdf")

        GUICtrlSetData($ava,"archivi/Broadcaster/*.*  ........  Fatto")

; /troyer-alberto.it/Procedure/Archivi/Broadcaster
#endregion   ***  Broadcaster   ***
; *******************************************************
#region    *** Archivi/Gestori ***
    ; ********************************************************************************************************************
    ; ******************************************************  T I M  *****************************************************
    ; *** archivi/gestori/tim/listini ***
        GUICtrlSetData($ava,"archivi/gestori/tim/*.*  ........  Avviato")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/tim/listini/Tim_Listini.txt",$Pc & "Archivi/gestori/tim/listini/Tim_Listini.txt")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/tim/listini/Listino_terminali.pdf",$Pc & "Archivi/gestori/tim/listini/Listino_terminali.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/tim/listini/Listino_TC_TS.pdf", $pc & "Archivi/gestori/tim/listini/Listino_TC_TS.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/tim/listini/Listino_rateizzato_internet.xls", $pc & "Archivi/gestori/tim/listini/Listino_rateizzato_internet.xls")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/tim/Guide/Codici_x_Raddoppio.pdf", $pc & "Archivi/gestori/tim/Guide/Codici_x_Raddoppio.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/tim/Guide/Tabella_compatibilita_Voip.pdf", $pc & "Archivi/gestori/tim/Guide/Tabella_compatibilita_Voip.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/tim/Canvass/Canvass.pdf", $pc & "Archivi/gestori/tim/Canvass/Canvass.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/tim/Canvass/Sintesi_Canvass.pdf", $pc & "Archivi/gestori/tim/Canvass/Sintesi_Canvass.pdf")

    GUICtrlSetData($ava,"archivi/gestori/tim/*.*  ........  Fatto")

    ; *********************************************************************************************************************
    ; ******************************************************  VODAFONE  ***************************************************
    ; *** archivi/gestori/vodafone/listini ***
        GUICtrlSetData($ava,"archivi/gestori/vodafone/*.*  ........  Avviato")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/Vodafone/listini/Vodafone_Listini.txt", $pc & "Archivi/gestori/Vodafone/listini/Vodafone_Listini_txt")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/Vodafone/listini/listino_terminali.pdf", $pc & "Archivi/gestori/Vodafone/listini/listino_terminali.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/Vodafone/listini/Listino_Servizi_Vodafone.pdf", $pc & "Archivi/gestori/Vodafone/listini/Listino_Servizi_Vodafone.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/Vodafone/Canvass/Canvass.pdf", $pc & "Archivi/gestori/Vodafone/Canvass/Canvass.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/Vodafone/Guide/Procedura_Vodafone_You.pdf", $pc & "Archivi/gestori/Vodafone/Guide/Procedura_Vodafone_You.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/Vodafone/Guide/promo_veneto.pdf", $pc & "Archivi/gestori/Vodafone/Guide/promo_veneto.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/Vodafone/Moduli/Attivazione_Mnp.pdf", $pc & "Archivi/gestori/Vodafone/Moduli/Attivazione_Mnp.pdf")

;_FTP_FileGet($connessione, $sito & "archivi/gestori/Vodafone/listini/listino terminali.pdf", $pc & "Archivi/gestori/Vodafone/listini/listino terminali.pdf")
    ;_FTP_FileGet($connessione, $sito & "archivi/gestori/Vodafone/listini/listino terminali.pdf", $pc & "Archivi/gestori/Vodafone/listini/listino terminali.pdf")
        GUICtrlSetData($ava,"archivi/gestori/vodafone/*.*  ........  Fatto")

    ; *********************************************************************************************************************
    ; ******************************************************  WIND  *******************************************************
    ; *** archivi/gestori/wind/listini ***
        GUICtrlSetData($ava,"archivi/gestori/wind/*.*  ........  Avviato")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/Wind/listini/Wind_Listini.txt", $pc & "Archivi/gestori/Wind/listini/Wind_Listini.txt")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/Wind/listini/listino_terminali.pdf", $pc & "Archivi/gestori/Wind/listini/listino_terminali.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/Wind/listini/Telefono_incluso.pdf", $pc & "Archivi/gestori/Wind/listini/Telefono_incluso.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/Wind/listini/Listino_Infostrada.pdf", $pc & "Archivi/gestori/Wind/listini/Listino_Infostrada.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/Wind/Listini/Listino_Sim_Ricariche.pdf", $pc & "Archivi/gestori/Wind/Listini/Listino_Sim_Ricariche.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/Wind/Listini/Copia_Commissione.xls", $pc & "Archivi/gestori/Wind/Listini/Copia_Commissione.xls")

        ;GUICtrlSetData($ava,"archivi/gestori/wind/*.*  ........  Fatto")
    ; *** archivi/gestori/wind/Cancass ***
    _FTP_FileGet($connessione, $sito & "archivi/gestori/Wind/Canvass/Canvass_Wind.pdf", $pc & "Archivi/gestori/Wind/Canvass/Canvass_Wind.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/Wind/Canvass/Canvass_Wind_Old.pdf", $pc & "Archivi/gestori/Wind/Canvass/Canvass_Wind_Old.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/Wind/Canvass/Novita_Canvass.pdf", $pc & "Archivi/gestori/Wind/Canvass/Novita_Canvass.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/gestori/Wind/Canvass/Opzioni_Ricaricabili.pdf", $pc & "Archivi/gestori/Wind/Canvass/Opzioni_Ricaricabili.pdf")


        GUICtrlSetData($ava,"archivi/gestori/wind/*.*  ........  Fatto")

#endregion    *** Archivi/Gestori ***
; ****************************************
#region  ***  Archivi/Utilita  ***
        GUICtrlSetData($ava,"archivi/Utilita/*.*  ........  Avviato")

    _FTP_FileGet($connessione, $sito & "archivi/Utilita/Inalto.pdf",$Pc & "archivi/Utilita/Inalto.pdf")
    _FTP_FileGet($connessione, $sito & "archivi/Utilita/Estendo/Audio-Video_new(rev_1).pdf",$Pc & "archivi/Utilita/Estendo/Audio-Video_new(rev_1).pdf")
    _FTP_FileGet($connessione, $sito & "archivi/Utilita/Estendo/Foto-Cine_new(rev_1).pdf",$Pc & "archivi/Utilita/Estendo/Foto-Cine_new(rev_1).pdf")
    _FTP_FileGet($connessione, $sito & "archivi/Utilita/Estendo/IT_new(rev_1).pdf",$Pc & "archivi/Utilita/Estendo/IT_new(rev_1).pdf")
    _FTP_FileGet($connessione, $sito & "archivi/Utilita/Estendo/Ged-Ped_new(rev_1).pdf",$Pc & "archivi/Utilita/Estendo/Ged-Ped_new(rev_1).pdf")
    _FTP_FileGet($connessione, $sito & "archivi/Utilita/Estendo/Telefonia-Tablet_new(rev_1).pdf",$Pc & "archivi/Utilita/Estendo/Telefonia-Tablet_new(rev_1).pdf")


    ;_FTP_FileGet($connessione, $sito & "archivi/Cellulari/Nokia/Listino_Nokia.pdf",$Pc & "archivi/Cellulari/Nokia/Listino_Nokia.pdf")
    ;_FTP_FileGet($connessione, $sito & "archivi/Cellulari/Lg/Listino_Lg_Cell.pdf",$Pc & "archivi/Cellulari/Lg/Listino_Lg_Cell.pdf")
    ;_FTP_FileGet($connessione, $sito & "archivi/Cellulari/Samsung/Listino_Samsung_Cell.pdf",$Pc & "archivi/Cellulari/Samsung/Listino_Samsung_Cell.pdf")

        GUICtrlSetData($ava,"archivi/Utilita/*.*  ........  Fatto")

#endregion   ***  Archivi/Utilita
; ****************************************
    MsgBox(64,"Fatto","fatto")
    $close = _FTP_Close($open)

EndFunc   ;==>Dimensioni_miei

Func Avanzamento ($ava)
    MsgBox(0,"Avanzamento",$ava)
EndFunc

I tend to point out that this program Dariva other that did similar things (not to rewrite it all), to which I have changed what I needed; to warn you that this ciu are some lines of code that are of no use, but because they do not give problems I never / removed, the take away.
The following procedure works adjust from about 8/9 months I added the line "# RequireAdmin" lately for testing.

So, I repeat my problem.

- If you launch the following script alone, I asked permission from an administrator and everything works.
- If the same script to launch another program, which usually is done, I will be more sought authorization, and I did not even start the program (do not download anything).
- If I remove the line "# RequireAdmin," I can not ask for anything but nothing works.

Circumvent this problem I've encountered since I updated to ver Autoit. 3.3.10.2, then it started to give problems; with both Windows 7 Professional, both with windows 8.1.

If anyone can help me, Thanks

Alberto


Thank You

Alberto

---------------------------------------------------

I am translate with Google.

Share this post


Link to post
Share on other sites

Nobody can help me?

Thanks

Alberto


Thank You

Alberto

---------------------------------------------------

I am translate with Google.

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