Re: write in exist file

Tech-Archive recommends: Speed Up your PC by fixing your registry



it runs perfectly now.
thanks



"Pegasus (MVP)" <I.can@xxxxxxx> schrieb im Newsbeitrag news:u9ZBJ5KDIHA.3716@xxxxxxxxxxxxxxxxxxxxxxx

"Walser Mark" <mw@xxxxxxxxxxxx> wrote in message news:E45EE2F4-FD39-4C55-8754-BA69A9C18B13@xxxxxxxxxxxxxxxx
hello
this script run with policy, when the user logged in.
I want a list of every computers.
the problem is, that every user write a new textfile. the last user who log in is written in the textfile.

how can I do that?

Set NWT = CreateObject("WScript.Network")
errorfile="\\server\temp$\vbs_error.txt"
Set errorlogfile=FileSystem.CreateTextFile(errorfile, True)
errorlogfile.WriteLine NWT.ComputerName

thanks

Try this:
const Append=8
Set errorlogfile = FileSystem.OpenTextFile(errorfile, Append)



.



Relevant Pages

  • Re: write in exist file
    ... this script run with policy, ... I want a list of every computers. ... that every user write a new textfile. ...
    (microsoft.public.scripting.vbscript)
  • Domain information through vbs
    ... 2- Using the textfile of users, run the dos command "net user USERNAME ... as "logon script". ... since it is output in a tabular format and vbs will read it 1 ... How can I transform the dos output into a valid format to ...
    (microsoft.public.scripting.vbscript)
  • Re: Exporting a Access table/view from command line with VB Script
    ... building and executing a query to import from a textfile, ... execute one to export to a textfile. ... >I want a similar VB script which can take a command line argument ... >and export the Access table/view into a delimited file specified. ...
    (microsoft.public.access.externaldata)
  • Re: Insert a line in a textfile from a script
    ... > I want to insert a new line in a textfile from a script. ... you could try using head and tail if your line is to be inserted in ...
    (comp.unix.shell)
  • Re: add registry info on multiple computers
    ... "Dean Shears" wrote in message ... > argument or by dragging and dropping the textfile onto the ... > script and read a list of computer names, ... > gets a new server all ...
    (microsoft.public.windows.server.scripting)