Re: Is it possible to read/write to an ini file using a tcp/ip protocal file address?
From: DS (DS_at_btinternet.com)
Date: 10/18/04
- Next message: Sven Pran: "Re: Question about Delphi versus other languages"
- Previous message: Ante Smolcic: "Re: object count"
- In reply to: Maarten Wiltink: "Re: Is it possible to read/write to an ini file using a tcp/ip protocal file address?"
- Next in thread: Maarten Wiltink: "Re: Is it possible to read/write to an ini file using a tcp/ip protocal file address?"
- Reply: Maarten Wiltink: "Re: Is it possible to read/write to an ini file using a tcp/ip protocal file address?"
- Reply: pr: "Re: Is it possible to read/write to an ini file using a tcp/ip protocal file address?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 18 Oct 2004 10:06:17 +0100
Hi
My application was originally written to work on a standalone pc and I'm now
changing it to run on a network. Its a client server databse app that uses
ini files to hold data concerning licencing (using onguard stuff) Most of
the conversion is complete, except that the onguard licencing routines are
storing info in a local ini. I didnt want my users having to enter the
release codes in every client pc that has my client app installed on it.
Seemed better to if all the client apps would look at the same ini, hence i
was trying to move that ini to the same dir as the database. My installation
routine gets the non unc path for the database ie Server1:C:\Program
Files\myProg which is required (so I have been told) for the database
components to connect to the database using tcp/ip.
My final users probably wont have admin rights. On reflection i guess I
could try converting the server/absolute path into a UNC path.
D
"Maarten Wiltink" <maarten@kittensandcats.net> wrote in message
news:417380fb$0$42417$e4fe514c@news.xs4all.nl...
> "DS" <DS@btinternet.com> wrote in message
> news:ckvsa9$lah$1@newsg1.svr.pol.co.uk...
>
> > Thankyou for bein an excellent spell checker.
>
> You're welcome. Would you like an invoice with that?
>
>
> > There were typos in my original post, sorry, thats what happens when
> > I'm shattered.
>
> It didn't look like a typo. You made yourself look like you really
> didn't know how it's spelled and just wrote down something more or
> less close to how it's pronounced. And your typing hasn't improved
> since then, either.
>
>
> > I was trying to create an ini file using the path that is used as
> > the connection string for my database:
> > Tinifile.create(Server1:C:\Program Files\myProg')
>
> Ouch. That's even worse than the previous version (which didn't have
> the drive letter).
>
>
> > Can you actually advize me on how I do the job 'like an honest
> > programmer?'
>
> Sure. I _get away_ with being abrasively pedantic, you know.
>
> There is no a priori guarantee that a database server will also be
> a file server, or let you write in its program directories. Even if
> it does, the connection string may not hold all the information you
> need. The original path looked like a mangled UNC path; this one is
> obviously a local path qualified with the machine on which it can be
> expected to work. You could transform it mechanically to
> "\\Server1\c$\Program Files\myProg", but you'd probably need
> administrator rights on the remote machine for that to work.
>
> What configuration are you trying to store? User settings, client
> machine settings, application settings, installation settings,
> site-wide settings? They all have their own place. If you want to
> write into the database server's program directory, perhaps the best
> place is in the database itself.
>
> Groetjes,
> Maarten Wiltink
>
>
- Next message: Sven Pran: "Re: Question about Delphi versus other languages"
- Previous message: Ante Smolcic: "Re: object count"
- In reply to: Maarten Wiltink: "Re: Is it possible to read/write to an ini file using a tcp/ip protocal file address?"
- Next in thread: Maarten Wiltink: "Re: Is it possible to read/write to an ini file using a tcp/ip protocal file address?"
- Reply: Maarten Wiltink: "Re: Is it possible to read/write to an ini file using a tcp/ip protocal file address?"
- Reply: pr: "Re: Is it possible to read/write to an ini file using a tcp/ip protocal file address?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|