Monday, May 24, 2010

How to shutdown windows using a java program??

I had an idea is to run the shutdown exe:


public class shutdown


{


public static void main(String[] args)


{


try


{


Runtime rt =Runtime.getRuntime();





String s = "C:\\WINDOWS\\system32\\shutdown.exe -s-t- 01";


Process p =rt.exec(s);


}


catch (Exception ex)


{


ex.printStackTrace();


}


}


}











but nothing happen I don't get an error but the computer don't shutdown please if somebody know how please help

How to shutdown windows using a java program??
Runtime.getRuntime().exec("cmd /c shutdown -r -f");
Reply:Java is for applets embedded in html





just push the reset on front of your computer or unplug it and plug it back in and pust start button on the front of your computer





I cant help u out much more than that


dont really know what u r doing in that ?
Reply:I think C++ might be a better language to do that


Sending Emails through vb.net?

Dim MMsg As MailMessage = New MailMessage


MMsg.BodyEncoding = Encoding.Default


MMsg.From = "asdf@hotmail.com"


MMsg.To = "test@gmail.com"


MMsg.Subject = "Email with Subject Demo"


MMsg.Body = "This is the main body of the email"


MMsg.Priority = MailPriority.High


MMsg.BodyFormat = MailFormat.Html


System.Web.Mail.SmtpMail.SmtpServer = "127.0.0.1"


System.Web.Mail.SmtpMail.Send(MMsg)


lblmsg.Text = "Message sent successfully!"


This code successfully run no exception occurs but mails are not being recived on the TO Address and mails are still in the folder ie,"C:\Inetpub\mailroot\Queue". how to solve it

