Skip to main content

A collection of functions that interact with the imdisk.exe utility

Project description

A collection of functions that interact with the imdisk.exe utility

pip install ramdisk

The provided module provides a collection of functions that interact with the imdisk.exe utility, which is a third-party tool for creating and managing virtual disk drives in Windows.

The advantages of using this module and the imdisk.exe utility include:

Creating virtual hard drives:

The module allows you to create virtual hard drives of specified sizes and file systems, which can be useful for various purposes such as testing, virtualization, or creating temporary storage.

Adding capacity to virtual hard drives:

The module provides a function to add additional capacity (in megabytes) to existing virtual hard drives. This allows you to dynamically increase the storage space of a virtual drive without recreating it.

Removing virtual hard drives:

The module offers the ability to remove virtual hard drives. This allows you to free up system resources by removing unnecessary virtual drives when they are no longer needed.

Listing virtual hard drives:

The module provides a function to list all currently existing virtual hard drives. This can be useful for obtaining information about the virtual drives present in the system.

Invisible execution:

The module utilizes the subprocess module to execute commands invisibly, without displaying any console windows. This can be beneficial when performing automated or background tasks that don't require user interaction.

Tested against Windows 10 / Python 3.10 / Anaconda 3

The scan_processes function can be useful for system administrators, security analysts, or anyone who needs to perform a comprehensive scan and analysis of running processes on a Windows system. Here are some advantages of using this code:

Process scanning: The function allows users to scan processes based on partial process names or regular expressions, providing flexibility in defining the target processes for analysis.

Registry filtering: Users can specify custom regular expression filters for registry keys, enabling them to include or exclude specific keys based on their patterns. This feature allows for fine-grained control over the registry data to be collected.

File filtering: The function supports filtering files based on forbidden folders and a string pattern. Users can exclude specific folders or files based on their paths, allowing them to focus on relevant files and ignore unnecessary ones.

File copying: The function facilitates copying files from the scanned processes to a specified destination folder. This can be valuable for further analysis or investigation of the files associated with the processes.

Data aggregation: The function collects registry data and file information from multiple processes and aggregates them into pandas DataFrames. This consolidated data can be easily analyzed, processed, or exported for further investigation.

Exception handling: The code includes exception handling to ensure that the scanning process continues even if exceptions are encountered. It provides the ability to gracefully handle errors and continue scanning other processes.

Example - getting faster procdumps

from PyPDump import ProcDump # writes only to HDDs
pid=19288
dumpfile = r"Z:\MiniDumpWithFullMemoryx.dmp"

p1=create_hd(size_in_megabyte=1024, drive_letter='Z', fs='ntfs')
p2=add_mb_to_hd('Z',8048)
erg = (
            ProcDump(executeable=r"C:\ProgramData\chocolatey\bin\procdump.exe")
            .o()
            .ma()
            .add_own_parameter_or_option(f"{pid}")
            .add_target_file_or_folder([dumpfile])
            .run()
        )
alldi=list_hds()
print(alldi)
remove_hd(drive_letter='Z',force=True)
remove_all_hds(force=True)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ramdisk-0.10.tar.gz (514.0 kB view details)

Uploaded Source

Built Distribution

ramdisk-0.10-py3-none-any.whl (512.8 kB view details)

Uploaded Python 3

File details

Details for the file ramdisk-0.10.tar.gz.

File metadata

  • Download URL: ramdisk-0.10.tar.gz
  • Upload date:
  • Size: 514.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for ramdisk-0.10.tar.gz
Algorithm Hash digest
SHA256 5c4360a55c4e0eb1fdf1f7898e592d827fb9b051b93086c86771ea73ea7c06c7
MD5 6f207aa1247f8a6ac0bcf6b5dfb109cf
BLAKE2b-256 0a363c95f593f381a2d17873eaf65222ab01d5f020d5ca4ba3b267447213ecec

See more details on using hashes here.

File details

Details for the file ramdisk-0.10-py3-none-any.whl.

File metadata

  • Download URL: ramdisk-0.10-py3-none-any.whl
  • Upload date:
  • Size: 512.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for ramdisk-0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 b02a8dde388395025a08c6352e01f417406edf23e3b0c6841596ff82d2a898b7
MD5 d2cf738bef83ef3d585b65547362cb5e
BLAKE2b-256 338b064aaad90c5198cc95a936e064b853fcb759bdec7c043811f506e86d1793

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page