This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connect to windows over network

 
Jagadeesh Kumar Sastry.K
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have a requirement where i need to connect to windows over network using my windows credentials and search for a string in particular location. Can somebody let me know how to do that using a java program.

Thanks in adavance,
Jagadeesh.K
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy, Jagadeesh!

Champ, is there any chance that you can do this by creating a server, using either RMI or Sockets? For instance, there is a server and you simply connect to it and invoke a method that returns this String... is this possible?
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of "location" would you be searching in? If it's in a file then you can access files across a Windows network using JCIFS. Of course if the network you referred to isn't a Windows network but is something else (like the Internet for example) then that isn't going to work. You didn't really provide a lot of details but perhaps JCIFS is the answer to your requirement.
 
Jagadeesh Kumar Sastry.K
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul,

Yes, this is a windows network only. The requirement is, am creating a tool, which works like a search tool. If you provide a string to the tool, it should search in windows machines across the network in a specific location and write into a file. This eliminates manual work of logging into every machine and look for specific data.

Hope it is clear now.

Thanks for the info Robert, but am not sure either sockets or RMI will work in this case.

thanks,
Jagadeesh.K
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then JCIFS should be perfect for that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic