Posts

Operating Systems 1 Lab 5 – DOS Environmental Variables

Image
Type ‘set’ into the window.   -> This shows a list of all available DOS variables. echo %PATH%   --> It shows all paths that contain executable files. echo %SESSIONNAME% ---> When a person connects to a terminal server session, the                                                                          SESSIONNAME can be seen. But since this is a local terminal                                                     it simply displays 'console'.   echo  %APPDATA% ----> It shows the directory location where applications store their data.

Operating Systems 1 Lab 4 – DOS Batch File Creation

Image
This weeks lab #4, we make a .bat file that will automatically take any .txt file with the name "ReallyImportantProgram" and any number in front of e.g. 1 or 2 etc.., and it will put it into a folder called BackupFolder. First we create two text files and put text into it. We then make a .bat file and put this code into it        "      mkdir BackupFolder copy  ReallyImportant*.txt BackupFolder      dir BackupFolder    " When this bat file is run it will put the two text files created into a folder called BackupFolder. The one problem I found is with the instruction, we were told to type in " Type in MakeABackup", This did not work for me and I don't think it will work for anyone at all since MakeABackup is not recognised by cmd. What will work though is, typing in BackupFolder or BackupFolder.bat, this will call the .bat file and run it.

Operating Systems 1 Lab 3 – DOS Batch File Creation

Image
In this lab we create a .bat file with its contents being We then open cmd and navigate to the said folder using the cd command. Lastly we type in the name of the bat file we created, and whatch the magic happen. A new folder was created using the .bat file that we created. From my understanding, the .bat file was interpreted as a cmd command, and the code executed accordingly.

Operating Systems 1 Lab 2 – DOS Commands

Image
The ' dir ' command in cmd allows you to see the available files and folders in the current directory that you're in at the moment, as well as the last time a particular date and time the particular file/folder has been modified, additionally you can also see the size of the file. The ' dir /s ' command displays all the files in the current directory, but also in all of the subdirectories, this command can take quite long to finish if your current directory is the C: drive. The ' dir /t ' command will display the specified time field of your choosing. 'dir /tw'   willl display the last modified time of the file. 'dir /ta'    will display the last accessed time of the file. 'dir /tc'    will display the time the file was created. The ' help ' command will display a list of commands that you can use in can you need help, somewhat of a cmd manual that is in-built. The ' cls ' command stands for cl e...

Operating Systems 1 Lab 1

1 - Magnetic Compass : Direction is an important part of navigation. This is a crucial navigation                                          device which has worked for thousands of years. 2 -  5 gallons of water : Water, indubitably more important than food, starving is a better option than                                         dehydration. 3 - Stellar map of moon's constellations : This along with the compass is relatively easy to carry,                                                                        but also crucial. 4 -  Tow 110lb Tanks of Oxygen: With this towing mechanis...