You could use RegWrite method of VBScript to write to the Reg_Sz string;
"LastKey"=""
HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit
prior to starting regedit.exe
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
Microsoft Certified Professional [Windows 2000]
http://www.microsoft.com/protect
:
| Is there any way to specify on a command line that regedit open
| already on a specific key?