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


RE: Batch file to shutdown computer. - ßeowulf - 11-07-2009

(11-04-2009, 03:15 PM)Extasey Wrote: 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).

What do you mean by a cmdExit button?


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

A commandbutton that exits the program.

Code:
Private cmdExit_click ()
End
End Sub



RE: Batch file to shutdown computer. - jnagoh - 12-10-2009

exactly. doing it like that would be simple, just not very visual


RE: Batch file to shutdown computer. - nextlive - 12-25-2009

you cant do it in batch
you can do it but it will be a cmd window

Code:
@echo off
title Shutdown
@mode con cols=35 lines=5
color 1f
echo Shutdown? (Y/N)
:a
set /p option="> "
if /i %option%==y shutdown -s
if /i %option%==n exit
goto a



RE: Batch file to shutdown computer. - cheeseburger - 12-25-2009

I wanted to this with javascript/active X


RE: Batch file to shutdown computer. - Ireqom - 12-25-2009

(11-04-2009, 01:25 PM)Climate Wrote: If Im not wrong then this could be easily done in Autoit.

Yes it is.
You just have to download Autoit for free and read some tutorials ;) And BAM! Magic is done! haha Big Grin


RE: Batch file to shutdown computer. - Extasey - 12-26-2009

Meh, i'm over it now. Thanks for your continued support, but i'm not fiddling with custom shells anymore. The program I made was pretty asthetically pleasing and suited the theme of my computer pretty well, but the shell was too unstable for me to continue using. Windows 7 looks good enough anyway...


RE: Batch file to shutdown computer. - MarkW7 - 12-29-2009

You can shutdown in batch but i'm not sure about making a popup, although it can be achieved in python.


RE: Batch file to shutdown computer. - SlimDeath - 11-14-2010

I had a batch file which can shutdown computer but i've recently lost it,if i find it again,i'll share it with you mate.


RE: Batch file to shutdown computer. - Beautiful - 11-14-2010

You can do an OK with msg *