shyam pothini
asked on
creating a batchfile
hello all
I am trying to create a batch file to add registry key.
its should run on both 32bit and 64 bit
there are 2 different registry keys for 32bit and 64bit.
so if it is 32-bit, it adds the 32-bit registry key and vice versa
Any ideas?
Thanks in advance
I am trying to create a batch file to add registry key.
its should run on both 32bit and 64 bit
there are 2 different registry keys for 32bit and 64bit.
so if it is 32-bit, it adds the 32-bit registry key and vice versa
Any ideas?
Thanks in advance
ASKER
Thanks,
I am confused.
I want to add commnd here
HKEY_LOCAL_MACHINE\SOFTWAR E\Microsof t\Windows\ CurrentVer sion\Run
so how can I do that
I am confused.
I want to add commnd here
HKEY_LOCAL_MACHINE\SOFTWAR
so how can I do that
Based on your question I thought you knew how to add to the registry from batch, and were just looking for help differentiating between 32 and 64 bits.
If you want the exact registry commands, then I would need to know the key and value you want to add for both 32 and 64 bit.
»bp
If you want the exact registry commands, then I would need to know the key and value you want to add for both 32 and 64 bit.
»bp
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks
it didn't work
batch file ran but it didn't add reg key
it didn't work
batch file ran but it didn't add reg key
ASKER
yes I know how to add the reg keys in batch file
You ran it with elevated privileges, yes?
What errors or output did you get?
What was your final BAT script?
»bp
What errors or output did you get?
What was your final BAT script?
»bp
ASKER
it worked thanks
Open in new window
»bp