473,325 Members | 2,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

VB.net code force All windows OS to Reboot.

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
Nov 21 '05 #1
3 1739
Will this help? http://www.mentalis.org/soft/class.qpx?id=7

"Peter" <pe***@mclinn.com> wrote in message
news:dc**************************@posting.google.c om...
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
Nov 21 '05 #2
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
"Peter" <pe***@mclinn.com> schreef in bericht
news:dc**************************@posting.google.c om...
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

Nov 21 '05 #3
Peter,

Sorry wrong thread

Cor
Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Austin | last post by:
My program is running on windows and it is wrritten by Python and wxPython, built by py2exe. If my program is executed minimized, and the user want to shutdown or reboot. Meanwhile, my program...
10
by: Jesper | last post by:
Does anyone know some c++ code for shutting down windows? I want to write a program using borland c++ builder to shut down windows. --
0
by: ThunderMusic | last post by:
Hi, I'm trying to install VS.NET 2003 and it keeps asking me to reboot the computer for installing the first step. After rebooting, I try to install the first step, then it tells me again an...
1
by: Tim Marshall | last post by:
I've just received a new computer with Win XP Version 5.1.2600. I want to have Access 2003 and Access 97 running on this, so I did some googling on cdma and it seems I must install these versions...
0
by: Jake | last post by:
Hello, I apologize if I am posting in the wrong area. I have a vb.net app that I want to install. I have created the setup package but I need to force the workstation to reboot after...
51
by: Hans | last post by:
Hi all, Is there a way that the program that created and started a thread also stops it. (My usage is a time-out). E.g. thread = threading.Thread(target=Loop.testLoop) thread.start() ...
2
by: =?Utf-8?B?Qm9ybjJTYWls?= | last post by:
A security update was automatically received the week of 6/11/07 requiring my computer to reboot automatically. When it restarted, Windows would not reboot. I have tried to remedy the problem...
22
epots9
by: epots9 | last post by:
I forgot how to fix this, so i was wondering: how can i get my computer (WIN XP Media Center SP2) to auto select my user account at the logon screen? I only have one account setup with a password....
8
by: Juhein½juhein | last post by:
Hello. I have this strange problem when installing autocad lt 2006. Or actually I´m creating an administrative image when I´m trying to deploy the CAD. So the problem is this: First when I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.