DIFFERENCES
Compares the contents of two disk files and displays a listing of
the records that do not match.
Format
DIFFERENCES input1-filespec \[input2-filespec\]
Oh, you wanted something for DOS/Windows? Can't help you there. :-D
You can use PsExec utility to restart a remote computer. Or you can use Remote Desktop Connection Application (mstsc.exe) to connect with remote computer and Shutdown. Restart,or if you remove the network, both will result a broken network connection.
-Sarath. "Great hopes make everything great possible" - Benjamin Franklin
My blog - Sharing My Thoughts
Yes, it's very easy. The most used one by me is "prop" for creating a property structure.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
Hi! Obviously you didn't use CP's Search function - there are several articles giving a good introduction.
Regards, mav -- Black holes are the places where God divided by 0...
Here is one example.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
Do you have an example for setting dynamic values in snippets? I'd love to be able to insert the current date automaically.
only two letters away from being an asset
You want to look into Sandcastle and the /doc operation in building your app.
Deja View - the feeling that you've seen this post before.
My blog | My articles
And since .Net 2 you can just use the handy properties in the Console class: Console.BackgroundColor Console.ForegroundColor Then just set them to Color.Red for example, background will obviously change the background colour, and Foreground will change the text colour.
My current favourite word is: Nipple!
-SK Genius
Imtiaz Murtaza wrote:
For this purpose i am using CreateProcess. What i want is that command prompt window shoul be launched with Administrative priviliges
have a look at CreateProcessWithLogon, CreateProcessWithToken, CreateProcessAsUser.
Johpoke wrote:
it will ask you for the password each time,
Better.
Johpoke wrote:
you could create a c++ program which emulates the keyboard pressing keys (this would be very insecure as you can easily to fetch out the password))
That would be a bad practice. Thanks for the cool code snippet. I am voting a '5'.
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
Ha, yeah, I just did a GACUTIL /L to list the contents. System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 is the only entry for System.
For XPath and XSLT, Michael Kay's books about XPath[^] and XSLT[^] are reasonably good - the guy knows what he's talking about... For a reference of different XML technologies, this[^] is good (and free!), although it only covers XPath 1 and XSLT 1 rather than version 2.