Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 6th, 2007, 03:45 AM
harry123 harry123 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 4 harry123 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 5 m 45 sec
Reputation Power: 0
Accessing shared files and folders on LAN in java

Hi everybody,
can anyone tell me the code in JAVA to access shared files
and folders on LAN. I want all the files and folders shared
by specific computer using JAVA please tell me the code.
My project in LAN Search Engine
Please help me
- harry123

Reply With Quote
  #2  
Old April 6th, 2007, 11:41 AM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 552 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 9 h 1 m 33 sec
Reputation Power: 14
shared files

Hi harry123, welcome to the forums,
I am confused. Are you looking for a JAVA solution or a javascript solution?
"Search engine"? I think the best way would be to use your systems "administrator" functions to do this, most likely you just need to find out where the utility is.

Reply With Quote
  #3  
Old April 7th, 2007, 01:47 PM
harry123 harry123 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 4 harry123 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 5 m 45 sec
Reputation Power: 0
help

hi
actually i am looking for java solution can you please
tell me the code for that?????
-harry

Reply With Quote
  #4  
Old April 9th, 2007, 06:13 PM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 552 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 9 h 1 m 33 sec
Reputation Power: 14
shared files

After you log on to your server enter either
net file
Quote:
Displays the names of all open shared files and the number of file locks, if any, on each file. You can also use this command to close shared files. When used without options, this command lists all of the open files at a server. You can also type this command as net files.
or
net share
Quote:
Creates, deletes, modifies, or displays shared resources. Use this command to make a resource available to clients. When used without options, this command displays information about all of the resources being shared on the server.
or
net status
Quote:
Displays a server's computer name, configuration settings, and a list of shared resources.
or
net view
Quote:
Displays list of servers or displays resources being shared by a server.

Reply With Quote
  #5  
Old April 10th, 2007, 02:55 AM
harry123 harry123 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 4 harry123 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 5 m 45 sec
Reputation Power: 0
help

hi,
There is error displayed on screen "system error 5 has
occured Access is denied " when i typed net file or
net share on prompt
When i typed net view on prompt it will display names
of computers on LAN and also folders in computers when i type net view \\compname but cannot get names of suibfolders in it.
Please tell me about errors occured after net file ,net share
commands

Reply With Quote
  #6  
Old April 10th, 2007, 07:41 PM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 552 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 9 h 1 m 33 sec
Reputation Power: 14
permission

Those commands require high level permissions since they "close files, create, delete, modify" etc.
There are several other possible reasons as well.
  • Time Synchronization problem.
  • Firewall and/or third party product may eliminate connection to the remote computer.
  • account isn't active or expired account password
You could try using:
Code:
\\computername /user:username

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > Accessing shared files and folders on LAN in java


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap