Hi
i want to synchronize client system clock with server system clock. When i execute command "NET TIME \servertosynchwith /SET /YES" through command prompt, it works well.
But when we execute it through java program, it doesn't gives error, but also doesn's works. Client system clock remains as it is.

I want to synchronize client -server system clock times through java program.

Have you tried appending cmd.exe to your query like this: "cmd NET TIME \servertosynchwith /SET /YES" I think that should work, you have to call command prompt with arguments which will be the "NET..."

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.