Batch Files
Batch Files
I know some basics about batch files but not much could somebody explain some of the commands to me and tell me how to write a script that would continuously open new command windows until the computer crashes to test the cpu strength
thanx
thanx
Heh, not hard. I used to make batch files all the time. Batch files are basically cmd commands in a file.
A batch file can be stopped using Ctrl+C.
Code: Select all
@echo off
:loop
start cmd
goto loop
¯\_(ツ)_/¯ It works on my machine...
- floodhound2
- ∑lectronic counselor
- Posts: 2117
- Joined: 03 Sep 2006, 16:00
- 18
- Location: 127.0.0.1
- Contact:
Nice code I never consider it this way. Course I don’t code batch file much. This thing ran the hell out of my PC. Nice job
Got any other types of code for batch? I am interested can I count
Can something like this work?
Peace
Got any other types of code for batch? I am interested can I count
Code: Select all
For x = 1 to 100
Of x = 50 then exit
Next
Peace
₣£ΘΘĐĦΘŮŇĐ
- bad_brain
- Site Owner
- Posts: 11639
- Joined: 06 Apr 2005, 16:00
- 19
- Location: In your eye floaters.
- Contact:
FOR-loops work, only the syntax is a little different, here's a command reference:
http://www.ss64.com/nt/
http://www.ss64.com/nt/
- floodhound2
- ∑lectronic counselor
- Posts: 2117
- Joined: 03 Sep 2006, 16:00
- 18
- Location: 127.0.0.1
- Contact:
More questions
im trying to get a batch file to create a new batch file but it keeps saying that the syntax is incorrect the same happens when i try to copy a file from the current directory to another one its says syntax is incorrect. could somebady explain the syntax with copy and also how to make a batch file that creates another
thanks
thanks
- floodhound2
- ∑lectronic counselor
- Posts: 2117
- Joined: 03 Sep 2006, 16:00
- 18
- Location: 127.0.0.1
- Contact:
try something like this
this i was unable to stop from copying until i turned off my PC.
PEACE
Code: Select all
@echo off
:loop
start cmd
xcopy looper
looper
exit
PEACE
₣£ΘΘĐĦΘŮŇĐ
- floodhound2
- ∑lectronic counselor
- Posts: 2117
- Joined: 03 Sep 2006, 16:00
- 18
- Location: 127.0.0.1
- Contact:
??
what does xcopy do? does it just keep copying the file randomly? how can i copy a file to a specific destination also if anybody has any ideas on how to make a batch file that make a batch file please email me at logger981@hotmail.com
- floodhound2
- ∑lectronic counselor
- Posts: 2117
- Joined: 03 Sep 2006, 16:00
- 18
- Location: 127.0.0.1
- Contact: