Shutdown command problem

vasujain

New member
Local time
12:56 PM
Messages
69
Location
NCR,India
hi all
i am making a shortcut for shutdown .
so i m using command
shutdown -h for hibernate
shutdown -l for logoff

but whenever i use time for it
like
shutdown -h -t 120
where t 120 is number of secs after which the command will execute then the command doesnt executes

this command works fine for restart shutdown -s -t 120

help me s o that i can use hibernate with time
 

My Computer

OS
Windows 7 RC ,Windows Vista Ultimate ,Windows XP SP3,Ubuntu 8.01
CPU
Core 2 Duo 2.4 Ghz
Motherboard
Intel 945 G
Memory
4 GB Ram
Hard Drives
WD SATA 250 GB
Hitachi SATA 80 GB
Try the following
Code:
shutdown /h /t:[I]120
[/I]
 

My Computer

Computer Manufacturer/Model Number
Black_Box (homebuilt)
OS
windows 7 RTM x64
CPU
Phenom II 965 Quad Core 3.4Ghz
Motherboard
Asus M4A79T Deluxe
Memory
Mushkin Blackline 8GB (4x2gb)
Graphics Card(s)
XFX Radeon 5970 Black Edition
Sound Card
onboard
Monitor(s) Displays
Dell 2408WPF-main Dell E248WFP-secondary
Screen Resolution
1920x1200-main 1920x1200-secondary
Hard Drives
OCZ Vertex Limited Edition 100GB (OS)
x1 WD Black Edition 500GB drive (Storage)
PSU
XFX 850w Black Edition (Modular)
Case
Mountian Mods H2go
Cooling
CoolITSystems ECO A.L.C.
Keyboard
Logitech MX 5500 wireless keyboard
Mouse
Razor Copperhead
Internet Speed
16Mb down/2Mb up Wowway Cable Internet
no it aint working either...
 

My Computer

OS
Windows 7 RC ,Windows Vista Ultimate ,Windows XP SP3,Ubuntu 8.01
CPU
Core 2 Duo 2.4 Ghz
Motherboard
Intel 945 G
Memory
4 GB Ram
Hard Drives
WD SATA 250 GB
Hitachi SATA 80 GB
The time-out switch is not supported by hibernate.

You could use AT 12:20 "shutdown /h" to schedule a hibernate at a specific time.
 

My Computer

Computer Manufacturer/Model Number
My HTPC
OS
6x W2K8 R2 (x64), 6x W7 7600 (x64), 2x Gentoo (x64), 1x Ubuntu 9.04 (x64), 1x pfSense (FreeBSD)
CPU
Core2 Duo E8400 3.0Ghz
Motherboard
ASUS P5E-VM
Memory
Corsair DDR-800 4GB RAM
Graphics Card(s)
EVGA NVidia GeForce GT240
Screen Resolution
1080p
Hard Drives
OCZ Vertex 60GB (C:\D: System\Apps)
WD 1TB x1 (G: Temp\Recorded TV)
WD 2TB x8 (On Server)
PSU
Corsair HX520w
Case
Antec Fusion Max
Cooling
Passive Thermalright HR-1 CPU Heatsink w/ Nexus Fan

My Computer

Computer Manufacturer/Model Number
Black_Box (homebuilt)
OS
windows 7 RTM x64
CPU
Phenom II 965 Quad Core 3.4Ghz
Motherboard
Asus M4A79T Deluxe
Memory
Mushkin Blackline 8GB (4x2gb)
Graphics Card(s)
XFX Radeon 5970 Black Edition
Sound Card
onboard
Monitor(s) Displays
Dell 2408WPF-main Dell E248WFP-secondary
Screen Resolution
1920x1200-main 1920x1200-secondary
Hard Drives
OCZ Vertex Limited Edition 100GB (OS)
x1 WD Black Edition 500GB drive (Storage)
PSU
XFX 850w Black Edition (Modular)
Case
Mountian Mods H2go
Cooling
CoolITSystems ECO A.L.C.
Keyboard
Logitech MX 5500 wireless keyboard
Mouse
Razor Copperhead
Internet Speed
16Mb down/2Mb up Wowway Cable Internet
The time-out switch is not supported by hibernate.

You could use AT 12:20 "shutdown /h" to schedule a hibernate at a specific time.
but i am using a peice of software that hibernates the system exactly after the time i give...

vista shutdown timer....

so time switc is tere wth logoff and hibernate...the syntax must be differnet i guess
 

My Computer

OS
Windows 7 RC ,Windows Vista Ultimate ,Windows XP SP3,Ubuntu 8.01
CPU
Core 2 Duo 2.4 Ghz
Motherboard
Intel 945 G
Memory
4 GB Ram
Hard Drives
WD SATA 250 GB
Hitachi SATA 80 GB

My Computer

OS
Windows 7 RC ,Windows Vista Ultimate ,Windows XP SP3,Ubuntu 8.01
CPU
Core 2 Duo 2.4 Ghz
Motherboard
Intel 945 G
Memory
4 GB Ram
Hard Drives
WD SATA 250 GB
Hitachi SATA 80 GB
but i am using a peice of software that hibernates the system exactly after the time i give...

