473,414 Members | 1,575 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,414 software developers and data experts.

Saving file Path in Registry

Hello...I currently have a OpenFileDialog object that I will use to get the path of an Access Database. I would like to save the path of the database (ie c:\MyDatabase.mdb) to the registry so that I can use this in my application. I would also like to know how to retreive this registry entry so that it can be used by a few of my classes. Any help or resources that you can point me to for this task will be greatly appreciated! thanks
Nov 15 '05 #1
3 1635

"Ed P." <an*******@discussions.microsoft.com> wrote in message
news:F0**********************************@microsof t.com...
Hello...I currently have a OpenFileDialog object that I will use to get

the path of an Access Database. I would like to save the path of the
database (ie c:\MyDatabase.mdb) to the registry so that I can use this in my
application. I would also like to know how to retreive this registry entry
so that it can be used by a few of my classes. Any help or resources that
you can point me to for this task will be greatly appreciated! thanks

Look up the Registry, and RegistryKey classes in the index. Should have all
you need to know there.

HTH
Eric
Nov 15 '05 #2
Ed P. wrote:
Hello...I currently have a OpenFileDialog object that I will use to get the path of an Access Database. I would like to save the path of the database (ie c:\MyDatabase.mdb) to the registry so that I can use this in my application. I would also like to know how to retreive this registry entry so that it can be used by a few of my classes. Any help or resources that you can point me to for this task will be greatly appreciated! thanks


Look at the System.Win32.RegistryKey class in the framework docs.

--
mikeb
Nov 15 '05 #3
Thanks for the input I'll look into what both of you mentioned! :)
Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: tom | last post by:
Hi lads - got an issue with renaming a file. I'm actually using the FSO method 'MoveFile'.I did try to do my best, but doesn't want to work. this is the code: Dim fso set fso =...
3
by: Ed P. | last post by:
I am trying to save a location to a database using the registry...I've been successful in this, but is there another way I can save this. I have searched on the net and have found that saving the...
9
by: Ben Dewey | last post by:
Project: ---------------------------- I am creating a HTTPS File Transfer App using ASP.NET and C#. I am utilizing ActiveDirectory and windows security to manage the permissions. Why reinvent...
4
by: dale zhang | last post by:
Hi, I am trying to save and read an image from MS Access DB based on the following article: http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp Right now, I saved images without any...
4
by: Husam | last post by:
Hi EveryBody: Is there any way to save my text file in Registry Key instaed of saving it in Drive C: or any other drive drive ? any help will be appreciated regard's Husam
3
by: Blake McNeill | last post by:
How do you retrieve a file path which was stored in the Registry as a string without ending up with a string which has all the slashes escaped which make it useless for file IO? I can see the file...
11
by: SuperHik | last post by:
Hi, I was wondering how to make a single .exe file, say some kind od clock, and be able to save some settings (alarm for example) into the same file? Basically make code rewrite it self... ...
2
by: TwistedPair | last post by:
All, This is sort of a continuation of a previous post of mine. The code below basically reads a registry key to get a path to a folder and it watches for files created in that folder (only...
3
by: LordHog | last post by:
Hello, How would I go about finding the default handler, let's say a text file (*.txt), then launch the default handler with the file as an argument? I had found how to launch an external...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.