0% found this document useful (0 votes)
51 views3 pages

CS609 Fall 2024 Directory Tool Assignment

Uploaded by

jbrbeachdubai01
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views3 pages

CS609 Fall 2024 Directory Tool Assignment

Uploaded by

jbrbeachdubai01
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Fall 2024 Total Marks:

CS609: System Programming 20


Assignment No. 01 Due Date:
06
November
2024

Instructions:
Please read the following instructions carefully before submitting an assignment. It should be
clear that your assignment will not get any credit if:

▪ The submitted assignment does not open or the file is corrupt.


▪ You have not fulfilled all the requirements described in problem statement.
▪ Assignment is copied (partial or full) from any source (websites, forums, students,
etc.). Strict action will be taken in this regard.
Submission Guidelines:

1. You must use Dev-C++ for developing this assignment. If your program does not compile
in Dev-C++ then you would get zero marks.
2. You need to upload the following file only:
(i) .C file (C language source file containing code)
3. Any other file type (.docx, .CPP, .txt, .pdf, .jpeg, .gif) shall not be acceptable and you
would get zero marks for this.

Objectives:
The objective of this assignment is to familiarize students with the Windows API for file and
directory management by developing a program that lists all files in a specified directory along
with their sizes. This exercise aims to enhance students' understanding of basic file handling,
directory navigation, and the use of Windows-specific functions in C programming.

Topics Covered:
1 to 36
Assignment Title: Directory Content Summary Tool
Problem Statement: Write a C-language program using the Windows API to summarize the contents
of a given directory, displaying file attributes and sizes in a structured format.
Requirements:
1. Directory Input: The program should prompt the user to enter the path of a directory.
2. List Files: Retrieve all files and subdirectories in the specified directory.
3. File Attributes: For each file, display:
o Name
o Size (in bytes)
o Creation Date and Time
o File Attributes (Read-only, Hidden, etc.)
4. File Count and Directory Count: Display the total count of files and subdirectories.
5. Error Handling: Handle cases where:
o The directory does not exist.
o There are permission issues.
6. Formatted Output: Print results in a neatly formatted table on the console.
Sample Output:
(given on next page)
Note:
 You should print your student ID at the top of output screen. You will be awarded zero marks if
the student ID is missing or not yours.
 In case of any assignment related query, please do not post any question on MDB. Contact at
[email protected] for asking assignment related questions.

---BEST OF LUCK---

You might also like