- 1 year ago
How to launch a windows application via procdump which has commnad line args?
To launch a Windows application via procdump with command-line arguments, you can follow these steps:
Install procdump: Download and install procdump from the Sysinternals suite (https://docs.microsoft.com/en-us/sysinternals/downloads/procdump).
Open a Command Prompt: Launch a Command Prompt window on your Windows machine.
Navigate to the procdump directory: Change the directory to the location where procdump is installed. By default, it is usually installed in the
C:\Program Files\ProcDump
directory.Launch the application with procdump: Use the following command to launch the application and capture a crash dump with procdump:
plaintextprocdump -ma -e <ApplicationPath> <Arguments>
Replace <ApplicationPath>
with the full path to the application executable you want to launch, and <Arguments>
with the command-line arguments required by the application.
For example, if you want to launch MyApp.exe
located in C:\MyApp
with command-line argument -input file.txt
, the command would be:
plaintextprocdump -ma -e "C:\MyApp\MyApp.exe" -input file.txt
- Monitor for crashes: After launching the application with procdump, it will monitor the application for crashes. If a crash occurs, procdump will generate a crash dump file in the current directory or the directory specified by the
-o
parameter.
Note: Procdump provides various options for configuring the behavior, output location, and other settings. Consult the procdump documentation (https://docs.microsoft.com/en-us/sysinternals/downloads/procdump) for more information on available options and how to customize the behavior according to your specific needs.
By following these steps, you can launch a Windows application via procdump with command-line arguments and capture crash dumps for analysis.