5.1. Retrieve Information About a File, Directory, or Drive5.1.1. Problem5.1.2. Solution5.1.3. How It Works5.1.3.1. The Code5.1.3.2. Usage5.2. Set File and Directory Attributes5.2.1. Problem5.2.2. Solution5.2.3. How It Works5.2.3.1. The Code5.3. Copy, Move, or Delete a File or Directory5.3.1. Problem5.3.2. Solution5.3.3. How It Works5.3.3.1. The Code5.4. Calculate the Size of a Directory5.4.1. Problem5.4.2. Solution5.4.3. How It Works5.4.3.1. The Code5.5. Retrieve Version Information for a File5.5.1. Problem5.5.2. Solution5.5.3. How It Works5.5.3.1. The Code5.5.3.2. Usage5.6. Show a Just-in-Time Directory Tree in the TreeView Control5.6.1. Problem5.6.2. Solution5.6.3. How It Works5.6.3.1. The Code5.7. Read and Write a Text File5.7.1. Problem5.7.2. Solution5.7.3. How It Works5.7.3.1. The Code5.8. Read and Write a Binary File5.8.1. Problem5.8.2. Solution5.8.3. How It Works5.8.3.1. The Code5.9. Read a File Asynchronously5.9.1. Problem5.9.2. Solution5.9.3. How It Works5.9.3.1. The Code5.9.3.2. Usage5.10. Find Files That Match a Wildcard Expression5.10.1. Problem5.10.2. Solution5.10.3. How It Works5.10.3.1. The Code5.11. Test Two Files for Equality5.11.1. Problem5.11.2. Solution5.11.3. How It Works5.11.3.1. The Code5.12. Manipulate Strings Representing File Names5.12.1. Problem5.12.2. Solution5.12.3. How It Works5.13. Determine If a Path Is a Directory or a File5.13.1. Problem5.13.2. Solution5.13.3. How It Works5.13.3.1. The Code5.14. Work with Relative Paths5.14.1. Problem5.14.2. Solution5.14.3. How It Works5.14.3.1. The Code5.14.3.2. Usage5.15. Create a Temporary File5.15.1. Problem5.15.2. Solution5.15.3. How It Works5.15.3.1. The Code5.16. Get the Total Free Space on a Drive5.16.1. Problem5.16.2. Solution5.16.3. How It Works5.16.3.1. The Code5.17. Show the Common File Dialog Boxes5.17.1. Problem5.17.2. Solution5.17.3. How It Works5.17.3.1. The Code5.18. Use an Isolated Store5.18.1. Problem5.18.2. Solution5.18.3. How It Works5.18.3.1. The Code5.19. Monitor the File System for Changes5.19.1. Problem5.19.2. Solution5.19.3. How It Works5.19.3.1. The Code5.20. Access a COM Port5.20.1. Problem5.20.2. Solution5.20.3. How It Works5.20.3.1. The Code5.21. Get a Random File Name5.21.1. Problem5.21.2. Solution5.21.3. How It Works5.21.3.1. The Code5.22. Manipulate the Access Control List of a File or Directory5.22.1. Problem5.22.2. Solution5.22.3. How It Works5.22.3.1. The Code5.23. Compress Data5.23.1. Problem5.23.2. Solution5.23.3. How It Works5.23.3.1. The Code5.24. Log Data to a File5.24.1. Problem5.24.2. Solution5.24.3. How It Works5.24.3.1. The Code5.25. Process a Log File5.25.1. Problem5.25.2. Solution5.25.3. How It Works5.25.3.1. The Code5.26. Communicate Between Processes5.26.1. Problem5.26.2. Solution5.26.3. How It Works5.26.3.1. The Code