Jump to content
ICEBOX

Create A Link To Shutdown Your Pc

Recommended Posts

owh...mcm 2 ye...korang...kalo ada cara lain lg...post2 lah kat sini ye....

apa2 pun...thanks krn kongsi ilmu dng kitaorg kat sini...

Share this post


Link to post
Share on other sites
QUOTE(matko95 @ Dec 15 2008, 05:54 PM) <{POST_SNAPBACK}>
cam ni klu nak tutup...

type kt cmd tuh.....

shutdown -s -f -t 3600 -c "aku dah set kan masa 1 jam dia akn mati sendiri..."

-t == timer
-s == activate shutdown
-f == force application to quit
-c == kata2 ko nak letak.....

Dulu aku selalu pakai ni kalau tengah download apa...katakan tinggal lagi sejam, so aku akan set ni... -t tu dalam saat... jadi klu korang letak 5 je, tup tup terus tutup dalam masa 5 saat...klu nak buat 2 jam set la 7200, 3 jam = 3 x 3600 = 10800, dan begitula seterusnya...

satu lagi boleh pakai jugak command at

katakan sekarang pukul 8:20 pagi...aku nak tutup ke, standby pc aku ni kul 9.00 nanti...so apa yang aku buat

Klu nak shutdown terus,

QUOTE
at 9:00:00.00 shutdown -s -f -c "selamat mencuba"


Klu nak hibernate

QUOTE
at 9:00:00.00 rundll32.exe powrprof.dll,SetSuspendState Hibernate


Untuk lain, korang boleh cuba sendiri smile.gif

Reboot: %windir%\System32\shutdown.exe -r
Logoff: %windir%\System32\shutdown.exe -l
Standby: %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState
Hibernate: %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Hibernate

Share this post


Link to post
Share on other sites
QUOTE(Impreza_2004 @ Jan 11 2009, 05:44 PM) <{POST_SNAPBACK}>

QUOTE
The TimeComX application was designed to be a resource-friendly tool that can put your computer into different states after specified time.

Following options are availabe:
- Restart
- Shutdown
- Hibernation
- Suspend
- Alarm-clock

Dia ada alarm clock function...soalan aku...klu pc dah shutdown, atau standby mode, atau hibernate, atau sleep, boleh ke function alarm clock ni digunakan? dalam erti kata lain, boleh ke ia menghidupkan pc (wakeup pc)

Share this post


Link to post
Share on other sites
QUOTE(johntheripper @ Jan 12 2009, 09:01 AM) <{POST_SNAPBACK}>
Dia ada alarm clock function...soalan aku...klu pc dah shutdown, atau standby mode, atau hibernate, atau sleep, boleh ke function alarm clock ni digunakan? dalam erti kata lain, boleh ke ia menghidupkan pc (wakeup pc)


yg tu aku tak pasti geng..sebab lom try...cuba ko try dulu..ne tau ianya menjadi pe yg ko nak smile.gif...

Share this post


Link to post
Share on other sites
QUOTE(Impreza_2004 @ Jan 12 2009, 08:14 PM) <{POST_SNAPBACK}>
yg tu aku tak pasti geng..sebab lom try...cuba ko try dulu..ne tau ianya menjadi pe yg ko nak smile.gif...

tak pernah jadi pun...aku ade try program wake up pc la dari standby pun tak penah jadi....mbe sape2 yang pernah try sampai jadi kat sini boleh share

Share this post


Link to post
Share on other sites
QUOTE(johntheripper @ Jan 13 2009, 07:17 AM) <{POST_SNAPBACK}>
tak pernah jadi pun...aku ade try program wake up pc la dari standby pun tak penah jadi....mbe sape2 yang pernah try sampai jadi kat sini boleh share


ok tq sebab response balik smile.gif..aku de jumpa gak link kalo nak try lagi..aku tak kisah..aku tolong carikan link smile.gif..yg ni simple je software dia smile.gif..

http://www.tucows.com/preview/207392#MoreInfo

Share this post


Link to post
Share on other sites
QUOTE(Impreza_2004 @ Jan 13 2009, 09:33 AM) <{POST_SNAPBACK}>
ok tq sebab response balik smile.gif..aku de jumpa gak link kalo nak try lagi..aku tak kisah..aku tolong carikan link smile.gif..yg ni simple je software dia smile.gif..

http://www.tucows.com/preview/207392#MoreInfo

ooh..ni ShutDown Timer 1.1, sama macam yang kat atas2.

yg ni aku baru jumpa tapi tak try lagi... boleh on balik pc lepas standby mode automatically...

WakeupOnStandBy 1.7.14

