regedit $IP is not a valid command. regedit will think you are trying to import a registry file named $IP.

Jens is suggesting just doing a Run 'regedit.exe' to open regedit and then use Sendkeys to open the File/connect network registry command and enter the computer name.


Edited by CitrixMan (2004-02-02 06:25 PM)