Site News |
Our Black Friday section is now online! Click here to check it
out.
|
|
Active Discussions
|
[an error occurred while processing this directive]
|
|
| |
Tutorial on Basic Windows 2000 DOS
This Section Will Cover
- 00. What a file is under win enviroment
- 01. What a variable is in %win2k% batch and how to create them.
- 02. What echo echo. @echo off does.
- 03. What operators like > and >> and | do.
- 04. What a ::comment is.
- 05. What & does and how to use it &::creatively.
- 06. What 'DIR' and 'SORT' is and does
- 07. What a * and a ? mean to the DOS shell.
- 08. What GOTO _is when used with :_labels, also using PING to create a delay.
- 09. What if "statements"=="are and what they do".
- 10. What a basic "for" loop is/does.
- 11. How to use low interger values with variables.
- 12. How to parse strings into substrings.
- 13. How to echo non-echoable characters.
- 14. How to pass %arguments to a .bat file.
- 15. Summary
Ok right off, folders are really called directories. Dont use the word
folder anymore, the real name for folders is directories. Never use the word
folder anymore.
Folders and Directories are actually the same thing. Just in the
real world, if
you
start using the word Folder, people will think you're clueless even if you
are not.
First off windows really needs file extensions. This is sad and actually bounds
the OS (Operating System) right off the get-go. Just know this, that a file with
the extension of .exe might not actually execute. It could be a plain text file.
Most files in your OS's are plain text files. This means you can open them up in
any text editor you want like notepad and view them. Sometimes they might look all
crazy and unreadable, but they are still text files. On windows, files like .ini,
.inf, .bat are plain text files.
What we need to do is make a .bat file. You do this by making a new text file and
just renaming the extension of .txt to .bat. NOTE: if it doesnt change then you
are hiding your file extension's. THIS IS BAD!!!! You can fix that by unchecking
a box in your Folder Options.
Ok know that you should NOT use spaces in a script file, or really any file.
You can use a . or a _ to represents spaces. Preferably a _ (underscore).
Go to the root of a HDD (Hard Disk Drive a.k.a Hard drive. Also root means the
mount point, like c:\ or d:\, NOT c:\program files. C:\program files is a
subdirectory of c:\, c:\ is root).
Ok now you should have a file, something like the name first_script.bat on
the root of a HDD. Remember just rename the extension .txt to .bat.
Click here to continue
Questions? Ask in the
forum or
email me.
For the Privacy Policy, click
here. | |
| |
 |