truncation of folder
-
How to get complete path successfully as command line I have added keys TestCommandLine.exe %L to HKEY_CLASSES_ROOT -> Folder so that on right click the folder path will be passed as command line and use cout<< arg[1] to display command line from TestCommandLine.exe. This path truncated whenever there is space in the path. For example: If i right click and select the menu @ C:\System\New Folder The program prints upto C:\System\New. Parts after space ignored How to solve this? Thanks Anil
-
How to get complete path successfully as command line I have added keys TestCommandLine.exe %L to HKEY_CLASSES_ROOT -> Folder so that on right click the folder path will be passed as command line and use cout<< arg[1] to display command line from TestCommandLine.exe. This path truncated whenever there is space in the path. For example: If i right click and select the menu @ C:\System\New Folder The program prints upto C:\System\New. Parts after space ignored How to solve this? Thanks Anil
The space is a delimiter. To get around this, you need to put the argument in quotes TestCommandLine.exe "%L"
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
-
The space is a delimiter. To get around this, you need to put the argument in quotes TestCommandLine.exe "%L"
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
Thank you :)