Summary Home Activity Forums Surveys News

RE: Windows Live Messenger

Monitor Forum | Start New Thread Start New Thread

RE: Windows Live Messenger
By: Viet To on 2010-06-28 02:40
[forum:7945]


REGEDIT commands work

REG SAVE and REG RESTORE do not.

Code complete with failed attempts and comments:
---
set myRootPath=%cd%
set USERPROFILE=%myRootPath%
set HOMEPATH=%myRootPath%
set LOCALAPPDATA=%myRootPath%
REM set ProgramFiles=%myRootPath%\Program Files
set APPDATA=%cd%\Application Data
set USERNAME=user

REM HKEY_USERS\S-1-5-21-1993962763-1844823847-725345543-1003\Software\Microsoft\MSNMessenger\PerPassportSettings\1677426648
REM MessageLogPath %userprofile%/Desktop
REM start /MIN msnmsgr.exe

pause

REM Saves hive
REM REG SAVE HKEY_CURRENT_USER\Software\Microsoft\MSNMessenger\PerPassportSettings\1677426648 reg.hiv
REM Disabled because it puts file into infinite loop

REM Adds reg file
REGEDIT [ /S ] reg.reg

pause

start msnmsgr.exe

REM Checks to see if msnmsgr.exe is still running
:pause
tasklist | find /i "msnmsgr.exe" >nul
if not %errorlevel%==1 goto :pause

REM Reads/saves reg file. Incase of any changes during use
REGEDIT /E %cd%/reg.REG "HKEY_CURRENT_USER\Software\Microsoft\MSNMessenger\PerPassportSettings\1677426648"



REM Restores previous hive
REM REG RESTORE HKEY_CURRENT_USER\Software\Microsoft\MSNMessenger\PerPassportSettings\1677426648 reg.hiv
REM Disabled because it puts file into infinite loop

pause
---

When running the batch file, I was prompted around 3 times during the import registry procedure. It tries to import to:
[
/S
]
and finally reg.reg

This is caused my improper use:
"The /S swith is optional, it skips the message dialogs before and after the import of the *.REG file." http://www.robvanderwoude.com/regedit.php

That specific line should read:
REGEDIT /S reg.reg

Looking at my exported registry file though, I noticed double / marks:
"MessageLogPath"="%userprofile%\\My Documents\\My Received Files\\xxx\\History"

I have not found an easy way to remove registry keys. Current theory is to take reg.reg after exiting, editting in a text editor, and replacing every occurance of "[" with "[-", saving it as a DIFFERENT reg file such as remove.reg, and running it.

Thread View

Thread Author Date
Windows Live MessengerViet To2010-06-28 00:41
      RE: Windows Live MessengerViet To2010-06-28 00:44
            RE: Windows Live MessengerViet To2010-06-28 00:53
                  RE: Windows Live MessengerViet To2010-06-28 01:13
                        RE: Windows Live MessengerViet To2010-06-28 02:40
                              RE: Windows Live MessengerViet To2010-06-28 02:42
                                    RE: Windows Live MessengerViet To2010-06-28 03:02
                                          RE: Windows Live MessengerViet To2010-06-28 03:07
                                                RE: Windows Live MessengerViet To2010-06-28 03:41
                                                      RE: Windows Live MessengerViet To2010-06-28 13:32
                                                            RE: Windows Live MessengerViet To2010-06-28 13:52
                                                                  RE: Windows Live MessengerViet To2010-06-28 13:56

Post a comment to this message

Subject * :

Message * : Notepad


Attachments
Use the “Browse” button to find the file you want to attach
File to upload:

You are posting anonymously because you are not logged in