PDA

View Full Version : Could not merge a .reg file using file.run??


kk250040
06-10-2009, 09:51 AM
Hi Friends,

The following didnot merge the abc.reg:

apFolder=SessionVar.Expand("%AppFolder%");
File.Run("_WindowsFolder\\regedit.exe ", "/s "..apFolder.."\\reg\\abc.reg", "", SW_SHOWNORMAL, true);

Please let me know where I could be wrong... I cannot use the alternative method of importing the .reg files in the SF7 actions as they contain 100s of lines for each of my .reg file. So pelase suggest how I can merge a .reg file using the File.Run method...:huh
I saw few threads on the discussion, but they did not help me much. So Please help.

Thanks,
Kk250040.

jassing
06-10-2009, 10:43 AM
because you're misusing a variable
_WindowsFolder.."\\......"

You dont' put variables w/in quotes.

Try:
_SystemFolder.."\\RegEdit32.exe"

kk250040
06-11-2009, 06:44 AM
Yes I messed it up wrong...
The suggestion to go for... _SystemFolder.."\\RegEdit32.exe" did not work for me somehow, the _WindowsFolder.."\\RegEdit.exe" works correctly. The system could not identify the RegEdit32.exe itself.

Thank You!