473,320 Members | 1,902 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

how to read/write System Registry keys

hi,

I am new to VB.. I am dedveloping a tool in which there would be a browser/text box to open the desired file.. the problem here is that i want to remember the old file that i opened last time when i run the exe.. i came to know that this can be done by adding the file name as keys in the system registry. I wanted to know how can i edit/read/write into system registry using VB 6.0. I want to create a registry entry and add keys with the file names. please tell me the syntax and the necessary components to be added to get the desired result

thanks
Sep 7 '07 #1
4 2933
hariharanmca
1,977 1GB
hi,

I am new to VB.. I am dedveloping a tool in which there would be a browser/text box to open the desired file.. the problem here is that i want to remember the old file that i opened last time when i run the exe.. i came to know that this can be done by adding the file name as keys in the system registry. I wanted to know how can i edit/read/write into system registry using VB 6.0. I want to create a registry entry and add keys with the file names. please tell me the syntax and the necessary components to be added to get the desired result

thanks
you can use below methot to get registory key value

Expand|Select|Wrap|Line Numbers
  1. GetSetting
below is to save Reg key

Expand|Select|Wrap|Line Numbers
  1. SaveSetting
Sep 7 '07 #2
QVeen72
1,445 Expert 1GB
Hi,

use the following API's:

GetSetting and SaveSetting

REgards
Veena
Sep 7 '07 #3
sgrec7
59
hi,
how to read/write System Registry keys
guess what, NO ONE should play with regedit, that is just as bad as 'cleaning out the windows folder'

u want my advice ??? DONT touch the registry
Sep 7 '07 #4
hariharanmca
1,977 1GB
guess what, NO ONE should play with regedit, that is just as bad as 'cleaning out the windows folder'

u want my advice ??? DONT touch the registry
Yes that may happen. But that is Necessary for any application for there initial values

But make sure you have to play within the registry key created by you.
Sep 7 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: bdinmstig | last post by:
I refined my attempt a little further, and the following code does seem to work, however it has 2 major problems: 1. Very limited support for XPath features Basic paths are supported for...
1
by: Borka | last post by:
Hi all! I have some questions. 1. I write script which controls registry settings, which must work on every computer. If I try JFSO = new ActiveXObject("Scripting.FileSystemObject"); JWS =...
3
by: Bo | last post by:
I am using RegistryKey.GetValue() method to retrieve values from Windows Registry. I don't know how to read type REG_MULTI_SZ into a string array. I have tried string array = (string)...
4
by: Greg Bell | last post by:
Hi, Can someone tell me where to look to enable me to read "Folder Options" user settings for hidden/system files from within C#/VB.Net/Any other .NET language. I'm pretty sure it must be part...
3
by: Nikolay Petrov | last post by:
Why I always get 'Requested registry access is not allowed' when i try to Read/Write to Windows Registry from ASP service. I use ASP NET account? Also granted full permissions to required Registry...
1
by: jj | last post by:
1. How do you get the full path of an installed application from another application? ( Example: I want to get the the full path where "Notepad" is installed from "Mysimple" application) 2. How...
5
by: Sin Jeong-hun | last post by:
I need to read some registry keys of a remote computer. The key will be any key users provide. (For example : HKEY_CURRENT_USER\SOFTWARE \MyGame) I found that there was a handy method called...
3
by: The Frog | last post by:
Hi everyone, Does anyone know how to place a set of WEP or WPA keys into the registry(?) programmatically. I have an application (idea) that I am testing to connect temporarily to a wireless...
3
by: MSK | last post by:
Hi I am a newbie to ASP.NET and VBScript, currently I am designing a page to show all the mapped drives using client-side scripts.. I want to read all the mapped drive details (name and Remote...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.