LAB ASSIGNMENT - 1(MS DOS

LAB ASSIGNMENT - 1

1.     Create a directory structure

  • Write a batch program called EX2.BAT that creates the following directory structure on drive C.



          Check either in Explorer or at the prompt that the directory structure shown above has been     created.
  •  Create a directory structure as given in the diagram below (Root can be any directory or disk drive) and show the tree structure using “tree” command.
  • Show the all files having extension “.txt” of D: local drive.
  •  Rename the directory “personal” to “Private” from question no. 2.
  • Change the date and time from of the system to “2019-10-10” and “6:00”.
  • Move the directory “sf100” from 92data directory to works.
  • Copy the “Example.txt” file from Accounts directory to College (Root)->Java(Sub-dir).
  • Display all the hidden files of drive C:.
  • Make a file named “Project1”.
  • Edit the file “Project1” and insert the new line “This is my computer science Class”.
Solution or Qsn no.1
[
copy con batchfile.bat
md Accounts College
cd accounts
md Letter Email
copy con Sample.txt
copy con Example.txt
cd..
cd Email
copy con report.doc
cd..
cd..
cd College
md Opsys Java Apps
cd..
pause
tree
]

Post a Comment

2 Comments

  1. Nice Post,
    Term paper writing in Singaporean institutes is considered as one of the most significant academic projects. This is the reason why few of the students end up consulting with professional academic services providers to ask, “Can you do my term paper writing with customised service?”

    ReplyDelete
  2. Remarkable post. I enjoyed examining your articles. This is to a great degree a magnificent investigated for me. I have bookmarked it and I am
    suspecting examining new articles. assignment help

    ReplyDelete