CobbbDota
CobbbDota

Reputation: 1

Setting net time on C# program

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

Answers (1)

burning_LEGION
burning_LEGION

Reputation: 13450

Easy :)

System.Diagnostics.Process.Start("CMD.exe", @"net time \PCNAME /set /y");

Upvotes: 1

Related Questions