Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Batch file to shutdown computer.
#1
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)
Reply
#2
I don't think you can do this in batch, but i'm pretty sure you can do it in VBS.
FREE PSN CARDS, XBOX LIVE, GAMES + MORE VIEW THREAD Here Yeye
Reply
#3
Yeah, I'm just going to make a splash screen type application with two buttons.

(in Visual Basic)
Reply
#4
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?
FREE PSN CARDS, XBOX LIVE, GAMES + MORE VIEW THREAD Here Yeye
Reply
#5
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)
Reply
#6
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?
FREE PSN CARDS, XBOX LIVE, GAMES + MORE VIEW THREAD Here Yeye
Reply
#7
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...
Reply
#8
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
FREE PSN CARDS, XBOX LIVE, GAMES + MORE VIEW THREAD Here Yeye
Reply
#9
If Im not wrong then this could be easily done in Autoit.
[Image: Nyan.jpg]
Reply
#10
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).
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pass Generator Batch script AceInfinity 0 903 09-30-2012, 10:17 PM
Last Post: AceInfinity
  Batch tutorial goes here? fanta 3 1,521 05-22-2012, 09:25 PM
Last Post: AceInfinity
  [Batch] Trick - View Environment Variables AceInfinity 0 976 05-05-2012, 07:01 PM
Last Post: AceInfinity
  [Batch] Quick Drive Information Script (Created by AceInfinity) AceInfinity 17 7,248 02-09-2012, 08:10 AM
Last Post: AceInfinity
  [Batch Game] Rock, Paper, Scissor by Hack0pz hackopz 3 2,573 01-22-2012, 05:17 PM
Last Post: AceInfinity

Forum Jump:


Users browsing this thread: 2 Guest(s)