I didn’t see your follow-up question the first time around.
And in the situation of running from a command-line prompt like this:
C:/> CD C:/path/to/folder/
'program.exe' will have the current working directory of 'C:/path/to/folder/ ', and not 'C:/path/different/folder/ ' ?
Yes, it will be the directory in the command-line.