.NET Framework - script to check and switch disk online/offline status

Asked By cmskzha
16-Dec-09 11:43 AM
Hi,
I am trying to script following commands

diskpart
select disk 1
onlnie disk

Is there a WMI/WSH solution to it?

regards,

Kai
Kai
(1)
Propertiesbut
(1)
Diskpart
(1)
Onlnie
(1)
Years
(1)
WSH
(1)
  asdf replied to cmskzha
27-Dec-09 03:46 AM
you are posting the safe properties

but  are not assigning or executing.


---------------------------------------------

user 'older' (some years components)
to be on the safe site again.
Create New Account
help
as a software professional now, but I did work in the computer industry for 32 years. In my experience, software professionals are people, each with their own motivations. Assuming everyone has like to eat too. . . . - - Wojtek :-) Watching it all come together in a project after 40 years still has the same excitement. I resigned from a good job 30 years ago to program again as a career telling colleges at the time that I may stand all virus attacks for 12 months" or "this software will not crash for 2 years, and if it does your loss will not exceed 20% of all digital assets managed in advance. - - James Kanze That's the way things were in software thirty or fourty years ago. But it is true that some people have relabeled the procedure, and are trying developers may be 1 in 10. I doubt it is more, because in my 25 years or so in the field, spread out over nearly 35 years, I have encountered hundreds of developers in many different employment settings as co-workers and unauthorized way that is better than the official process. Only rarely in the last thirty years have I encountered management alignment with known best practices. Nearly all projects I have worked
CSharpClass (1) Compact Framework (1) Visual Studio (1) Am 03.04.2010 15:32, schrieb Kai Wiechers: Wieso hast du LoadFrom nach Load ?bersetzt? ;) Mit LoadFrom geht's. - - Armin Weil ich in der DLL? Mit dem Object bekomme ich es nicht hin :( Sorry und Danke! Hallo Kai! Nunja, das ist nicht mehr ganz so einfach, wenn Du wirklich so drauf zugreifen willst etwas geholfen. Mit den besten Gr??en, Konrad Am 03.04.2010 19:51, schrieb Kai Wiechers: Und wenn du die wei?t, was machst du dann damit? - - Armin Hallo Konrad anf?ngt? Vielen Dank f?r Eure Hilfe! Am 04.04.2010 14:37, schrieb Kai Wiechers: Meinst du Schnittstellen im Sinne von Interfaces (Interface I: End Interface) oder auf die mit dienen. W?rst du aus (Mittel)franken, k?nnte ich mal vorbeikommen. ;) - - Armin Hallo Kai! Ok, das kann ich nachvollziehen. So wie ich das verstehe, ist also folgendes notwendig: a nicht ganz verdauen k?nnen :( Vielen Dank f?r Deine Hilfe! Gr??e aus Hamburg, Kai. Ich meine eine Schnittstelle im Internet die ich mit einem HTTP-Get oder per eMail sehr wollte ich Dich nicht in Anspruch nehmen. Freue mich wenn mir hier geholfen wird! Kai Hallo Kai! Als ersten Schritt definierst Du das Interface. Siehe: http: / / msdn.microsoft.com / en-us / library
drives, you will find warranties for consumer-quality hard drives in the neighborhood of three years. When a hardware manufacturer grants a warranty of three years, that is not how long the manufacturer expects the hard drive to live - it is hard drive may, on average, last that long or probably longer, perhaps up to five years or more, but somewhere in that range you should not be surprised if it fails computer last a good long while, I expect to replace hard drives at around five years. I may replace a video card during that time too, not necessarily to prevent failure but instead to boost video performance. My own current desktop machine is now seven years old, which is much longer than I usually keep a computer without replacement. My ordinary replacement cycle around ten or fifteen years ago was three years. At that time it was fairly short because of the rapid advances in CPU speed curve of performance increase has flattened out I extend my replacement cycle to about five years - just about how long you can expect a hard drive to run without problems. I
mu? ich beim Usercontrol wie einstellen, damit ich dies erreichen kann? Mit freundlichen Gr??en, Kai Paysen C# - German Discussions System.ComponentModel.Component (1) UserControl (1) Component (1) Control (1) SelektionsDialog (1) ColorPicker (1) Komponentenfach (1) Eigenschaft (1) Hallo Kai, Am Thu, 04 Mar 2010 17:01:01 +0100 schrieb Kai Paysen: Dann brauchst Du kein UserControl, sondern eine Klasse, die von System.ComponentModel.Component abgeleitet Hallo Marcel, vielen Dank f?r den Tipp, genau das habe ich gesucht. Gr??e, Kai Am 04.03.2010 19:43, schrieb Marcel Roma: Hallo Kai, Im Komponentenfach werden u.a. von Component abgeleitete Klassen angezeigt. Beispiel: [Komponenten einbinden und benutzen
it is very complicated for some reason. I would really appreciate help with this! Regards Kai - -- -- - = _NextPart_0001_83B40142 Content-Type: text / plain Content-Transfer-Encoding: 7bit Hi Kai, So the WCF service itself is ok and it can be consumed directly in a it is very complicated for some reason. I would really appreciate help with this! Regards Kai not application Have a look at this: http: / / weblogs.asp.net / cibrax / archive / 2007 / 10 09 / minimal-wcf-serverclient-without-app-config / - - Mike GoTinker, C# Blog http: / / www.gotinker.com Kai did you solve your problem. Even i am facing same kind of problem where i