speed up code

ringtemek

Daemon Poster
Messages
684
This is my code that i'm planing on putting in my startup folder to speed up the internet but when i click on it, it doesn't do anything
Code:
@ECHO OFF
@ECHO ipconfig /renew
@ECHO ipconfig /flushdns
@ECHO del C:/WINDOWS/Prefetch/
@ECHO del %%UserProfile%%/My Recent Documents/
@ECHO netsh int ip reset netsh.txt
 
It's because you've got @echo at the beginnging of each line, which tells it to print (display on the screen) everything on that line... You only need to have "@ECHO OFF" on the first line to silence the output of any command that you issue through out the script.

This should fix it:
Code:
@ECHO OFF
ipconfig /renew
ipconfig /flushdns
del C:/WINDOWS/Prefetch/
del %%UserProfile%%/My Recent Documents/
netsh int ip reset netsh.txt
 
What's the file called and where is it? If you put the above in a file called "something.bat" and drag it into your startup folder then it should run without an issue. Have you double checked that the batch file itself is ok (create it and then run it to check it does what you want?)
 
Try:

Code:
@ECHO OFF
ipconfig /renew
ipconfig /flushdns
ECHO Y | del "C:/WINDOWS/Prefetch/"
ECHO Y | del "%%UserProfile%%/My Recent Documents/"
netsh int ip reset netsh.txt
 
Back
Top Bottom