Connecting Tech Pros Worldwide Help | Site Map

dos to unix path & \ / slashes

Larthusza
Guest
 
Posts: n/a
#1: Dec 13 '06
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

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




Douglas J. Steele
Guest
 
Posts: n/a
#2: Dec 14 '06

re: dos to unix path & \ / slashes


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" <ThisIsNotMyAddress@Yahoo.comwrote in message
news:12o048tpss514e1@corp.supernews.com...
Quote:
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
>
(\__/)
(='.'=)
(")_(")
>
>
>
>

Larthusza
Guest
 
Posts: n/a
#3: Dec 14 '06

re: dos to unix path & \ / slashes


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:uDe9advHHHA.816@TK2MSFTNGP06.phx.gbl...
Quote:
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" <ThisIsNotMyAddress@Yahoo.comwrote in message
news:12o048tpss514e1@corp.supernews.com...
Quote:
>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
>>
>(\__/)
>(='.'=)
>(")_(")
>>
>>
>>
>>
>
>

Albert D. Kallal
Guest
 
Posts: n/a
#4: Dec 15 '06

re: dos to unix path & \ / slashes


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
pleaseNOOSpamKallal@msn.com



Albert D. Kallal
Guest
 
Posts: n/a
#5: Dec 15 '06

re: dos to unix path & \ / slashes


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
pleaseNOOSpamKallal@msn.com


Larthusza
Guest
 
Posts: n/a
#6: Dec 16 '06

re: dos to unix path & \ / slashes


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" <PleaseNOOOsPAMmkallal@msn.comwrote in message
news:%23FC0F59HHHA.1264@TK2MSFTNGP06.phx.gbl...
Quote:
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
pleaseNOOSpamKallal@msn.com
>

Guest
 
Posts: n/a
#7: Jan 13 '07

re: dos to unix path & \ / slashes


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:uDe9advHHHA.816@TK2MSFTNGP06.phx.gbl...
Quote:
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" <ThisIsNotMyAddress@Yahoo.comwrote in message
news:12o048tpss514e1@corp.supernews.com...
Quote:
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
Quote:
Quote:
to do with Access per se but that is what I am using and I'm sure it is
no
Quote:
Quote:
great challenge to the excellent people who meet here.

I have made my application in Delphi which uses MS Access tables and
which
Quote:
Quote:
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
Quote:
Quote:
the table name. I think it is a Microsoft Windows thing but I'm not
sure.
Quote:
Quote:

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
Quote:
Quote:
on the Server.

Any ideas would be most welcome.

Ian Millward
Edinburgh

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


>
>

Closed Thread