Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread dos to unix path & \ / slashes
Tue, Dec 12 2006 11:56 AMPermanent Link

"Larthusza"
I've been called out of retirement to make a small database application for
my local crinklies group and am a bit rusty. This is not strictly anything
to do with DBISAM but that is what I am using and I'm sure it is no great
challenge to the excellent people who meet here.

I have made my application in WinXP which is a very small, 100 or so record,
table which runs across a network from a UNIX server. I cant get the path to
work. for simplicity and testing purposes I have hard coded the path
something like: http:\\www.myserver\myapplication\
with the Delphi execute and the DBISAM tables all in the root directory of
'myapplication'.
but when I run it it throws an error saying the path is
http:\\www.myserver\myapplication\/TableOne.
If I  put it inside a UnixPathToDosPath function it shows
http://www.myserver/myapplication/TableOne. which is fine except it doesn't
run. I can't figure out how to stop the programme adding a slash / before
the table name. I think it is a Microsoft Windows thing but I'm not sure.

Any ideas would be most welcome.

--
(\__/)
(='.'=)
(")_(")

Wed, Dec 13 2006 1:31 PMPermanent Link

Put simply, this isn't going to work. You can't access files over the
internet like that. You'd either have to use \\myserver\share\directory,
and that requires that you have an "SMB" capability to access the server
on your LAN, or have the server itself do the work.

/Matthew Jones/
Wed, Dec 13 2006 1:34 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com


<< I have made my application in WinXP which is a very small, 100 or so
record, table which runs across a network from a UNIX server. I cant get the
path to work. for simplicity and testing purposes I have hard coded the path
something like: http:\\www.myserver\myapplication\
with the Delphi execute and the DBISAM tables all in the root directory of
'myapplication'. but when I run it it throws an error saying the path is
http:\\www.myserver\myapplication\/TableOne. >>

You can't use an http URL with tables.  You have to use a generic URL like
this:

\\MyServer\MyApplication

Where MyServer is the server name and MyApplication is the resource name on
the server.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image