How to run a program immediately prior to shutdown?

Gwaihir

Member
Member
VIP
Local time
11:51 AM
Messages
135
Hi,

I decided to start a new thread about this as it's usually preferred to resurrecting an old one. I want to do the same as the original poster in this thread, i.e use the shutdown button to trigger a batch file or script to run before shutdown.

I'm running W7 Pro SP1 but I can't find any reference to gpedit on my system. I used to be able to find my way round earlier versions of Windows but the combination of advancing years together with Microsoft's habit of throwing the pack of cards in the air every time they bring out a new version means I'm struggling to find anything in this one.

Any help would be greatly appreciated.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home build
OS
Windows 7 Professional 64-bit SP1
CPU
Pentium Core i5-2500 3.3GHz
Motherboard
Gigabyte P61-USB3-B3
Memory
2 x 4GB DDR3 1333MHz
Graphics Card(s)
Asus GT440 1GB GDDR5
Sound Card
Realtek integrated sound
Monitor(s) Displays
LG L1942PE
Screen Resolution
1280 x 1024 @ 60Hz
Hard Drives
2 x 1TB Western Digital WD10EARS, 1 x 1TB Seagate ST1000DM010
PSU
EVGA 450BR
Case
Novatech Panther ATX
Cooling
Sharkoon Silent Eagle 1000 120mm in case rear extracting
Keyboard
Logitech K120
Open the "run" dialog. win key + r, or type run in the search under start button.
Type gpedit.msc . then hit ok.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom 2014 Upgrade.
OS
Windows 7 Ultimate x64 sp1
CPU
Intel i5 4590 Haswell refresh 3.30GHz(3.7GHz Turbo) Quad.
Motherboard
Gigabyte GA-H97-HD3 LGA 1150
Memory
G.Skill Ripjaws F3-12800CL9D-8GBRL 16GB (4x4GB) (1600MHz)
Graphics Card(s)
Gigabyte GeForce GT 740 4GB
Sound Card
Onboard. Realtek High Definition Audio
Monitor(s) Displays
Asus VW266H x 2
Screen Resolution
1920x1200 @ 60Hz
Hard Drives
Samsung 840 EVO 120GB SSD /
Samsung 850 Pro Series 1TB SSD x 2 /
Western Digital WD Black 1TB /
Western Digital VelociRaptor 150 GB.
PSU
Corsair 650 hx modular
Case
Cooler Master
Cooling
3x fans
Keyboard
Logitech Media Keyboard 600
Mouse
Logitech Performance Mouse MX
Internet Speed
Cable Broadband 100mbs/D, 2mbs/U
Antivirus
MSE, Malwarebytes, AdwCleaner, SUPERAntiSpyware
Browser
Mozilla Firefox, Google Chrome
Other Info
1GB DataRam
Many thanks rustberger. Am I correct in thinking that I can just add an ordinary DOS batch file into the Shutdown Scripts location?
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home build
OS
Windows 7 Professional 64-bit SP1
CPU
Pentium Core i5-2500 3.3GHz
Motherboard
Gigabyte P61-USB3-B3
Memory
2 x 4GB DDR3 1333MHz
Graphics Card(s)
Asus GT440 1GB GDDR5
Sound Card
Realtek integrated sound
Monitor(s) Displays
LG L1942PE
Screen Resolution
1280 x 1024 @ 60Hz
Hard Drives
2 x 1TB Western Digital WD10EARS, 1 x 1TB Seagate ST1000DM010
PSU
EVGA 450BR
Case
Novatech Panther ATX
Cooling
Sharkoon Silent Eagle 1000 120mm in case rear extracting
Keyboard
Logitech K120
Back
Top