Re: Network path name



Joe,

Thank you for your response.

I apologize for wasting everyone's time with this issue.
I answered my own question, when I realized that
the application should run the same (from anywhere)
with a hardcoded path. So, I went back and checked
my code and found a "stupid" programming error with
path name. I guess, that's why I was suprised with the
application's behaviour.

Now, after the code fix, the program runs OK from a
HTTP link or from the run command line.

My apologies,
-jc

"Joseph M. Newcomer" wrote:

The parth would not be

\\192.68.0.7\appname\appname.exe

unless appname is a network share you are exporting, and appname.exe is in the root of
that share. Or, if you are using http:, if the executable is in your default HTTP folder.
But that's because of how HTTP: expands the path. A CreateFile does not apply the same
rules to expanding the path. You are comparing what a Web server does to what the file
system does underneath it, without asking how the Web server finds the file. You would
have to apply on the client side the same transformation the Web server applies on the
server side. Why should you be surprised that they are incompatible?
joe

On Sat, 7 Feb 2009 20:38:01 -0800, jc <jc@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Joe,

Thank you for your response.

I am unfamiliar, with trying to programmatically access network files.
But, this is kind of strange to me.

If I execute the application from the "Start" "Run" command, then
the program finds the configuration file OK (without the share name).
run: \\192.68.0.7\\appname\appname.exe

But, If I try to execute the program from a browser
http://192.168.0.7/appname/appname.exe. The application runs,
but it does not find the configuration file??

I hardcoded the configuration file path \\192.168.0.7\\appname\appname.cfg.
So, the application is using the same path, regardless if it was started from
the "Run" command or from a browser.

Any ideas?

Thanks,
-jc


.

Bu

"Joseph M. Newcomer" wrote:

Is the C: drive shared out as "C"? Is it shared at all? I tried a few experiments here,
and it only works when I use the proper sharename (for example, one of my machines shares
its C: drive as Q:, so \\192.168.168.4\c\*.* does not work, but \\192.168.168.4\q\*.*
works as expected).
joe

On Sat, 7 Feb 2009 19:02:01 -0800, jc <jc@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Hello,

I am having trouble accessing a file through our intranet.
I specify, in the application, the following path:

\\\\192.168.0.7\\c\\appname\\appname.cfg

The actual path on the 192.168.0.7 server is:
c:\appname\appname.cfg

What am I not including, in my application, for the path?

TIA,
-jc

Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm

Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm

.



Relevant Pages

  • Re: Network path name
    ... Or, if you are using http:, if the executable is in your default HTTP folder. ... without asking how the Web server finds the file. ... with trying to programmatically access network files. ... the program finds the configuration file OK. ...
    (microsoft.public.vc.mfc)
  • [NEWS] Trend Micro InterScan VirusWall HTTP Proxy Content Scanning Circumvention
    ... Trend Micro InterScan VirusWall contains an HTTP proxy that prevents users ... from downloading virus-infected content by scanning the data received from ... a web server before passing it to the client. ... The Trend Micro InterScan VirusWall HTTP proxy contains a configuration ...
    (Securiteam)
  • Building Web from local drive map
    ... I've run into an issue building a web using a local drive map. ... When you attempt to run the page from the web server you get the following ... An error occurred during the processing of a configuration file ... Attempting download of new URL ...
    (microsoft.public.vsnet.ide)
  • RE: outlook and exchange
    ... Outlook using RPC over HTTP from the PC. ... Click To Do List and then click "Connect to the Internet". ... "Create a new Web server certificate", ...
    (microsoft.public.windows.server.sbs)
  • Re: Location of DocumentRoot or www on Leopard...
    ... This is the one that shows the Apache page. ... The main configuration file is here: ... administering the Apache web server, but at least reading the file may ...
    (comp.sys.mac.system)