What is the location of file:
for Visual studio 2017?
I don't believe there is such a file - but there is
VsDevCmd.bat which I believe satisfies most of the same use cases. (That's certainly what I have as my default command prompt.)
Common7\Tools in the x86 part of the VS installation. For example, my command prompt shortcut "target" is:
%comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat""
See more on this question at Stackoverflow