Skip to content

This Python script is designed to list the top files by size on a file drive, as determined by the user.

License

Notifications You must be signed in to change notification settings

smartDevel/list_Top_Size_Files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

List Top Filesized Files

This Python script is designed to list the top files by size on a file drive, as determined by the user.

Requirements

In order to use this script, you must have Python 3 installed on your system. You will also need to have the os and sys modules installed.

Usage

  1. Run the script from the command line using python listTopFilesizedFiles.py.
  2. Enter the path of the drive you would like to search when prompted.
  3. Enter the number of files you would like to see listed when prompted.
  4. Choose an action from the menu that appears:
    • Enter a file number to open that file's location in Windows Explorer
    • Enter 0 to exit the program
    • Enter r to run the script again from the beginning
  5. If you choose to open a file location, a Windows Explorer window will open to the directory containing the selected file.
  6. If you choose to exit the program, the script will end.
  7. If you choose to run the script again, you will be prompted to enter a new drive path and number of files to list.

Example

python listTopFilesizedFiles.py
Enter the path of the drive you want to search: C:\Users
Enter the number of files to list: 10

Top 10 biggest files in C:\Users:

1. File1.txt - 500 MB
2. File2.exe - 300 MB
3. File3.pdf - 200 MB
4. File4.mp4 - 150 MB
5. File5.ppt - 100 MB
6. File6.xlsx - 90 MB
7. File7.docx - 80 MB
8. File8.iso - 70 MB
9. File9.dll - 60 MB
10. File10.zip - 50 MB

What would you like to do?
Enter a file number to open its location, enter 0 to exit, or enter r to start over: 2
Opening File2.exe location in Windows Explorer...

About

This Python script is designed to list the top files by size on a file drive, as determined by the user.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages