I think my comment "You can use @macros after the echo and as part of a filename too." might have been confusing.

Let me give some examples:

shell "cmd /c echo Hello @userid!! > greeting.txt"

will create a file called greeting.txt and will contain Hello (your logon id here)!!

shell "cmd /c echo Hello!! > @wksta.txt"

will create a file that is (your computers name here).txt and will contain the text "Hello!!"

changing the > to >> will append your line to a file...

shell "cmd /c echo @userid logged onto @wksta at @time on @date >> \\server\share\monitorusers.txt"

will add "John logged onto COMPAQ002 at 13:55:29 on 2000/04/20" to the end of the file called monitorusers.txt. This file will have each occurance of this action on each line.

I hope this helps. I can give you some examples of self modifying code too...

cj

P.S. Spelling mistake corrected

[This message has been edited by cj (edited 20 April 2000).]