Ralph -
Welcome to the board.

Writevalue works the same for all Windows versions XP down to 95.

WRITEVALE ("Registry Key", "Description", "Value", "Type")

Ex: To have the a local batch file (C:\batchfile.bat) run every time Windows loads, you would do this:

WRITEVALUE ("Hkey_local_machine\software\microsoft\windows\currentversion\run", "RunMyLocalBatchFile", "C:\batchfile.bat", "REG_SZ")

However, there are security restrictions for WinNT-class systems that can prevent a registry write, particularly to the 'HKEY_LOCAL_MACHINE' hive. Generally, you will need to be a Power User or Administrator on the workstation/client to write to this key. A regular user will be denied access to the key.

If you wish to post your specific error additional help from this board can be provided.

Bill