Reputation: 1
I am syncing date and time on my three computers on a network without internet.
I have a command on cmd net time \\PCNAME /set /y
seems working, now my problem is how will I execute this as a query on my C# program?
Upvotes: 0
Views: 505
Reputation: 13450
Easy :)
System.Diagnostics.Process.Start("CMD.exe", @"net time \PCNAME /set /y");
Upvotes: 1