By iftttauthorways4eu
on Mon Feb 20 2023
This Python script is designed to list the top files by size on a file drive (under Windows-OS), as determined by the user.
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.
Read more: Listing the top-size files with python
https://gist.github.com/smartDevel/79dfc6947de262c200369877de333bcd.js
python listTopFilesizedFiles.py.0 to exit the programr to run the script again from the beginningpython listTopFilesizedFiles.pyEnter the path of the drive you want to search: C:\UsersEnter the number of files to list: 10Top 10 biggest files in C:\Users:1. File1.txt - 500 MB2. File2.exe - 300 MB3. File3.pdf - 200 MB4. File4.mp4 - 150 MB5. File5.ppt - 100 MB6. File6.xlsx - 90 MB7. File7.docx - 80 MB8. File8.iso - 70 MB9. File9.dll - 60 MB10. File10.zip - 50 MBWhat would you like to do?Enter a file number to open its location, enter 0 to exit, or enter r to start over: 2Opening File2.exe location in Windows Explorer...This script is released under the MIT License. Feel free to use it however you like.
You can download the sourcecode and find more details on my github-repository:
https://github.com/smartDevel/list_Top_Size_Files
The post Listing the top-size files with python appeared first on Strictly Confidential.