Posts

Showing posts from February, 2018

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...