vista shutdown timer....

so time switc is tere wth logoff and hibernate...the syntax must be differnet i guess

Maybe I'm not following what you are saying. In Vista the the timeout swtich doesn't work either. This is because of the underlying APIs. Other applications, like psshutdown, work by creating either a temporary windows service or keeps an active process opens that waits until the time-out to hibernate. The shutdown.exe process does neither. The shutdown.exe process when shuttting down or restarting uses the InitiateSystemShutdownEx API that supports an optional timeout. The APIs for sleep and hibernation do not support a time-out.
 

My Computer

Computer Manufacturer/Model Number
My HTPC
OS
6x W2K8 R2 (x64), 6x W7 7600 (x64), 2x Gentoo (x64), 1x Ubuntu 9.04 (x64), 1x pfSense (FreeBSD)
CPU
Core2 Duo E8400 3.0Ghz
Motherboard
ASUS P5E-VM
Memory
Corsair DDR-800 4GB RAM
Graphics Card(s)
EVGA NVidia GeForce GT240
Screen Resolution
1080p
Hard Drives
OCZ Vertex 60GB (C:\D: System\Apps)
WD 1TB x1 (G: Temp\Recorded TV)
WD 2TB x8 (On Server)
PSU
Corsair HX520w
Case
Antec Fusion Max
Cooling
Passive Thermalright HR-1 CPU Heatsink w/ Nexus Fan
Maybe I'm not following what you are saying. In Vista the the timeout swtich doesn't work either. This is because of the underlying APIs. Other applications, like psshutdown, work by creating either a temporary windows service or keeps an active process opens that waits until the time-out to hibernate. The shutdown.exe process does neither. The shutdown.exe process when shuttting down or restarting uses the InitiateSystemShutdownEx API that supports an optional timeout. The APIs for sleep and hibernation do not support a time-out.
tx a lot...that wud du the required work...adding reputation 2 u...
 

My Computer

OS
Windows 7 RC ,Windows Vista Ultimate ,Windows XP SP3,Ubuntu 8.01
CPU
Core 2 Duo 2.4 Ghz
Motherboard
Intel 945 G
Memory
4 GB Ram
Hard Drives
WD SATA 250 GB
Hitachi SATA 80 GB
Having same issue but i'm not understanding the solution..

think i'm missing the point.


if I want to force a shutdown I can just creat a 'dothis.cmd' edited with notepad that contains one line of ''shutdown /s /t 3600'' and in 60 minutes it will shutdown.

so why does it support hibernate if the option never works?

changing the line in the batch file to shutdown /h /t 3600 fails everytime

I'd love to get this working as my mb does not support shutdown in win7(dont ask, even the machines front power button does not turn it off, well it does, then 3 seconds later it turns back on, every time)
 

My Computer

Computer Manufacturer/Model Number
gigabyte ga35p ds3r v1
OS
win7
CPU
q6600
Motherboard
gigabyte ga35p ds3r v1
Memory
4gb ocz ddr2 1033
Graphics Card(s)
ati 4850
Sound Card
Onboard ac96 realtek
Monitor(s) Displays
Hitachi lcdv42v01ldp thing on dvi/hdm
Hard Drives
lots, boot drive 2*samsung 500gb in raid 0 on intel ich8 / mb
PSU
cheap 650w thing, systems pulls only 220w at wall
Case
metal - oh with a imon ultrabay which are very very poor
Cooling
lots of noisy fans

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
yes ok .....


1) I typed CMD and ehtered the above command but with -t 15

2) approx 15 seconds later, desktop started to clear...

3) ''shutting down '' screen was shown.

4) computer went click and all the lights went off...

5) 3 seconds later computer went click and booted back up

steps 3-5 are what happens when i shutdown with the mouse, shutdown with the front panel button, shuts down with a bsod or whatever...

MY pc has not 'shutdown' in 14 months..... I have to hibernate, or pull the plug out the wall...

thereforeI need to get the hibernate command to work from a simple clickable batch file.

why is my machine that way, dont care, its really of benefit to me it is has it shares drives with other pcs for my home movies and music, saves having to find its not on when i need it

But, I would really like to use the hibernate from a batch file, so i can set the machine to turn off an hour or two after i go to bed while watching/streaming a movie to my bedside laptop

to recap, my machine has two power states, fully on, or s3sleep/hibernate, thats all that works on it.

fully on is easy to achive, but getting to s3/hibernate needs a batch file.

i need that batch file!
 

My Computer

Computer Manufacturer/Model Number
gigabyte ga35p ds3r v1
OS
win7
CPU
q6600
Motherboard
gigabyte ga35p ds3r v1
Memory
4gb ocz ddr2 1033
Graphics Card(s)
ati 4850
Sound Card
Onboard ac96 realtek
Monitor(s) Displays
Hitachi lcdv42v01ldp thing on dvi/hdm
Hard Drives
lots, boot drive 2*samsung 500gb in raid 0 on intel ich8 / mb
PSU
cheap 650w thing, systems pulls only 220w at wall
Case
metal - oh with a imon ultrabay which are very very poor
Cooling
lots of noisy fans
Back
Top