XSV_SOLJA Posted May 15, 2011 Posted May 15, 2011 Hi, I am trying to add a string to the registry. I writing it in batch and converting the batch script to .exe using 'Bat To Exe Converter 1.4' All the script does is run 'filename.reg' to import the file to the registry, it works fine when in batch format, when converted to exe it runs and says its merged but no string shows up in the registry. The exe file has other code in it and must run either way, but is there a way i could get the string entered into registry with just a double click on that exe. I have figured out that once converted the exe will not be able to open anther file with any extension...so its the converted exe file giving the trouble.. Quote
Fargwire Posted May 16, 2011 Posted May 16, 2011 Have you tried any other conversion programs? This might be the same one you are using but it is a better version. http://download.cnet.com/Bat-To-Exe-Converter/3000-2069_4-10555897.html Quote
XSV_SOLJA Posted May 20, 2011 Author Posted May 20, 2011 thanks that software is wayy better than what I was using but it still create the reg string, runs the file but no string appears.. oh well I found a work around for now. now it would be usefull to know how to bind multiple files and run certain ones with a command: foe example if I bind test1.exe and test2.exe into one filee..TEST and create a batch script to either open test1 or test2... or both:? Quote
DontShootUK Posted March 28, 2013 Posted March 28, 2013 Both look good ways to tuning a .reg entry into an exe but why automate in this way? Ifs this part of an automated script on a machine build or program install? I build a lot of AD scripts, VM templates, etc at work and I tend to pop my reg entries into VB scripts or powershell as they will run without user prompting.. will this suffice? const HKEY_LOCAL_MACHINE = &H80000002strComputer = "."Set StdOut = WScript.StdOutSet oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_strComputer & "\root\default:StdRegProv")strKeyPath = "SOFTWARE\Microsoft\windows\currentversion\netcache"strValueName = "FormatDatabase"dwValue = 1oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue ? Quote
jaie Posted March 29, 2013 Posted March 29, 2013 You answering post from 2 years ago, check date bro Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.