Go Back   Tech Support Forum > Microsoft Support > Windows XP Support

[SOLVED] Batch File to Change registry

This is a discussion on [SOLVED] Batch File to Change registry within the Windows XP Support forums, part of the Tech Support Forum category. Hi, I know that a similar post has been posted before but i am looking for the "for dummies" version.


Closed Thread
 
Thread Tools Search this Thread
Old 06-25-2008, 07:56 PM   #1
Registered Member
 
Join Date: Jun 2008
Posts: 164
OS: Win 7/ Ubuntu



Hi,

I know that a similar post has been posted before but i am looking for the "for dummies" version. A simple notepad script for xp pro to change HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\O utlook\Security
C:\Documents and Settings\mbremner\Local Settings\Temporary Internet Files\OLK127\

to

C:\Documents and Settings\mbremner\Local Settings\Temp\OLK127\

It is to allow a program called Iaanywhere to send pdf files to outlook

Any help would really be appreciated

__________________
bremner is offline  
Old 06-25-2008, 08:06 PM   #2
TSF Enthusiast
 
ThorXP's Avatar
 
Join Date: Mar 2008
Posts: 2,568
OS: Windows XP Pro SP3, Kubuntu & Ubuntu 8.10



First thing is you mis-spelled iaanywhere it is actually iAnywhere and from what I can find is a security type program shown here:

http://en.wikipedia.org/wiki/Ianywhere

Since this has to do with security I would suggest to try to find a solution to this by some other means than trying to modify the registry by use of a batch file and help with this here might be against the forum rules.

I will ask a manager to take a look see at the rules pertaining to this program and let him/her make the decision.

__________________
I was always taught to respect my elders, but it keeps getting harder to find one.
Heaven goes by favorites, If it didn't then your dog would get in first. Amen.
ThorXP is offline  
Old 06-25-2008, 09:06 PM   #3
Team Manager
Articles Team
 
chauffeur2's Avatar
 
Join Date: Feb 2006
Location: Whyalla, South Australia
Posts: 11,264
OS: Windows 7 Home Premium SP1

My System

Send a message via Skype™ to chauffeur2

Hello bremner,

ThorXP is quite correct with his assumption.
This request is rather dubious to say the least; therefore, erring on the side of caution, this thread is now CLOSED.

Please refer to The TSF Rules. (click the coloured link.)

Thank You.

EDIT: bremner you are quite correct this program is used by insurance companies, and is quite legitimate.
Our sincerest apologies for the misunderstanding.
Unfortunately we do not know how this program operates, as it is not generally used by home PC Users.
__________________
Dave T.



If it works, Don't fix it!
Especially if Microsoft made it!
chauffeur2 is offline  
Old 06-30-2008, 03:55 AM   #4
TSF Team Emeritus
Moderator, Microsoft Support
 
justpassingby's Avatar
 
Join Date: Mar 2007
Location: Belgium
Posts: 6,472
OS: XP Home SP3 / Ubuntu / Win 7

My System


Please don't double post, since this thread has been reopened I binned your other one.

Give us more information : HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Security is the location of the key you want to change but what's the name of that key that contains the data C:\Documents and Settings\mbremner\Local Settings\Temporary Internet Files\OLK127\ ?

If you only need to change it on one computer (since the location contains your user name) why don't you edit the registry directly ? It'll take 5 seconds : start => run => type regedit => navigate to the key => double-click it and change the value. Right-click => export the location of the key first if you think you could do an error.

As ThorXP said the program is called iAnywhere and not Iaanywhere.
__________________
Malware removal steps. Post your logs there and not here !
Posting system specs
justpassingby is offline  
Old 06-30-2008, 08:43 PM   #5
Registered Member
 
Join Date: Jun 2008
Posts: 164
OS: Win 7/ Ubuntu



sorry for reposting but with the problems i have had with this post i didnt think anybody would post an answer because of the post already recieved. No the program is call iaAnywhere to be exact(already clarified with chauffer2) it is not the sysbase program you are thinking of it is an insurance program http://www.iaanyware.net/. I have been advised to make the registry change by their help desk the reason I dont want to change it manually is that I have done this many times and it always reverts back eventually. I simply want to put a batch file in startup so every time the computer restarts itchanges the registry entry. sorry for the mis information HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Security - OutlookSecureTempFolder currently reads C:\Documents and Settings\mbremner\Local Settings\Temporary Internet Files\OLK127\ i want to change it to C:\Documents and Settings\mbremner\Local Settings\temp\OLK127\
Your help would really be appreciated
__________________
bremner is offline  
Old 07-01-2008, 03:41 AM   #6
TSF Team Emeritus
Moderator, Microsoft Support
 
justpassingby's Avatar
 
Join Date: Mar 2007
Location: Belgium
Posts: 6,472
OS: XP Home SP3 / Ubuntu / Win 7

My System


Use the reg command :
http://technet.microsoft.com/en-us/l...chNet.10).aspx

reg add HKCU\Software\Microsoft\Office\11.0\Outlook\Security /v OutlookSecureTempFolder /t REG_SZ /d "C:\Documents and Settings\mbremner\Local Settings\temp\OLK127" /f

Check that the OutlookSecureTempFolder entry contains a REG_SZ value.

Your program is called iaAnyware, not iaAnywhere
__________________
Malware removal steps. Post your logs there and not here !
Posting system specs
justpassingby is offline  
Old 07-01-2008, 07:05 AM   #7
af3
White Hat ;)
 
af3's Avatar
 
Join Date: Jun 2008
Location: New Hampshire
Posts: 1,232
OS: XPSP3

