Hi.
I wrote a program and put it into Windows Context menu but I have a problem.
How I can recieve a folder name (Folder path) or file name (File path) of which I right-click on?
(I mean folder name as a command line parameter, So program does its job according to Folder name).
Thanks :-)
Excuse me for bad English.
Recieve folder or file name
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Sam HobbsRank #107 · 20.5K reputationPosted Nov 13, 2010, 6:29 PM EST
Majid KamaliRank #6,453 · 266 reputationPosted Nov 14, 2010, 2:18 AM EST
Sam HobbsRank #107 · 20.5K reputationPosted Nov 14, 2010, 7:42 AM EST
Perhaps it is a file type association that you created. If so then the file type association specifies what the arguments are.
Do you know that "command-line" arguments are pased from Windows to a program as arguments for the Main function?