Sorry guys for the inconvenience, but sometimes I get lost in the myriad functions of autoit, so I need a hand.
Hope a day i'll help someone
The part of the script i have difficulties:
$Folder = GUICtrlRead($InFileInput)
If Not FileExists($Folder) Then
MsgBox(16, "Error", "no dir")
ContinueLoop
EndIf
$password=GUICtrlRead($PasswordInput)
If $password="" Then
MsgBox(16,"Error","no pass")
ContinueLoop
EndIf
$Array_Files = _FileListToArray(GUICtrlRead($InFileInput))
For $i = 1 To $Array_Files[0]
$success = _Crypt_EncryptFile($Array_Files[$i], $Array_Files[$i] & ".crypt", $password, $algo)
If $success Then
ConsoleWrite("File " & $Array_Files[$i] & " is crypted" & $Array_Files[$i] & ".crypt" & @CRLF)
Else
ConsoleWrite("Error: " & @error & @CRLF)
EndIf
Next
The script work, i'll select a dir and make all file of that dir with encryption. The problem is destination, i want to set the same dir of $InFileInput but if i change the destination something goes wrong and i have only 1 file instead of multiple file.
Sorry for trouble, thanks for support