PDA

View Full Version : restart windows


rhosk
10-29-2003, 02:51 PM
Is there a single command line executable that will simply reboot WIN98 thru XP? I think this would be a great feature in a future release (built-in) if not. Any good solutions out there?

I tried looking at "WinShut", but to use it commercially, wants a piece of the action.

Appreciate any suggestions.

Brett
10-29-2003, 04:00 PM
You could make a DLL that calls the Windows API function "ExitWindowsEx" and then call it from AMS40. Maybe Worm is looking for something to do tonight ;)

rhosk
10-29-2003, 05:35 PM
Thank you Brett :) I was just thinking of Worm. I'm sure there's a bunch of "if" statements that can be performed, but I was hoping that Worm would come to this rescue with one of his famous dll's. Heck, I may even pay him for his research/solution!! Not sucking up here, but he has saved my _ss on several occasions already!

Worm! I'm not worthy, but if you could be so kind!? Don't take this lightly...you should be a partner developer for IR!! Not a suggestion or a referral, but a humble opinion. I've learned much through your .dll downloads alone.

Patiently, I wait.

Corey
10-29-2003, 05:39 PM
We would be happy to integrate and market plug-ins, add-ons, and the like for Worm any time... Soon we will have a "plug-in marketplace" here and we hope very much that Worm will be part of that in a big way... :)

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

rhosk
10-29-2003, 05:54 PM
Like I said earlier, there have been many times that I've searched this forum and found what I was looking for and Worm has been a major part of my findings, and even though I find it in a past post - I never really come back and simply say thanks. Once again, I'm not trying to influence or "suck up" as it were, for my current dilemma; if I don't find the solution - no big deal! I'd just like to say thanks for the "problem solvers" like Worm and all the great people here. I mean that.

The software is awesome, the support is by far the best I've come across in years, and this community is second to none! I don't know how you guys do it, but please...keep it up!! This program has more potential than people realize. My head won't stop spinning with ideas.

Sincerely!

Corey
10-29-2003, 06:02 PM
The "how we do it" FYI is very simple. We are run by a single person who has an intrinsic commitment to quality. After that, it's all downhill... :)

As far as I can see the only companies on earth which do provide good value are exact same, it's the only formula for quality that exists, i.e. unless someone is willing to priortize service above profit it can't happen and no publicly owned company would ever do that in a zillion years. It might even be actionable with the SEC in most cases, i.e. "illegal" for a publicly traded company to prioritize "service" above profit. :)

Small software companies may be the final bastion of quality there is. Certainly it ain't Walmart or Pepsi. :) And I've worked in a lot of places and I can tell you that no one in the schools, ISPs, or web design companies will lose any sleep tonight over the fact if you aren't receiving %100 value for your dollar when buying their services...

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

rhosk
10-29-2003, 06:23 PM
Well Corey, I realize that you're a top spokesman for the company and (as it should be), you do a great job as well. There are obviously others that I've failed to mention, but believe you me, my sincere acclaims go out to them also! I'm just in a congratulatory mood this evening and since I've been working with this program, it's opening new doors for me and I can't say enough about what it does.

prioritize "service" above profit

Not lately in my recent associations! If you all just keep on doing what you're doing, you will be the epitome of a "model" company and what it should be with regards to your support and absolute concern for the quality that you mentioned. Not that I don't think that now. But, you know as well as I do that once a biz or Co gets what it wants/needs (whatever that may be), the concern for the cutomer goes downhill rapidly. Don't fall into that trap! I don't see signs of it whatsoever, but keep it up!

Worm
10-29-2003, 06:36 PM
Here ya go... This should detect whether it is Win9x or NT and set the appropriate permisions for shutdown. I don't have a 98 box to test on here at home, but it should work.

<IR_ACTIONS_LIST>
<Action name="Call DLL Function">
<Type>143</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<FileName>%SrcDir%\reboot.dll</FileName>
<FunctionName>reboot</FunctionName>
<FunctionParameters/>
<ReturnType>1</ReturnType>
<CallingConvention>1</CallingConvention>
<Variable>%DLLResult%</Variable>
</Action>
</IR_ACTIONS_LIST>

Worm
10-29-2003, 06:47 PM
Thanks for the kind words Rhosk. Truth be told, most of the DLLs I write are really nothing to grand. The bottom line is that they are usually helpful which is a good thing.

I've written utility after utility, and these DLLs are merely that. A small util, that serves a small purpose, in a large scheme. AMS and IR are the hereos here, without it/them, a small fry guy like me couldn't share the little bit of skill I have.

Corey
10-29-2003, 07:20 PM
At current there are no plans to do anything other in the future than exactly what we are currently doing. As far as I can tell we are just getting started really, over the next year you won't believe how much killer new stuff will be coming online here. 2003 was all about laying a broader, stronger foundation, whereas 2004 will be all about releasing tons of cool new stuff and expanding our user base...

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

