By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,165 Members | 853 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,165 IT Pros & Developers. It's quick & easy.

dos to unix path & \ / slashes

P: n/a
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 Access per se 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 Delphi which uses MS Access tables and which
are very small, 100 or so records, which runs across a network from a UNIX
server but I can't get the path to work. It all works fine on my own
machine. For simplicity and testing purposes I have hard coded the path
something like:
http:\\www.myserver\myapplication\MyApp.Exe. The Delphi execute and the
Access DB are all in the directory: 'myapplication'.
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.

Incidently, a couple of Delphi apps which don't use a DB run fine and so
does my DB app if the Access db is on my machine but the Delph EXE file is
on the Server.

Any ideas would be most welcome.

Ian Millward
Edinburgh

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


Dec 13 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Are you trying to connect to a table in an Access database using http? You
can't: Access doesn't recognize the http: protocol (nor ftp:, for that
matter)

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
"Larthusza" <Th****************@Yahoo.comwrote in message
news:12*************@corp.supernews.com...
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 Access per se 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 Delphi which uses MS Access tables and which
are very small, 100 or so records, which runs across a network from a
UNIX
server but I can't get the path to work. It all works fine on my own
machine. For simplicity and testing purposes I have hard coded the path
something like:
http:\\www.myserver\myapplication\MyApp.Exe. The Delphi execute and the
Access DB are all in the directory: 'myapplication'.
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.

Incidently, a couple of Delphi apps which don't use a DB run fine and so
does my DB app if the Access db is on my machine but the Delph EXE file is
on the Server.

Any ideas would be most welcome.

Ian Millward
Edinburgh

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


Dec 14 '06 #2

P: n/a
Thanks Doug,

It is either an Access or a DBISAM db. I have had a reply from Elevate
Software, the DBISAM Developers, and they recon I can get it to run with a
generic URL rather than an HTTP URL. I think I might have cracked it now.
I'm just getting the path from my host.

"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.comwrote in message
news:uD*************@TK2MSFTNGP06.phx.gbl...
Are you trying to connect to a table in an Access database using http? You
can't: Access doesn't recognize the http: protocol (nor ftp:, for that
matter)

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
"Larthusza" <Th****************@Yahoo.comwrote in message
news:12*************@corp.supernews.com...
>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 Access per se 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 Delphi which uses MS Access tables and
which
are very small, 100 or so records, which runs across a network from a
UNIX
server but I can't get the path to work. It all works fine on my own
machine. For simplicity and testing purposes I have hard coded the path
something like:
http:\\www.myserver\myapplication\MyApp.Exe. The Delphi execute and the
Access DB are all in the directory: 'myapplication'.
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.

Incidently, a couple of Delphi apps which don't use a DB run fine and so
does my DB app if the Access db is on my machine but the Delph EXE file
is on the Server.

Any ideas would be most welcome.

Ian Millward
Edinburgh

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



Dec 14 '06 #3

P: n/a
As pointed out, you can't use windows file protocol over the internet.

So, your .exe file is actually being download to your *local* machine, and
executed there.

In the case of a mdb file, the open command DOES NOT TRANSFER the whole
file.

you in effect needs windows network protocols here to open the file. That
means you need a samba share, and ALSO to setup a VPN to be able to open and
read those files using the windows network system (ftp, or http is NOT
windows networking).

So, you need samba + a vpn. However, if your connection is actually *over*
the internet, then I am afraid your connation is about 100 times slower then
normal, and worse, your data will be subject to corruption.

I explain how, and why this is so here in layman's terms here:

http://www.members.shaw.ca/AlbertKallal//Wan/Wans.html

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com

Dec 15 '06 #4

P: n/a
As pointed out, you can't use windows file protocol over the internet.

So, your .exe file is actually being download to your *local* machine, and
executed there.

In the case of a mdb file, the open command DOES NOT TRANSFER the whole
file.

you in effect needs windows network protocols here to open the file. That
means you need a samba share, and ALSO to setup a VPN to be able to open and
read those files using the windows network system (ftp, or http is NOT
windows networking).

So, you need samba + a vpn. However, if your connection is actually *over*
the internet, then I am afraid your connation is about 100 times slower then
normal, and worse, your data will be subject to corruption.

I explain how, and why this is so here in layman's terms here:

http://www.members.shaw.ca/AlbertKallal//Wan/Wans.html

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
Dec 15 '06 #5

P: n/a
Thanks Albert,

I reckon that answers my question fairly succinctly. I was trying for an
easy answer but it seems there isn't one.
The server I am hosted on has MySQL and php so I will try that route.

"Albert D. Kallal" <Pl*******************@msn.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
As pointed out, you can't use windows file protocol over the internet.

So, your .exe file is actually being download to your *local* machine, and
executed there.

In the case of a mdb file, the open command DOES NOT TRANSFER the whole
file.

you in effect needs windows network protocols here to open the file. That
means you need a samba share, and ALSO to setup a VPN to be able to open
and read those files using the windows network system (ftp, or http is NOT
windows networking).

So, you need samba + a vpn. However, if your connection is actually *over*
the internet, then I am afraid your connation is about 100 times slower
then normal, and worse, your data will be subject to corruption.

I explain how, and why this is so here in layman's terms here:

http://www.members.shaw.ca/AlbertKallal//Wan/Wans.html

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com

Dec 16 '06 #6

P: n/a
can't: Access doesn't recognize the http: protocol (nor ftp:, for that

Using the text IISAM:

tdf.SourceTableName = "Q1SalesData"

tdf.Connect = "HTML Import;DATABASE=http://" & _
"www.server1.com/samples/page1.html"

HTTPS and FTP too.
"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.comwrote in message
news:uD*************@TK2MSFTNGP06.phx.gbl...
Are you trying to connect to a table in an Access database using http? You
can't: Access doesn't recognize the http: protocol (nor ftp:, for that
matter)

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
"Larthusza" <Th****************@Yahoo.comwrote in message
news:12*************@corp.supernews.com...
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 Access per se 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 Delphi which uses MS Access tables and
which
are very small, 100 or so records, which runs across a network from a
UNIX
server but I can't get the path to work. It all works fine on my own
machine. For simplicity and testing purposes I have hard coded the path
something like:
http:\\www.myserver\myapplication\MyApp.Exe. The Delphi execute and the
Access DB are all in the directory: 'myapplication'.
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.

Incidently, a couple of Delphi apps which don't use a DB run fine and so
does my DB app if the Access db is on my machine but the Delph EXE file
is
on the Server.

Any ideas would be most welcome.

Ian Millward
Edinburgh

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




Jan 13 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.