PathScan is a script designed to export information about the contents of directories and hard drives. With a single click, users can create a complete list of all files and paths within a specific folder or across an entire hard drive.
- 🔍 Scan Drives or Folders: Quickly get a FULL LIST of ALL FILES and FOLDERS on your PC.
- 📝 File List: The file paths are saved in a text file in a "PathScan" folder on your Desktop.
- ⚡ Find Any File: Easily locate ANY FILE on your PC in SECONDS using the PathScan File Analyzer.
Note: May differ from the current version
- Download & copy the PathScan folder to your DESKTOP.
- Copy PathScan.bat to the folder you want to scan, or start it directly from your Desktop if you are only interested in scanning entire drives.
- Select a scan option: cd for a current directory scan or C-Z to scan an entire drive.
- Once the scan is complete, PathScan will notify you that the process is finished.
- An output file will be generated in the PathScan folder on your Desktop, containing the paths to all files, folders, and subfolders.
Example of the Output File
MY-PC 2024-09-27 10-15-30
Start Directory: C:\Users\Username\Documents\ExampleFolder
C:\Users\Username\Documents\ExampleFolder\file1.txt
C:\Users\Username\Documents\ExampleFolder\subfolder1
C:\Users\Username\Documents\ExampleFolder\subfolder1\file2.txt
C:\Users\Username\Documents\ExampleFolder\subfolder2
C:\Users\Username\Documents\ExampleFolder\subfolder2\file3.txt
C:\Users\Username\Documents\ExampleFolder\file4.docx
- Run Script: Execute PathScan. Select "Analyze Output File" (
an
). - Select Output File: Enter the name of the
.txt
file generated by a previous directory/hard drive scan. - Enter Keyword: Input a keyword or file type (pdf, mp4, png, ...) to search within the file paths.
- View Results: The script shows matching paths in real-time and saves them to
export\%keyword%_output_paths.txt
. - Completion: After analysis, press any key to return to the menu.
The PathScan script can be used in a variety of scenarios, especially where you need to gather information about files and directories on a Windows system. Here are some specific use cases:
- Backup Planning: Before performing backups, you can use the script to gather a list of all files and directories that need to be backed up, ensuring that nothing is missed.
- System Cleanup: Identify unnecessary files and folders for cleanup by running the script.
- Configuration Verification: Check if specific applications or files are installed correctly by scanning the relevant directories.
- File Structure Verification: Developers can use the script to verify that a project’s directory structure is as expected, particularly after cloning repositories or deploying applications.
- Testing Environments: In testing scenarios, you can document the state of a directory before and after tests to ensure that tests are not leaving unwanted artifacts behind.
- Before Migration: When migrating data to a new server or storage solution, run the script to generate a complete list of files and directories that will be moved.
- Post-Migration Verification: After migration, use the script again to verify that all intended files and directories have been successfully transferred.
- Data Recovery: In forensic scenarios, you can use the script to list files and folders on a system before and after data recovery efforts, helping to identify what has been restored.
- Investigating Anomalies: If there are suspicious files or directories, the script can help document the structure and contents for further analysis.