• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Connect to windows over network

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 2292
3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Then JCIFS should be perfect for that.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic