*
The moose likes General Computing and the fly likes Access Files within the Network Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Access Files within the Network " Watch "Access Files within the Network " New topic
Author

Access Files within the Network

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hello All,
In our Organization all Our systems are connected in a Network .
Assume that i have some HTML Page in my C drive with path

C:\Practice\Om.html

Is it possible taht i can access this HtML Page from another System within the network .

(This is not a web application and not running in any server . )

Thanks


Save India From Corruption - Anna Hazare.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Sure, it's possible.

I know you're going to ask how, so I will just suggest the most obvious alternative: create a share on the C:\Practice directory and have the other machines map a drive to that share.
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

I know you're going to ask how


My question can he access by typing :

http://myhostName/C:/Practice/Om.html on to the browser ??
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

No, using the html: protocol assumes that you are running a web server on the host. Instead, each user mujst connect to that share and then access the file using the file: protocol. For example, assuming the the directory c:\Practice on host MainHost is shared as the share name Stuff, and that a user connected to \\MainHost\Stuff as drive E:, the the user would enter file:///c:/Om.html in the browser. You could also enter file://MainHost/Stuff/Om.html


JBoss In Action
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thank you very much .
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

Ravi Kiran Va wrote:
I know you're going to ask how


My question can he access by typing :

http://myhostName/C:/Practice/Om.html on to the browser ??


Surely, it would have been quicker to try it out than asking on the forums and waiting for an answer?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

Ravi Kiran Va wrote:
I know you're going to ask how

So someone takes the time to try and help you and you snarl at him?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Access Files within the Network
 
Similar Threads
page pagination
Setting up Cruise Control with SVN and Ant
Is anyone else having trouble with this thread?
problem with tomcat4.0.4!!
page initialization paramenters..