You are on page 1of 1

Write the commands for the given tasks A. What would I type in cmd to: 1.

Search for the file lostfile.txt in drive C:\ (3 pts) 2. Change the color of the text to blue with light green background (3 pts) 3. Copy all pictures from c :\users\public\ pictures\Sample Pictures to a created folder named pics at the desktop (5 pts) 4. Rename Dev-Cpp folder in root of C to Roy Cyril (2 pts) 5. Know all the locations of *.java files and then save their locations to a text file named myjavacodes.txt in the desktop folder (5 pts) 6. To remove all *.jpg files in Sample Pictures folder (search for it) that starts with letter F and W (5 pts) 7. Change all attributes of exe files from c:\program files directory to hidden attributes and System attributes (7 pts)

B. Create a batch file that : 1. tells if a given number is positive, Negative or Zero number 2. prints my full name using User supplied color& # of times to print Sample usage: c:\sagot.bat 1 5 This batch file prints my name 5 times in color BLUE 3. creates 30 folders having the name folder1, folder2, ..,folderN 4. Is similar to # 3 but ask the user how many folders to create.

(6 pts) (7 pts)

(7 pts) (10 pts)

You might also like