Sending Emails through vb.net?
I'm guessing you have a problem with your sending server, I don't think the problem is in this code (some parts of it are elipsed, so I can't say for sure, but it looks right). If the messages are in the queue then I would say the server is not sending them.
Reply:I think that your problem is that your server is not configured yet.You see "System.Web.Mail.SmtpMail.SmtpS... = "127.0.0.1"", taht means that you use as smtp server your local server, 127.0.0.1 is the local server's IP.I don-t know how you can configure this server on windows servers but I sugest you to use google.there you must find something
Reply:reinstall your windows or linux.I`m sure you are virused%26gt;%26gt;


Neg. HPT. still feeling light symptoms, only spotted on 2 day late period. could i be preg? need help?

i know right away most of you are going to say 'retest in a couple of days'. i just need to know the likelyhood for a friend of mine. her symptoms were similar to that of her second pregnancy. she's concerned about pre-ejac. during her fertile time. she's never been late on her period (with an obvious exception of pregnancy) in the past 13 years she's had it. she is highly stressed, but has been in similarly stressful positions before. i don't think she could be b/c if she's feeling symptoms, she would pop positive. the light spotting (light pink) indicates implantation bleeding to me, and in that case she wouldn't have symptoms for another 2 days. it's confusing... this is why i'm asking for your advice. so please don't jump to the regular "OMGeeeeeeee, am i Prege!?!?!?" answers.... this isn't that kind of question. and i've already told her to retest if her period is a no-show by friday. but i'm curious of the liklihood. thanks!

Neg. HPT. still feeling light symptoms, only spotted on 2 day late period. could i be preg? need help?
I have had 2 negative HPT and still have all the classic symptoms of pregnancy. I have a dr. appt. tomorrow for blood testing. The thing about the HPT is that it only measures the amount of the pregnancy hormone in your urine. This is different for every woman and different stages of pregnancy and even varies in levels throughout the day. The number one cause of false negatives in HPT's is testing to early. So your friend should take another test and period is still a no show and she is still having pregnancy-like symptoms should go in for a blood test.

salary survey

Vb.net remoting?

Hi!,





I am developing a chat system using vb.net in vs 2005. I am getting the following error while registering the events.





error details: System.InvalidOperationException was unhandled


Message="An error occurred creating the form. See Exception.InnerException for details. The error is: Type System.DelegateSerializationHolder and the types derived from it (such as System.DelegateSerializationHolder) are not permitted to be deserialized at this security level."


Source="ChatApplication"


StackTrace:


at ChatApplication.My.MyProject.MyForms.Cre... Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb... 190


at ChatApplication.My.MyProject.MyForms.get...


at ChatApplication.Client.Main() in C:\tests\chatSol\ChatApplication\Client.... 8


at System.AppDomain.nExecuteAssembly(Assemb... assembly, String[] args)


at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)


at Microsof

Vb.net remoting?
anyway to put the code here so I can look at it?


What do you think about an off season stock car series?

...Let the drivers take any stock American car made between 1950 and 1980 and let them build their own stock cars with engines lower than 300 c.i. and race them on a few tracks, Maybe have a race every two weeks





...Bring back the Pontiac (Trans Am), the old Mustangs, maybe the 55 Chevys, and the old Plymouth Road Runners (etc). They would have to keep the cars body shape in original non modified shape (exception would be removing lights and things that would leave debris on the track).





...How well do you think this would go over as compaired to Nascar provided the drivers were all current Nascar drivers driving their own personal choice of hotrods?

What do you think about an off season stock car series?
I wouldnt mind seeing it. I dont know if you could get enough good drivers to do it. Another thing they would have to battle is the weather, they let them use snow chains.
Reply:i just want all year around irac and nascar (how that)
Reply:Alot of the Nascar Guys run some late model on dirt tracks. But I dont see them risking life and limb for a $200.00 to win First Prize. They make 200.00 an hour off interest on their Bank Accounts!!!!!!
Reply:The cars you describe, are the Charger Division at my local Short track. There are still Stock divisions. Move to a warn and active region and you can find Winter Heats that have local racing. Wasn't profitable here I guess, so there is very limited racing in the winter season here.
Reply:Sounds like every saturday night at alot of tracks around the nation. It sounds awsome I enjoy it every week.
Reply:Run winter races at Daytona as a "senior" tour, all the retired drivers will be living in Florida anyway
Reply:cool idea
Reply:Taco......!








You grew another head.
Reply:There are some parts of the country that has winter racing..In Az and some parts of Calif.. Come on Nascar fans, our guys give us Feb thru Nov, thats 36 weekends of racing...They need some time off to be with there families and friends..and get ready for the next season... I'm having Nascar withdrawl syndrome right now...but I keep telling myself 84 days till Daytona 500, is not that far off.. We just got over Thanksgiving, next is Christmas, then New Yrs...then Daytona is just around the corner....





Go Dale Jr %26amp; Hms in 2008
Reply:hmmmm ?
Reply:First of all we need a race channel that isn't run by NA$CAR. When that happens then maybe it will be worth the time but trust me on this there are many series around the world that we don't get to see as it is because we have a lame *** race channel called SPEED. What you see today on SPEED is not what made the famous as The Speed Channel. If you were a fan of racing you maybe able to remember when you came home from work and done with dinner or supper you could turn the TV on to the Speed Channel and watch racing. Try it today my friend. What you get now you can find on just about any discovery channel or old movie channel.


I doubt if I would watch it but I am sure there are a bunch of brainwashed NA$CAR fans that would. I am so un into NA$CAR right now but love racing I thought you were going to try some sort of non NASCrap thing until I read what your other question was about.
Reply:I'm all for it, throw some snow tires on them babies and let's go racin!
Reply:I would like it

survey

Looking to buy a nice used car for under $25,000 with decent mileage... your 2 cents will help!!?

So far, my prefernces are:





1. Acura TL w/ Navi ( model 2004 -2007)


2. Jaguar X-Type (2004-2007)


3. BMW 3 Series (2006...if lucky enough to find)


4. Mercedes Benz C Class (2005-2007)


5. Acura TSX (2004 - 2007)


6. Mazda RX8 (2004-2007)





I guess you figured that I'm looking for a luxury sport car. Mazda RX8 being the only exception. I just wanted a broader input... any suggestions and POV will be appreciated.





Thanks!

Looking to buy a nice used car for under $25,000 with decent mileage... your 2 cents will help!!?
you seem to like acura(which is made by honda). just to let you know, jaguar and mazda is now made by ford so i'd eliminate those from the list because ford is very unreliable. the c-class and the 3 series are way too small for a luxury car so i'd get rid of those too. so your left wit the acuras. TL is a bit bigger and more fun to drive. so that is what i recommend.





if u are looking for any other cars, i highly recommend the infiniti G35 (probably a '04 or '05) i dont have one but my uncle has one and its fun just to ride in it
Reply:It is foolish to go for a luxury car if you are on a budget. There are any number of Toyotas, Hondas, and other inexpensive brands that will give you far more car for your money. Check Consumers Reports for detailed ratings.
Reply:I would suggest all of these. All very good brands. I, or my family, has owned all of these, but Mazda.
Reply:Hi Ahmed,


We are from GLOBAL NET INTERNATIONAL (SINGAPORE) PTE.LTD car export company.





please Visit our website to choose your used cars http://www.globalnet.com.sg .We got snapshots of all the cars available. as for your we have mercedez benz C,S,A,E classes, BMW ,





Email me to: shifan@globalnet.com.sg





Provide us the following details:





1. Model of the cars(BMW 318iA, 520,728,Benz E200,320,Toyota.......ect)





2. Year of the cars (1995-2000,2000-2005........)





3.shipping port





Our payment method is 100% TT before the shipment.





Please feel free to contact us.





waiting for your reply.








Best regards,


Shifan


Sales and marketing


Global Net International (Singapore) Pte.Ltd


Mobile: +6581803292 / 90426959


+6562252042


Fax:+6563965119


www.globalnet.com.sg
Reply:Get a look here


http://www.toponegoods.com/car
Reply:personally the jaguar xtype aslong as it is a 3.0 it is faster than any of those up there plus it is allwheel drive asfar as ford owning them ford bought the company but a jag is still a jag, daimler bought mercedes but a chrysler is no benz so do the math as far as the 3 series beamer 2005 and up fat chance at 25 grand and as far as the c class only if it is a kompressor i own an xtype 2005 and a c320 kompressor and i like my jag much more in looks and power but as far as the rest i would forget the 2 rice burnners and the mazda , hey look either way you go with jag, benz or beamer you join a european lifestyle and you cant go wrong there
Reply:Seems like your a vain guy, all those cars you listed are quite boring and pointless but attempt to look like you make some money.





Id go with the 1987 cougar. Spacious and economic. Ideal


What does this mean? I'm trying to play pogo...And how do i fix it asap!?

An unexpected error has been detected by HotSpot Virtual Machine:


#


# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d6f2bf9, pid=188, tid=2672


#


# Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03 mixed mode, sharing)


# Problematic frame:


# C 0x6d6f2bf9

What does this mean? I'm trying to play pogo...And how do i fix it asap!?
You need the latest version of JAVA for Pogo, I know, I'm a member, Pogo is FUN! :)





Go here and download and install the latest version of Java:





http://java.com/en/download/index.jsp





Java Virtual Machine is ooolllldddd, and no longer supported I believe.
Reply:ur computer doesn't support something that pogo is tring to run ur computer might be too old or newer and just not up to date on the software that the web-site needs to run on.