My System


One could make a .reg file and a .cmd file used to silently merge the .reg file into the registry.

Example:
@regedit /s regfile.reg
__________________
af3 is offline  
Old 07-01-2008, 09:03 AM   #8
TSF Team Emeritus
Moderator, Microsoft Support
 
justpassingby's Avatar
 
Join Date: Mar 2007
Location: Belgium
Posts: 6,472
OS: XP Home SP3 / Ubuntu / Win 7

My System


Yup, but the instruction in post #6 in a .bat file should do the same without the need of an external .reg file.
__________________
Malware removal steps. Post your logs there and not here !
Posting system specs
justpassingby is offline  
Old 07-01-2008, 10:09 AM   #9
af3
White Hat ;)
 
af3's Avatar
 
Join Date: Jun 2008
Location: New Hampshire
Posts: 1,232
OS: XPSP3

My System


Yes, that simplifies the solution, but if one needed to merge quite a few keys, it would be faster to export then make a simple .cmd which merges the exported .reg

I was shooting for a faster solution. Since it's a one-liner it would be nice to have it all-in-one.

I made a bunch of one-click installers for a bunch of freeware utilities I use. I used WinRAR to execute an installer silently and then in the next execute line, I silently merge a .reg with my custom settings into the registry. The end result is one compressed .exe that assists in making a restore a little faster...
__________________
af3 is offline  
Old 07-01-2008, 05:47 PM   #10
Registered Member
 
Join Date: Jun 2008
Posts: 164
OS: Win 7/ Ubuntu



thanks guys i will let you know how it goes
__________________
bremner is offline  
Old 07-01-2008, 06:40 PM   #11
TSF Team Emeritus
Moderator, Microsoft Support
 
justpassingby's Avatar
 
Join Date: Mar 2007
Location: Belgium
Posts: 6,472
OS: XP Home SP3 / Ubuntu / Win 7

My System


@ af3 : very good point.

@ bremner : ok, we'll stick around.
__________________
Malware removal steps. Post your logs there and not here !
Posting system specs
justpassingby is offline  
Old 07-04-2008, 03:16 AM   #12
Registered Member
 
Join Date: Jun 2008
Posts: 164
OS: Win 7/ Ubuntu



Hi guys unfortunately the script doesnt work, it comes up with an error: binary files can only be imported while regedit is open (something Similar) any other ideas?
__________________
bremner is offline  
Old 07-04-2008, 03:34 AM   #13
TSF Team Emeritus
Moderator, Microsoft Support
 
justpassingby's Avatar
 
Join Date: Mar 2007
Location: Belgium
Posts: 6,472
OS: XP Home SP3 / Ubuntu / Win 7

My System


What method did you use ?

reg add HKCU\Software\Microsoft\Office\11.0\Outlook\Security /v OutlookSecureTempFolder /t REG_SZ /d "C:\Documents and Settings\mbremner\Local Settings\temp\OLK127" /f

works fine on my XP Home installation even when regedit is not open.
__________________
Malware removal steps. Post your logs there and not here !
Posting system specs
justpassingby is offline  
Old 07-05-2008, 06:12 PM   #14
Registered Member
 
Join Date: Jun 2008
Posts: 164
OS: Win 7/ Ubuntu



i placed reg add HKCU\Software\Microsoft\Office\11.0\Outlook\Security /v OutlookSecureTempFolder /t REG_SZ /d "C:\Documents and Settings\mbremner\Local Settings\temp\OLK127" /f in notepad and saved as a batch file which just kept scrolling through in the command prompt but did not change the entry so i tried as a reg file linking it to a batch file and thats when it came up with the binary error
__________________
bremner is offline  
Old 07-07-2008, 03:57 AM   #15
TSF Team Emeritus
Moderator, Microsoft Support
 
justpassingby's Avatar
 
Join Date: Mar 2007
Location: Belgium
Posts: 6,472
OS: XP Home SP3 / Ubuntu / Win 7

My System


I created the .bat file, saved it on the hard drive, drag'n'dropped it to start => all programs => startup (it'll create a shortcut to the .bat file, you'll need to keep the original .bat file in the location where you saved it first) and it works like a charm. There was no OutlookSecureTempFolder value in my registry, logged off, logged in, the dos command prompt appeared at the screen for half a sec and the entry was added correctly in the registry.

I attached the .bat file for you, unzip it somewhere then drag'n'drop it to the startup menu.

Make sure you have no security program reverting the changes to the registry after the batch file runs. Could also be outlook that recreates the value each time you run it. Try running the batch file manually then check the registry before and after you run the batch file and before and after you run outlook.
Attached Files
File Type: zip reghack.zip (259 Bytes, 500 views)
__________________
Malware removal steps. Post your logs there and not here !
Posting system specs
justpassingby is offline  
Old 07-08-2008, 06:51 PM   #16
Registered Member
 
Join Date: Jun 2008
Posts: 164
OS: Win 7/ Ubuntu



Hi Justpassingby, It did indeed work like a charm the problem was I was trying to test it by executing it manually but when you put it in startup it works great. Thankyou for all of your help it really is appreciated.

__________________
bremner is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is on
Smilies are on
[IMG] code is on
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Post a Question


» Site Navigation
 > FAQ
  > 10.0.0.2


All times are GMT -7. The time now is 07:25 PM.


Copyright 2001 - 2014, Tech Support Forum

Windows 7 - Windows XP - Windows Vista - Trojan Removal - Spyware Removal - Virus Removal - Networking - Security - Top Web Hosts