VB.net code force All windows OS to Reboot.

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

I have create a small spyware detection utility. I'm looking for code
to restart windows prior to deleting some files.

Does anyone have a class that will do this. I search the msdn site
and found nothing. Clients are running 95-ME and 2000-XP
 
Will this help? http://www.mentalis.org/soft/class.qpx?id=7

I have create a small spyware detection utility. I'm looking for code
to restart windows prior to deleting some files.

Does anyone have a class that will do this. I search the msdn site
and found nothing. Clients are running 95-ME and 2000-XP
 
Peter,

This sample should do it completly

\\\
Public Class Main
Public Shared Sub Main()
Threading.Thread.CurrentThread.CurrentCulture = _
New Globalization.CultureInfo("en-AU")
'When you are not in the culture with this settingtis

MessageBox.Show(CDate("01-JUNE-2004 11:59 PM").AddDays(1).ToString)
'The above row is the only thing what is needed when it is in your own
culture setting

'And set the culture back when it was not your own culture
Threading.Thread.CurrentThread.CurrentCulture = _
Globalization.CultureInfo.InstalledUICulture
End Sub
End Class
///

I hope this helps a little bit?

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top