This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.
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?
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
Joined: Jun 12, 2007
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.