rhosk
10-29-2003, 07:21 PM
Very modest of you Worm, as usual. I have a 98 box as well and I'll check in the AM :o Thanks yet again! Can't say it enough around here - there's no words.

rhosk
10-29-2003, 07:22 PM
Originally posted by Corey
At current there are no plans to do anything other in the future than exactly what we are currently doing. As far as I can tell we are just getting started really, over the next year you won't believe how much killer new stuff will be coming online here. 2003 was all about laying a broader, stronger foundation, whereas 2004 will be all about releasing tons of cool new stuff and expanding our user base...

Looking forward to it!

Corey
10-29-2003, 08:12 PM
I think everyone here admires Worm's modesty, even Ted Sellers... :)

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

JimS
10-29-2003, 08:23 PM
Can he dance? Man his moves are so slick even the early birds can't touch him. Who do you think taught MC Hammer his moves? It's Hammer time, can't touch this.

Worm
10-29-2003, 08:34 PM
Originally posted by JimS
Can he dance?

Me, or Ted?

Cause I'm a wild man when I'm on the dance floor!

http://www.warmuskerken.com/ams/wormdance.gif

Corey
10-29-2003, 08:43 PM
Ahhh, yes, "The Worm", shouldda known... :) Hee har...

Ted dances too, but it gets creepy after a few minutes, i.e. in college they called him Hans Solo because when he danced with the ladies he had hands so low... You have to keep one eye on Ted, you go meet him at the airport lounge for a quick Tom Collins and a foxtrot and the next thing you know he's got you signed into a timeshare. :)

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

JimS
10-29-2003, 09:05 PM
Of course I’m speaking about you Worm. Your moves are so legendary that even out here in Oregon, all the pretty girls swoon. Ted’s no slouch, but everyone knows that you’re the man with all the cool moves.

I hope that you don’t mind, but I’ve been known to do a little name dropping when I go out. If I see some good looking gal I want to meet, I mosey up to her (Out here in the West, all us guys mosey) and say something like “Hey babe, why don’t we cruise back to my crib, and I’ll let you check out the latest DLL by Worm”.

It works almost every time.

Corey
10-29-2003, 09:15 PM
I'll try that.

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

JimS
10-29-2003, 09:22 PM
Just remember to sprinkle a little talcum in your jeans before you mosey.:D

Corey
10-29-2003, 09:28 PM
I'm from Alberta, our jeans come pre-sprinkled here y'all.

I live 5 minutes from the Calgary Stampede, the world's largest rodeo. moseying is a pre-requisite before you rent a home here. They make you go out front and mosey around the lawn while they watch and judge, then you get the lease if all goes well...

Actually I'm joking. I couldn't mosey my way out of a wet paper bag...

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

JimS
10-29-2003, 09:36 PM
I understand, I’m from Pendleton, host to the word’s third largest rodeo. I’m one of only about four people in town that doesn’t own a pair of spurs.

Corey
10-29-2003, 10:01 PM
You should phone up the other three and start a rock band before it's too late, if you wait until it gets down to only three your background vocals will suck...

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

mx00
10-30-2003, 12:15 AM
hi..

you dont need a dll for reboot.

action file execute and put this

%SysDir%\shutdown.exe -r -t 00

for shutdown put this

%SysDir%\shutdown.exe -s -t 00


bye

Corey
10-30-2003, 12:19 AM
Very cool tip.

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

Worm
10-30-2003, 12:22 AM
That's true, but I thought that shutdown.exe was an NT/2000/XP thing. If memory serves me, Win9x doesn't have it by default.

Corey
10-30-2003, 12:42 AM
The plot stinkens...

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

Protocol
10-30-2003, 04:52 AM
Ted would be proud...

rhosk
10-30-2003, 05:01 AM
Just so everyone knows, Worm's reboot.dll works fantastic on XP as well as a WIN98 (fe) box. Just makes me confident that it should work on anything in between. If someone could be so kind as to check the interim OS's, this could easily be a permanent note/resource for everyone. I've searched high and low on the Internet and this is definitely a trade secret!! You cannot find a solution to this problem, even if you purchase software for it, as they all have limitations and different syntax on the specific systems.

MX00, your tip is great, but does not work on my WIN98 machine. Thank you though for the suggestion.

Thanks again Worm! :) Remarkable stuff!

Philster
11-05-2003, 09:20 AM
How does one use that DLL? :p

Worm
11-05-2003, 10:07 AM
Download the DLL and put it in your Distribution folder.

Copy the XML that I posted, and pasted it into your project in the Object/Event that you want to trigger the reboot from.

Philster
11-05-2003, 03:44 PM
haven't cut & pasted into applications yet, but I think I'll figure it out! Thanks! :D

Philster
11-06-2003, 02:04 PM
I have the user Click "Ok" to reboot the system... Where do I paste the code? It won't past into the action box.

Worm
11-06-2003, 02:13 PM
You should be able to paste it right into the click event.

Be sure you are copying from

<IR_ACTIONS_LIST>

through

</IR_ACTIONS_LIST>

then right mouse click in the action window and past.