Support Forums
Batch file to shutdown computer. - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Computer Support Topics (https://www.supportforums.net/forumdisplay.php?fid=4)
+---- Forum: Microsoft Support (https://www.supportforums.net/forumdisplay.php?fid=5)
+---- Thread: Batch file to shutdown computer. (/showthread.php?tid=2504)

Pages: 1 2


Batch file to shutdown computer. - Extasey - 11-03-2009

There isn't really a section for this, so I'll post it here.

I'm currently tricking out my desktop and I would like to make a small batch file that when I click it it asks "Are you sure you want to shutdown?" with two buttons, Okay and cancel.

Can anyone enlighten me on how to make the question an alert (pop out) message?

I haven't done anything with batch files in ages, and I'm not sure what to search in Google. All that is returned is the echo function (do not want)


RE: Batch file to shutdown computer. - Codine - 11-03-2009

I don't think you can do this in batch, but i'm pretty sure you can do it in VBS.


RE: Batch file to shutdown computer. - Extasey - 11-03-2009

Yeah, I'm just going to make a splash screen type application with two buttons.

(in Visual Basic)


RE: Batch file to shutdown computer. - Codine - 11-03-2009

Yeah, that would probably be your best bet. But then how are you going to get the ok or cancel button to work in the batch? Wouldn't it be best to make it in visual basic?


RE: Batch file to shutdown computer. - Extasey - 11-03-2009

I didn't think that far ahead! haha, I have no idea :S

I can also use pictures as buttons in VB.

I've coded it, I just want to make it fade in (splash screen style)


RE: Batch file to shutdown computer. - Codine - 11-04-2009

Yeah, i'd stick with just building it in vb to be honest, it would be so much easier. May i ask why are you actually making this, bordum? or do you actually need it?


RE: Batch file to shutdown computer. - Extasey - 11-04-2009

I actually need it, haha.

I'm currently customizing my desktop with BBLean blackbox shell. Thought it would be cool to put some power/restart buttons in the top corner...


RE: Batch file to shutdown computer. - Codine - 11-04-2009

Ahh i see, i think i could make some use of this too, if your willing to send me it after you've created it. Smile


RE: Batch file to shutdown computer. - NekoChan - 11-04-2009

If Im not wrong then this could be easily done in Autoit.


RE: Batch file to shutdown computer. - Extasey - 11-04-2009

I don't really know what that is, But I would like to do it in VB as I need to jump back on the horse. I have stopped coding for so long and now I've started to forget things (such as how to make a cmdExit button).