Re: Password Last Reset

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



In the statement:

Set objFile = objFSO.OpenTextFile(strFilePath, 2, True, 0)

the second argument, 2, means to open the file for writting. This
overwrites. Use 8 to append.

--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--

"Ayth" <darrin.henshaw@xxxxxxxxx> wrote in message
news:1177204882.103271.113610@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
No problem, I did some looking and noticed that. I do have a further
question, I'll explain a bit of what I'm doing.

Basically another script calls this script, if certain conditions are
met, the problem I'm running into now, is the second time the script
is called(which it could be called a lot of times. It overwrites the
values already in the text file, ie the first time ran the script
enters: HFXVMTEST1$ ; 11/8/2006 7:55:20 PM, then it will be
overwritten the next time it's called. I need it to append to the
file, rather than overwrite, is this possible? Thanks.

On Apr 21, 9:31 pm, "Richard Mueller [MVP]" <rlmueller-
nos...@xxxxxxxxxxxxxxxxxxxx> wrote:
Sorry, I forgot that all computer objects have sAMAccountName equal to
the
NetBIOS name of the machine with "$" appended on the end. I believe it is
to
ensure no conflict with other objects, like users or groups, since
sAMAccountName must be unique in the domain.

--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab -http://www.rlmueller.net
--

"Ayth" <darrin.hens...@xxxxxxxxx> wrote in message

news:1177197081.511196.158500@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



.



Relevant Pages

  • Re: document.write call position
    ... it overwrites the entire page (as document.write does when the ... Is there a way to tell where in the DOM the document.write is located ... Since the `script' element that is required to include the statement has to ... Prototype.js was written by people who don't know javascript for people ...
    (comp.lang.javascript)
  • Cleandisk : a utility to wipe unused disk space
    ... Havent used but located script to wipedisk ... # This is a little shell script to wipe disk space ... # overwrite all unused disk space without risking ... MSG="You must specify a number of overwrites. ...
    (AIX-L)
  • Timestamp file from local machine/save to network
    ... records errors for crashes, and the user restarts it, ... file.log overwrites itself and starts clean. ... script copies file.log to the network, ... How can I create a unique filename each time ...
    (microsoft.public.windows.server.scripting)
  • Re: Password Last Reset
    ... Basically another script calls this script, ... It overwrites the ... ensure no conflict with other objects, like users or groups, since ... sAMAccountName must be unique in the domain. ...
    (microsoft.public.scripting.vbscript)
  • Copy file and timestamp it
    ... script to copy it to a mapped network drive. ... records errors and may need to copied to the network drive ... file.log overwrites itself and starts clean. ... How can I create a unique filename each time ...
    (microsoft.public.windows.server.scripting)