Tech ARP Forums

Go Back   Tech ARP Forums > Software Discussion > General Software
Register
FAQ Members List Calendar Arcade Mark Forums Read

Google Web www.techarp.com forums.techarp.com

General Software This is the forum for general discussions about software.

Reply
 
LinkBack Thread Tools
Old 11th Jan 2009, 06:00 AM   #1 (permalink)
Newbie
 
Join Date: 9 Jan 2009
Posts: 10
Reputation: 0
joeharkin is an unknown quantity at this point
Rep Power: 0
Default How to script systray shutdowns ??

My system takes several minutes to complete the "Windows Shutdown". The slowdown seems to be the apps active in systray (typically ZA, NetMagic ). If I close/exit them first, then Start/Turnoff/Shutdown, the system stops in @ 15 seconds.
How can I automate the process of closing these apps and then shutting down, so I don't have to wait several minutes till it power-off?
joeharkin is offline   Reply With Quote
SPONSOR

Old 11th Jan 2009, 01:52 PM   #2 (permalink)
Administrator!
 
Dashken's Avatar
 
Join Date: 21 Apr 2003
Location: Penang
Posts: 30,227
Reputation: 2352
Dashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond repute
Rep Power: 60
Default

What OS are you using?

Quote:
Set OpSysSet = GetObject("winmgmts:{(Shutdown)}//./root/cimv2").ExecQuery("select * from Win32_OperatingSystem where Primary=true")

for each OpSys in OpSysSet
OpSys.Shutdown()
next
Copy and paste everything in the quote above into notepad and save it as maybe... "Shutdown.vbs"

Double-click it, it should shutdown the computer. Try it.
__________________
| Intel Core 2 Duo E6850 @ 3.2Ghz | ASUS P5B-E Plus | G.SKILL 2x1GB DDR2 800 | 6 HDDs (2TB+ only ) | NVIDIA GeForce 7600GT | Dell E248WFP 24" Widescreen |

| Intel C2Q Q9450 | MSI P45 Neo3-FR | 2 x 2GB OCZ DDR2 PC2-6400 Gold Edition | 1 x Seagate 250GB HDD | 2 x Seagate 750GB HDD | 3 x Seagate 1TB HDD | NVIDIA GeForce 9500GT | Cooler Master CM690 chassis | Cooler Master eXtreme Power Plus 550W PSU | Dell E248WFP 24" Widescreen | Windows 7 Ultimate x64 |



Blog : Dashken's I-Blog
Gallery : Dashken's I-Paintings
Dashken is offline   Reply With Quote
Old 12th Jan 2009, 10:14 AM   #3 (permalink)
Newbie
 
Join Date: 9 Jan 2009
Posts: 10
Reputation: 0
joeharkin is an unknown quantity at this point
Rep Power: 0
Default

Daskken, the OS is XP-Pro. I'll try your script in meantime.
Long time since I wrote any code of any kind........
I find if I right-click and shutdown NetMagic and then ZA (have to confirm thru the warning window), and then Start/TurnOff/Shutdown, the systen goes thru the "windows is shutting down" phase in @ 5sec.
joeharkin is offline   Reply With Quote
Old 12th Jan 2009, 10:24 AM   #4 (permalink)
Newbie
 
Join Date: 9 Jan 2009
Posts: 10
Reputation: 0
joeharkin is an unknown quantity at this point
Rep Power: 0
Default

Dashken-
Your suggested script did not shut down any faster than standard Start/TurnOff/Shutdown - took @ 3 mins to power down.
It may be the ZA warning window that pops up when you try to close the app - it requires you to confirm. I'll try to find a wayto shut it off.
joeharkin is offline   Reply With Quote
Old 12th Jan 2009, 02:18 PM   #5 (permalink)
Super Active
 
Zenphic's Avatar
 
Join Date: 23 Apr 2006
Location: Quebec, Canada
Posts: 1,098
Reputation: 467
Zenphic is a glorious beacon of lightZenphic is a glorious beacon of lightZenphic is a glorious beacon of lightZenphic is a glorious beacon of lightZenphic is a glorious beacon of light
Rep Power: 9
Default

you might want to check out some registry tweaks to close those software faster at shutdown.

Beginners Guides: 99 Performance Tips for Windows XP - PCSTATS.com
__________________
E2160 @ 1.8Ghz (0.95V) | XFX 650i Ultra | 2x1GB Crucial Ballistix DDR2-800 | Gigabyte GeForce 6600 | Hitachi Desktar T7K250 250GB | CM Mystique 632 | 2x Noctua NF-S12 800RPM | CM RPP 550W
Zenphic is offline   Reply With Quote
Old 13th Jan 2009, 12:10 AM   #6 (permalink)
Newbie
 
Join Date: 9 Jan 2009
Posts: 10
Reputation: 0
joeharkin is an unknown quantity at this point
Rep Power: 0
Default

Went thru the "99" and did the reg tweaks for speeding up shutdown by reducing the "no-response" wait timers.
The "problem" is definitely with ZA. Right-click and select "shutdown" opens an "are you sure" window which has to be confirmed. If that's done, the Windows shutdown goes in 5 seconds after "saving settings". Otherwise it takes about 3 minutes. [i]m looking for a way to stop it from asking. Maybe next a query to ZA to see if it can be opted out. Even tho I'm running behind a router I like to keep an AV/AS up. Run it on the laptop, too 'cause it's occasionally used outside.
Any recommendations for an alt AV/AS ?
joeharkin is offline   Reply With Quote
Old 13th Jan 2009, 08:47 AM   #7 (permalink)
Administrator!
 
Dashken's Avatar
 
Join Date: 21 Apr 2003
Location: Penang
Posts: 30,227
Reputation: 2352
Dashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond repute
Rep Power: 60
Default

Ok, one option is to force ZA to terminate by force. If you're into that idea... check out at task manager and find out which process corresponds to the one running at the system tray. Should be zonealarm.exe I suppose. Select it and choose end task. Mouse over the ZA icon at system tray and see whether it disappears.

After you've found the processname.exe, take note of it.

Quote:
Dim shell
Set shell = CreateObject("WScript.Shell")
return = shell.Run ("cmd /c taskkill.exe /F /IM zonealarm.exe")

Set OpSysSet = GetObject("winmgmts:{(Shutdown)}//./root/cimv2").ExecQuery("select * from Win32_OperatingSystem where Primary=true")

for each OpSys in OpSysSet
OpSys.Shutdown()
next
As usual, copy/paste it to notepad and save it as filename.vbs. Change the zonealarm.exe in the script to the correct process name. That should work, try it.
__________________
| Intel Core 2 Duo E6850 @ 3.2Ghz | ASUS P5B-E Plus | G.SKILL 2x1GB DDR2 800 | 6 HDDs (2TB+ only ) | NVIDIA GeForce 7600GT | Dell E248WFP 24" Widescreen |

| Intel C2Q Q9450 | MSI P45 Neo3-FR | 2 x 2GB OCZ DDR2 PC2-6400 Gold Edition | 1 x Seagate 250GB HDD | 2 x Seagate 750GB HDD | 3 x Seagate 1TB HDD | NVIDIA GeForce 9500GT | Cooler Master CM690 chassis | Cooler Master eXtreme Power Plus 550W PSU | Dell E248WFP 24" Widescreen | Windows 7 Ultimate x64 |



Blog : Dashken's I-Blog
Gallery : Dashken's I-Paintings
Dashken is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
the best mIRC script?? athlonxp Internet & Networking 16 3rd Jan 2007 04:42 PM


All times are GMT +8. The time now is 07:31 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 1998-2009 Tech ARP. All rights reserved.