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

dos to unix path & \ / slashes

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
6 2658
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Dave | last post by:
Hi everyone, I wonder is there a way in php for it to find out if the system is a windows or unix based system. I read $_ENV is set on windows but not unix but it does not seem to work. Thanks...
3
by: Travis James Kleeburg | last post by:
I am trying to copy files from one directory into another using shutil.copy. I am having a problem getting a usable path using os.path.abspath because it doesnt return a string with the extra...
2
by: Rob Cowie | last post by:
Hi, Given a string representing the path to a file, what is the best way to get at the filename? Does the OS module provide a function to parse the path? or is it acceptable to split the string...
12
by: Xah Lee | last post by:
Python Doc Problem Example Quote from: http://docs.python.org/lib/module-os.path.html ---------- split( path) Split the pathname path into a pair, (head, tail) where tail is the last...
3
by: Randy | last post by:
Hello All, I'm getting a strange error when trying to perform a file upload. Here's the lines that uploads the file... sSaveLocation = Server.MapPath("PFPDocs") + "\\" + fileName;...
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...
8
by: kj | last post by:
How can a script know its absolute path? (__file__ only gives the path it was used to invoke the script.) Basically, I'm looking for the Python equivalent of Perl's FindBin. The point of all...
5
by: Kyle Hayes | last post by:
Is there a way to use the 'r' in front of a variable instead of directly in front of a string? Or do I need to use a function to get all of the slashes automatically fixed? /thanks -Kyle
6
by: Marcin201 | last post by:
Is there an built-in functionality in python to convert Windows paths to Unix paths? I am running into problems when creating data files on Windows and the running them on a Unix platform. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.