0

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?   

Phani Kumar M
  • 4,564
  • 1
  • 14
  • 26

1 Answers1

1

Easy :)

System.Diagnostics.Process.Start("CMD.exe", @"net time \PCNAME /set /y");
burning_LEGION
  • 13,246
  • 8
  • 40
  • 52