Need help with Checking Version Controls

D

DStrong

OK, so what I have is Word 2003 on XP Pro machines. I have a word doc that is
in my startup folder so that it opens and run code at startup. This code
deletes a file on a users desktop and then copies the newest version to their
desktop.


What I want to have this also do is write to a text log file when the user
does this so that I know who has updated and who is not. I realize that this
should not be done this way, but it is all I have access to at this time.

Any suggestions or places to go to would be helpful.
Happy Holidays to all.
 
D

DaveLett

Hi David,
I think you're looking to append something like the following to your
existing routine:

Const ForReading = 1, ForWriting = 2, ForAppending = 3
Dim fs, a

Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.OpenTextFile _
("C:\YourFile.log"), _
ForWriting, True)
a.writeline "Your information"


HTH,
Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top