Dear,

jbastete, welcome to the board.

Your script
- $write= get the error status value of your RedirectOutput caLL
- $write show the ZERO in your file
- ", ...." seems to append to previous contents. your first character is a ","-symbol.

Two versions
  • RedirectOutput
    code:
    $write=RedirectOutput("\\server\share\"+$filename)
    ? ", @userid, $os, $fileversion, $ieversion, @address, @date"
    $write=RedirectOutput("")

    or
    code:
    $write=RedirectOutput("\\server\share\"+$filename)
    ", @userid, $os, $fileversion, $ieversion, @address, @date"
    $write=RedirectOutput("")

    code:
    IF (RedirectOutput("\\server\share\"+$filename) = 0)
    ", @userid, $os, $fileversion, $ieversion, @address, @date"
    ENDIF
    IF RedirectOutput("")
    ENDIF

  • Open/WriteLine/Close
    IF (Open(1,"\\server\share\"+$filename) = 0)
    $write=WriteLine(1,", @userid, $os, $fileversion, $ieversion, @address, @date"+@crlf)
    IF Close(1)
    ENDIF
    ENDIF
    [/code]
greetings.
btw: a very old topic.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA