Break your requested functionality down into individual steps and starting reading the manual.

1. if Exist()
2. Create what? See Open, Writeline, WriteProfileString, etc.
3. See RUN and SHELL. You may want to start your program from a batch so that you can change to the remote drive and and directory. It may help in the execution of the file.
4. ELSE to #1
5. endif
Somewhere in there you want a GetFileTime()

[ 14 May 2002, 06:07: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/