Creating .batch to run at shutdown

jmh033089

New member
Local time
10:45 AM
Messages
2
Location
Daytona Beach,FL
I would like to know how to create a .batch file and have it run at the shut down of the computer,Here are the commands:

netsh int ip reset reset.log
netsh int ip delete arpcache
netsh winsock reset
ipconfig /flushdns

Thanks
 

My Computer

Computer Manufacturer/Model Number
Dell Inspiron 1545
OS
Windows 7 Ultimate Media Center Edition x64 SP1
CPU
Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz,2261MHz
Motherboard
Unknown to Everset
Memory
2934MB
Graphics Card(s)
Intel(R) HD Graphics (Core i3)

My Computer

Computer Manufacturer/Model Number
HP Pavilion e9110t
OS
Windows 7 Home Premium 64 Bit
CPU
Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz
Motherboard
Pegatron IPIEL-LA3
Memory
6.00 GB Hundai HMT125U6BFR8C-H9
Graphics Card(s)
ATI Radeon HD 4850
Sound Card
Realtek High Definition Audio/ATI High Definition Audio
Monitor(s) Displays
Acer AL2216W
Screen Resolution
1680x1050
Hard Drives
Hitachi HDP725050GLA360 ATA Device 500 GB
PSU
Unknown/installed by HP
Case
HP generic case
Cooling
Intel Stock Cooling
Keyboard
HP Keyboard
Mouse
HP Mouse
Internet Speed
Download: 19.15 Mbps Upload: 1.67 Mbps
Other Info
Network Adapter Realtek RTL8168D/8111D Family PCI-E Gigabit Ethernet NIC (NDIS 6.20)
Network Adapter 802.11n Wireless PCI Express Card LAN Adapter
Thanks writhziden, But I was asking more along the lines of how to right the file so all the commands go through, when I paste it in to the cmd as admin the last one will not run with out pressing enter. So what I should say is does anyone know how to write a batch to run these commands:

netsh int ip reset reset.log
netsh int ip delete arpcache
netsh winsock reset
ipconfig /flushdns
 

My Computer

Computer Manufacturer/Model Number
Dell Inspiron 1545
OS
Windows 7 Ultimate Media Center Edition x64 SP1
CPU
Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz,2261MHz
Motherboard
Unknown to Everset
Memory
2934MB
Graphics Card(s)
Intel(R) HD Graphics (Core i3)
Thanks writhziden, But I was asking more along the lines of how to right the file so all the commands go through, when I paste it in to the cmd as admin the last one will not run with out pressing enter. So what I should say is does anyone know how to write a batch to run these commands:

netsh int ip reset reset.log
netsh int ip delete arpcache
netsh winsock reset
ipconfig /flushdns

If you have a return carriage after each command (if you hit enter after each command within the batch file) they should run as if you hit enter within the command prompt. If you need to run the batch file as an administrator, you will have to create a shortcut to the batch file, have the shortcut set up to run as administrator, and have that be what the scheduler calls. "[R]ight-click [the shortcut] > Properties > Shortcut tab > Advanced > Run as administrator" (Running Batch File as an Administrator in Vista).
 
Last edited:

My Computer

Computer Manufacturer/Model Number
HP Pavilion e9110t
OS
Windows 7 Home Premium 64 Bit
CPU
Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz
Motherboard
Pegatron IPIEL-LA3
Memory
6.00 GB Hundai HMT125U6BFR8C-H9
Graphics Card(s)
ATI Radeon HD 4850
Sound Card
Realtek High Definition Audio/ATI High Definition Audio
Monitor(s) Displays
Acer AL2216W
Screen Resolution
1680x1050
Hard Drives
Hitachi HDP725050GLA360 ATA Device 500 GB
PSU
Unknown/installed by HP
Case
HP generic case
Cooling
Intel Stock Cooling
Keyboard
HP Keyboard
Mouse
HP Mouse
Internet Speed
Download: 19.15 Mbps Upload: 1.67 Mbps
Other Info
Network Adapter Realtek RTL8168D/8111D Family PCI-E Gigabit Ethernet NIC (NDIS 6.20)
Network Adapter 802.11n Wireless PCI Express Card LAN Adapter
Back
Top