Jump to content

Recommended Posts

Posted

Hello.

Im trying to write my results to a file.

i know i need to use _FileListToArray but not sure where/how to put it

anything else i need to include?

#include <file.au3>
$sFile = @ScriptDir & "\settings.txt"


Dim $assets
If Not _FileReadToArray("assets.txt",$assets) Then
   MsgBox(4096,"Error", " Cannot Find assets.txt " )
   Exit
EndIf
For $x = 1 to $assets[0]

$ets1 = IniRead("\\" & $assets[$x] & "\c$\program files\ETS\BIN\ets.ini", "ENVIRONMENT", "PRIMARY_SERVER", "NotFound")

_FileWriteFromArray($sFile, $ets1)

Next

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