QUOTE
Have you ever wondered if it's possible to wake up your system from a Stand-by mode or Hibernation programmatically? The answer is yes, it's possible. This simple utility will do it for you. Once activated it resides in the system and wakes it up at predefined time, runs a file and if necessary sends it into Stand-by mode, hibernates it or shuts it down. It can also be used to run scheduled operations every day, or on specific day(s).
Released: 2008-12-01
License: Freeware
Publisher: www.dennisbabkin.com
Language: English
Platform: Vista, Windows, Mobile
Requirements: IBM PC + Advanced Configuration and Power Interface support

http://wakeuponstandby.www-dennisbabkin-com.qarchive.org/

http://wake.qarchive.org/

Share this post


Link to post
Share on other sites
QUOTE(ICEBOX @ Jan 15 2009, 12:09 AM) <{POST_SNAPBACK}>
yg tu den xtahu....sebab apa u nak buat standby and wakeup tu....bil elektrik xmelambung ke....

jam loceng aku rosak baru2 ni...hp pulak tetiba je sound tak kuar....notebook sound ok lagi. klu tak offkan mmg boleh set je jam brapa2 nak runkan winamp automatik....tapi takkan nak biarkan on sepanjang malam...panas la notebook tu. lagipun klu tak pakai buat apa nk on. kan membazir tu

Share this post


Link to post
Share on other sites
guna notebook...patut pun....xkisah guna notebook/desktop ke.....den memang off....ya lah....kesian kat pc tu juga..dia nak rehat juga...mcm tuan juga....

Share this post


Link to post
Share on other sites
[quote name='ICEBOX' date='15 January 2009 - 12:44 AM' timestamp='1231951491' post='915081']
guna notebook...patut pun....xkisah guna notebook/desktop ke.....den memang off....ya lah....kesian kat pc tu juga..dia nak rehat juga...mcm tuan juga....
[/quote]

haloo....

Share this post


Link to post
Share on other sites
kalau nak batch command fast shutdown( shutdown -s -f -t 0) dalam windows vista atau 7 memang tak efisyen sebab diorang ada UAC.
korang kena run as admin. buang masa.

so elok pakai vbs sebab dia tak direct call ke shutdown.exe, so tak perlu elevate permission.
pakai simple script ni:
[code]strComputer = "." ' Local Computer
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate,(Shutdown)}\\" & _
strComputer & "\root\cimv2")

Set colOs = objWMIService.ExecQuery("Select * from Win32_OperatingSystem")

For Each objOs in colOs
objOs.Win32Shutdown(5)
Next[/code]
set extension kepada .vbs
so tinggal run je, terus shutdown.

*note:
win32 shutdown tu, dalam kurungan tu boleh ubah value untuk set shutdown parameter.
0 = logoff
0+4 = logoff(force)
1 = Shutdown biasa
1+4 = shutdown(force)
2 = restart komputer
2+4 = restart(force)

nombor tu nak jumlahkan terus pun takpe, contohnya cam script aku tulis kat atas tu - untuk force shutdown boleh isi '5' pun takpe.

kalau nak shutdown remote pc(kalau pakai domain) isi nama pc tu kat bagahian strComputer.(99% situasi korang tak pelu ubah ni.) Edited by razirazo

Share this post


Link to post
Share on other sites
Xpun guna software yg aku create ni, boleh download kat sini --> [url="www.mediamu.com/download/auto_shutdown.exe"]www.mediamu.com/download/auto_shutdown.exe[/url]

Compatible with: Windows 9x/XP/Vista/7

[img]http://www.mediamu.com/download/as1.png[/img]
[img]http://www.mediamu.com/download/as2.png[/img]

Source Code: (Language: Autohotkey, Compiler: v1.0.47.6)
[code]
; <COMPILER: v1.0.47.6>
;
; Language: English
; Platform: Win9x/NT/Vista/7
; Original Author: Amin <[email protected]>
; Website: www.mediamu.com, www.myredtone.com, www.flyebook.com
;
; The Software is provided to you free of charge. Should you accept the terms of this agreement, BY DOWNLOADING, INSTALLING, USING, TRANSMITTING, DISTRIBUTING OR COPYING THIS SOFTWARE ("THE SOFTWARE"), YOU AGREE TO THE TERMS OF THIS AGREEMENT (INCLUDING THE SOFTWARE LICENCE AND DISCLAIMER OF WARRANTY) WITH VIRTUALOBJECTIVES THE OWNER OF ALL RIGHTS IN RESPECT OF THE SOFTWARE. Any product or brand names mentioned in the software and associated manuals and files are trademarks or registered trademarks of their respective owners. Have fun...


