*********************************************************************** * Review of the Friday, February 8th, 2008 Wright 112 lab class * *********************************************************************** We used NOTEPAD to make a file that could be used to keep a log of your activity when you are working or playing on the computer. .LOG is the first line of the file you want to keep the log in. It has to be the very first four characters of the file, and on that first line by itself. Notepad is the name of a file, well, actually, it is named notepad.exe. It is stored somewhere on your Windows hard drive, and if you want to narrow down where it might be stored, just type: PATH at the Windows Command prompt (still often called the DOS prompt, in honor of older versions of Windows which ran on top of DOS). Type HELP PATH at the command prompt to read more about the PATH command. Have you noticed how I start up the Command Prompt program? Start menu, Run, cmd (On older versions of Windows it was Start menu, Run, command) So the name of the program you are using when you are working from the Command prompt is: cmd.exe (or command.exe for Windows ME or Windows 2000, if I remember right). We have many times done: arp -a arp -a | find /C "." ipconfig ipconfig /all ping www.uni.edu tracert www.google.com assoc | find /C "=" help find help assoc arp /? and similar commands at the DOS prompt. We were using the cmd.exe program when we did. I did not have a handout FRIDAY, but will try to review BATCH files and some of what we did for the entire class. Also about Notepad used to keep a log file using .LOG and the Date/Time command. We learned about PUSHD and POPD and internal and external Windows and command prompt commands and the PATH variable, so Windows knows where to search for Notepad.exe or cmd.exe or CHKDSK and TREE and so on. It does NOT have to search for ASSOC or DIR and CD cause those are internal commands and always in memory. ECHO and PAUSE were two other commands inside of .BAT batch files. Also, here is an example of using the FIND command: C:\023>path ; <---------- the path is null after this.... C:\023>find "." * 'find' is not recognized as an internal or external command, operable program or batch file. -------- FIND is an external operating system command. It is part of the PATH and thus in one of the folders where Windows and DOS command prompt normally looks. Operable program. DIR and CD are internal commands, they would still work here. Notepad.exe and CMD.exe are executable programs stored in a place that Windows always knows the PATH to get to, except after we wipe out that PATH. Batch files are what we did on Friday and we will review tommmorrow and more in the future. Hopefully, you are all becoming more familiar with command prompts and the Windows system as well as network related commands such as ipconfig and tracert and ping that are available easily from the command prompt cmd.exe program. C:\023>find "." * 'find' is not recognized as an internal -------- or external command, -------- operable program or batch file. ---------------- ---------- See Notepad Help and find the topic: Append a log to a document It is the Edit menu in Notepad that has the Date/Time command. *********************************************************************** * Review of the Friday, February 8th, 2008 Wright 112 lab class * ***********************************************************************