>Theres a key in the registry that shows the Windows directory on your computer. Say, if I chose to rename \WINDOWS as my WINDOWS directory to \WIN95, it would show "\WIN95". How would I do that in VFP6?
You can get the Windows directory using the API, and alter the path under the DOS bootstrap process in CONFIG.SYS and AUTOEXEC.BAT under Win9x, but it's completely suicidal. Your entire registry would break, because at a minimum, every registered component in the Windows and Windows\System directories would have to be re-registered, as would every font, and the list goes on. It's not changing a registry key, it's changing potentially thousands of them, not knowable in advance.
You could use the Scripting.FileSystemObject to rename the directory, but that will not do the necessary fixups in the registry.