Jump to content

Need a script/program made

Go to solution Solved by elpiop,

this batch file should work. make sure you run as administrator. 

@[member=Echo] off:loopnetsh interface set interface "Wireless Network Connection" DISABLEDtimeout /t 10netsh interface set interface "Wireless Network Connection" ENABLEDtimeout /t 3600goto loop 

replace "Wireless Network Connection" with the proper interface. This can be found using "netsh interface show interface" in the command prompt:

 

You'll see this, choose the interface name that is connected.

 SBPNSDr.png

Alright so I have this problem where when i'm trying to download files through the night, My computer seems to loose connection to the internet. Im too busy to go through everything and fix what ever issue is causing it. I do know that a simple disable and enable of the network adapter on my pc seems to fix it most of the time.

 

So what I need is a program i can open before i go to bed on my computer and once an hour it will disable the LAN Network Adapter on my computer for 10 seconds and then enable after the 10 seconds are up. I also need it to run as a loop so it will repeat this operation until I close it manually.

 

Im running windows 7, and my network card is a NVIDIA nForce 10/100/1000 Mbps Ethernet Adapter, (if it helps)

 

I do know a little bit of java and am currently learning power-shell and windows scripting but am nowhere near the ability to create something like this.

 

Anyone able to help me?

 

Thanks

Use this guide to fix text problems in your postGo here and here for all your power supply needs

 

New Build Currently Under Construction! See here!!!! -----> 

 

Spoiler

Deathwatch:[CPU I7 4790K @ 4.5GHz][RAM TEAM VULCAN 16 GB 1600][MB ASRock Z97 Anniversary][GPU XFX Radeon RX 480 8GB][STORAGE 250GB SAMSUNG EVO SSD Samsung 2TB HDD 2TB WD External Drive][COOLER Cooler Master Hyper 212 Evo][PSU Cooler Master 650M][Case Thermaltake Core V31]

Spoiler

Cupid:[CPU Core 2 Duo E8600 3.33GHz][RAM 3 GB DDR2][750GB Samsung 2.5" HDD/HDD Seagate 80GB SATA/Samsung 80GB IDE/WD 325GB IDE][MB Acer M1641][CASE Antec][[PSU Altec 425 Watt][GPU Radeon HD 4890 1GB][TP-Link 54MBps Wireless Card]

Spoiler

Carlile: [CPU 2x Pentium 3 1.4GHz][MB ASUS TR-DLS][RAM 2x 512MB DDR ECC Registered][GPU Nvidia TNT2 Pro][PSU Enermax][HDD 1 IDE 160GB, 4 SCSI 70GB][RAID CARD Dell Perc 3]

Spoiler

Zeonnight [CPU AMD Athlon x2 4400][GPU Sapphire Radeon 4650 1GB][RAM 2GB DDR2]

Spoiler

Server [CPU 2x Xeon L5630][PSU Dell Poweredge 850w][HDD 1 SATA 160GB, 3 SAS 146GB][RAID CARD Dell Perc 6i]

Spoiler

Kero [CPU Pentium 1 133Mhz] [GPU Cirrus Logic LCD 1MB Graphics Controller] [Ram 48MB ][HDD 1.4GB Hitachi IDE]

Spoiler

Mining Rig: [CPU Athlon 64 X2 4400+][GPUS 9 RX 560s, 2 RX 570][HDD 160GB something][RAM 8GBs DDR3][PSUs 1 Thermaltake 700w, 2 Delta 900w 120v Server modded]

RAINBOWS!!!

 

 QUOTE ME SO I CAN SEE YOUR REPLYS!!!!

Link to comment
https://linustechtips.com/topic/489004-need-a-scriptprogram-made/
Share on other sites

Link to post
Share on other sites

this batch file should work. make sure you run as administrator. 

@[member=Echo] off:loopnetsh interface set interface "Wireless Network Connection" DISABLEDtimeout /t 10netsh interface set interface "Wireless Network Connection" ENABLEDtimeout /t 3600goto loop 

replace "Wireless Network Connection" with the proper interface. This can be found using "netsh interface show interface" in the command prompt:

 

You'll see this, choose the interface name that is connected.

 SBPNSDr.png

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×