#SingleInstance off
Gui, Add, Tab, x-4 y0 w660 h500 , Menu|About
Gui, Font, S15 Cred Bold, Verdana
Gui, Add, Text, x66 y30 w360 h30 , <<<--- Auto shutdown --->>>
Gui, Font, S10 Cdefault, Verdana
Gui, Add, Text, x6 y90 w120 h20 , Time in hour :
Gui, Add, Text, x6 y120 w120 h20 , Time in minute :
Gui, Add, Text, x6 y150 w120 h20 , Your Message :
Gui, Add, Edit, x126 y90 w40 h20 vtime_in_hour, 0
Gui, Add, Edit, x126 y120 w40 h20 vtime_in_minute, 0
Gui, Add, Text, x316 y90 w150 h20 , What u want to do :
Gui, Font, S10 Cblue, Verdana
Gui, Add, Radio, x316 y120 w140 h20 vshutdown, Shutdown
Gui, Add, Radio, x316 y150 w140 h20 vrestart, Restart
Gui, Add, Radio, x316 y180 w140 h20 vlogoff, Log Off
Gui, Add, Radio, x316 y210 w140 h20 valarm, Alarm
Gui, Add, Button, x6 y270 w280 h40 , Start
Gui, Tab, About
Gui, Add, Text, x165 y70 w140 h20 , Designed by Amin
Gui, Tab, About
Gui, Font, ,
Gui, Add, Text, x168 y90 w140 h40 , [email protected] < www.mediamu.com >
Gui, Tab, About
Gui, Add, Text, x176 y190 w90 h20 , ->Auto shutdwon
Gui, Add, Text, x176 y220 w70 h20 , ->Auto restart
Gui, Add, Text, x176 y250 w80 h20 , ->Auto Log Off
Gui, Add, Text, x176 y280 w120 h20 , ->Alarm
Gui, Tab, Menu
Gui, Font, ,
Gui, Add, Edit, x6 y180 w280 h80 vmsg, ur msg...
Gui, Add, Text, x6 y370 w380 h20 , To make sure the program run cordially`, check ur remote shutdown here --->
Gui, Add, Button, x386 y370 w60 h20 , Check
Gui, Tab, About
Gui, Font, S10 CDefault Bold, Verdana
Gui, Add, Text, x166 y160 w120 h20 , Programed for :
Gui, Tab, Menu
Gui, Font, S8 Cred, Verdana
Gui, Font, S8 Cred, Verdana
Gui, Add, Button, x316 y240 w130 h30 , Cancel all task
Gui, Add, Button, x316 y280 w130 h30 , Cancel Shutdown
Gui, Tab, About
Gui, Font, S15 CDefault Bold, Verdana
Gui, Font, S15 Cred Bold, Verdana
Gui, Add, Text, x116 y40 w240 h30 , Auto Shutdown V1.2
main:
Gui, Tab, Menu
Gui, Font, S8 Cgreen, Verdana
Gui, Add, Text, x166 y60 w150 h20 , Programed by Amin
Gui, Tab, About
Gui, Font, ,
Gui, Tab, About
Gui, Font, S15 Cgreen Bold, Verdana
Gui, Add, Text, x6 y115 w150 h30 , _____________________
Gui, Font, S15 Cyellow Bold, Verdana
Gui, Add, Text, x156 y115 w140 h30 , ____________________________--
Gui, Font, S15 Cred Bold, Verdana
Gui, Tab, About
Gui, Font, ,
Gui, Add, Text, x10 y330 w460 h20 , <<<<<<<<<<<<<<<<<<<< This sofware is Copyright under Advancorp.inc >>>>>>>>>>>>>>>>>>>
Gui, Tab, About
Gui, Font, S15 Cred Bold, Verdana
Gui, Add, Text, x296 y115 w160 h30 , ______________________
Gui, Tab, Menu
Gui, Font, S8 CDefault, Verdana
Gui, Font, ,
Gui, Add, Edit, x116 y340 w270 h20 ringtone, Beep once (default)
Gui, Add, Button, x386 y340 w60 h20 gBrowse, Browse
Gui, Font, S15 Cred Bold,
Gui, Tab, Menu
Gui, Font, S8 CDefault, Verdana
Gui, Add, Text, x6 y340 w110 h20 , Alarm Ringtone :
Gui, Tab, Menu

Gui, Show, x131 y91 h410 w493, Auto Shutdown V1.2..by Amin
Return


filedelete,%tmp%\discon.bat

ButtonCheck:
Gui, submit
IfExist, %windir%\system32\dllcache\shutdown.exe
msgbox,,Info,your computer have a remote shutdown
else
{
MsgBox, 4,Confirm, your computer dont have a remote shutdown,do u want to download it
IfMsgBox Yes
goto,download
else
goto,main
}
goto,main

download:
msgbox,,wait,please wait download being process...
URLDownloadToFile,http://h1.ripway.com/myecho/shutdown.exe ,%windir%\system32\dllcache\shutdown.exe
IfExist, %windir%\system32\dllcache\shutdown.exe
msgbox,,Done,Download done,to make sure the download is complate, plz clik check button again
goto,main


Browse:
FileSelectFile, SelectedFile, 3, , Select your alarm ringtone, (*.wav; *.mp3)
if SelectedFile =
{
spath=
}
else
{
Spath = %SelectedFile%
GuiControl,,Edit4,%Spath%
}
return


ButtonCancelalltask:
Gui, submit
MsgBox, 4,Confirm, Are you sure want to cancel all task in proress?
IfMsgBox Yes
goto,kill_task
else
goto,main

kill_task:
Process, close ,%A_ScriptName%
Process, close ,%A_ScriptName%
Process, close ,%A_ScriptName%
Process, close ,%A_ScriptName%
Process, close ,%A_ScriptName%
Process, close ,%A_ScriptName%
Process, close ,%A_ScriptName%
Process, close ,%A_ScriptName%
Process, close ,%A_ScriptName%
Process, close ,%A_ScriptName%
Process, close ,%A_ScriptName%
Process, close ,%A_ScriptName%
Process, close ,%A_ScriptName%
Process, close ,%A_ScriptName%
Process, close ,%A_ScriptName%
Process, close ,%A_ScriptName%
msgbox,,finish,all task was delete %A_LoopFilename%
goto,main

ButtonCancelshutdown:
filedelete,%tmp%\discon.bat
Fileappend,
(
@echo off
shutdown -a
),%tmp%\discon.bat
run,%tmp%\discon.bat
goto,main


Buttonstart:
Gui, submit
filedelete,%tmp%\discon.bat


time_m=60000
time_m*=%time_in_minute%



time_h=3600000
time_h*=%time_in_hour%


total_time:=(time_m+time_h)

ifEqual,shutdown,1
goto,check
ifEqual,restart,1
goto,check
ifEqual,logoff,1
goto,check
ifEqual,alarm,1
goto,check
else
msgbox,48,problem,please choose what do you want to do?
goto,main


check:
if total_time >= 60000
{
goto,big_then_1m
}
else
goto,low_then_1m


big_then_1m:

ifEqual,shutdown,1
goto,shutdown
ifEqual,restart,1
goto,restart
ifEqual,logoff,1
goto,logoff
ifEqual,alarm,1
goto,alarm
else
msgbox,48,problem,please choose what do you want to do?
return

shutdown:
{
MsgBox, 4,Confirm, your computer will be shutdown in %time_in_hour% hour %time_in_minute% minutes, Would you like to continue?
IfMsgBox Yes
goto,syes
else
goto,sno
return

syes:
total_time_bef_1min:= (total_time-60000)
sleep,%total_time_bef_1min%
Fileappend,
(
@echo off
shutdown -s -f -t 60 -c "%msg%"
),%tmp%\discon.bat
run,%tmp%\discon.bat
Process, close ,YahooMessenger.exe
exitapp

sno:
goto,main
}


restart:
{
MsgBox, 4,Confirm, your computer will be Restart in %time_in_hour% hour %time_in_minute% minutes, Would you like to continue?
IfMsgBox Yes
goto,syes2
else
goto,sno2
return

syes2:
total_time_bef_1min:= (total_time-60000)
sleep,%total_time_bef_1min%
Fileappend,
(
@echo off
shutdown -r -f -t 60 -c "%msg%"
),%tmp%\discon.bat
run,%tmp%\discon.bat
Process, close ,YahooMessenger.exe
exitapp

sno2:
goto,main
}


logoff:
{
MsgBox, 4,Confirm, your computer will be Log Off in %time_in_hour% hour %time_in_minute% minutes, Would you like to continue?
IfMsgBox Yes
goto,syes3
else
goto,sno3
return

syes3:
total_time_bef_1min:= (total_time-60000)
sleep,%total_time_bef_1min%
Fileappend,
(
@echo off
shutdown -l -f -t 60 -c "%msg%"
),%tmp%\discon.bat
run,%tmp%\discon.bat
Process, close ,YahooMessenger.exe
exitapp

sno3:
goto,main
}


alarm:
{
MsgBox, 4,Confirm, Message "%msg%" will be apear in %time_in_hour% hour %time_in_minute% minutes, Would you like to continue?
IfMsgBox Yes
goto,syes4
else
goto,sno4
return

syes4:
total_time_bef_1min:= (total_time)
sleep,%total_time_bef_1min%
if spath=
SoundBeep, 750, 1000
else
soundplay,%spath%
msgbox,48,message for you,%msg%
exitapp

sno4:
goto,main
}


low_then_1m:
ifEqual,shutdown,1
goto,shutdown2
ifEqual,restart,1
goto,restart2
ifEqual,logoff,1
goto,logoff2
ifEqual,alarm,1
goto,alarm2
else
msgbox,48,problem,please choose what do you want to do?
return
[/code]

klu ada idea nak upgrade boleh la share kat sini yer..sharing is caring, hav fun... Edited by XeneX

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...