Click here to Skip to main content
15,881,880 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
if I have a dir with an .exe I want to get m-lpcmdline using command prompt in windows..
an example
cd ..path
and then I want to get command line, How can I do..

What I have tried:

I tried cd..and then start exe, but I don't know how I can use prompt
Posted
Updated 24-Sep-21 21:47pm

1 solution

You can use GetCommandLineA function (processenv.h) - Win32 apps | Microsoft Docs[^] to get the complete string. Or use the arguments passed in to your main function.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900