<p>How can I change the title of the command prompt window every time I execute a dos-based program by double clicking it, in c language. Should I use the Windows API?</p>

[{'answer_id': 45306, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 3, 'selected': True, 'text': '<p>Try <a href="http://msdn.microsoft.com/en-us/library/ms686050.aspx" rel="nofollow noreferrer">SetConsoleTitle</a>.</p>\n'}, {'answer_id': 1220953, 'author': 'crowdy', 'author_id': 123706, 'author_profile': 'https://Stackoverflow.com/users/123706', 'pm_score': 0, 'selected': False, 'text': '<p>you can do </p>\n\n<p>%comspec% /c start "testtest" %comspec%</p>\n\n<p>at application launcher of Windows+R </p>\n'}, {'answer_id': 2198756, 'author': 'F. Kam', 'author_id': 266061, 'author_profile': 'https://Stackoverflow.com/users/266061', 'pm_score': 2, 'selected': False, 'text': '<p><code>title</code> allows to set this:</p>\n\n<pre><code>title Windows Title (quotes unneeded)\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/45301', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/130278/']