How to launch a windows application via procdump which has commnad line args?

1

I have a C++ application for windows which takes command line args.

How do I use procdump to launch the application with those args?

I tried :

> procdump64.exe -ma -x c:\dumps "C:\ProgramData\someapp.exe arg"

> procdump64.exe -ma -x c:\dumps 'C:\ProgramData\someapp.exe "arg"'

but both failed saying :

Error launching 'C:\ProgramData\someapp.exe:
The system cannot find the file specified. (0x00000002, 2)

But, if I run the app explicitly it runs fine.

this works :

> C:\ProgramData\someapp.exe "arg"

I didn't find anything on google about how to do this with procdump. I'm open to any other fairly simple-to-setup CLI if procdump can't do it. Any help is appreciated.

c++
windows
debugging
procdump
asked on Stack Overflow Aug 26, 2019 by helix

1 Answer

2

Thanks to @Ulrich Eckhardt ! His comment pointed me to the direction where the following worked without trying to do funny stuff with quotes :

 procdump64.exe -ma -x c:\dumps C:\ProgramData\someapp.exe "arg"

PS : I was indeed running procdump from cmd.

answered on Stack Overflow Aug 26, 2019 by helix

User contributions licensed under CC BY-SA 3.0