Jump to content

Recommended Posts

Posted

Hi,

i want to log the array content (the names of files and folders) in a txt-file. My code shows me anything in the Log.txt file:

#Include <Array.au3>

$ProgramFilePath = "E:\Programme"

$FileListInFirmware=_FileListToArray($ProgramFilePath & "\Firmware")

_ArrayDisplay($FileListInFirmware)

_FileWriteLog(@ScriptDir & "\Log.txt" , $FileListInFirmware);

Any idee?

Regards

Posted (edited)

Have you tried a FOR loop?

For $i = 1 to $FileListInFirmware[0] - 1
    WriteToFile($FileListInFirmware[$i])
Next
Edited by Mallie99

Are you telling me something I need to know or something I want to know?

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...