Please read this entire post before trying anything. Its not too long, but failing to do so may confuse.
To copy and paste the file location, locate the inf file, right click, select properties.
where it says location, click and highlight the Location address. CTRL+C will copy it. CTRL+P will paste in notepad.
Do the same for the resample.exe file. there are both locations in front of you, no typing required- eliminating typo's.
follow MOUSY's instructions to rearrange the string to that layout.
To open CMD/Command Prompt click START, select RUN, type CMD (or start, select all programs- accessories- Command Prompt is cmd.exe)
Then type the green text no-modification, and replace the red text with your 2 locations copied and pasted. You can copy and paste into CMD, see below for instructions on this.
/k C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Terrain SDK\resample.exe---C:\Where\Ever\this\file\is\located\test.inf. (NOTICE: The multiple BLACK dashes --- indicated 1 press of the space bar. Just one space between the 2 locations.) and press enter. If it doesnt work, then it wasnt typed correctly and a space may be missing or too many or a slash should be a backslash or vise-versa.
for a backslash problem, see below.
in notepad, press
ALT+92 on numpad is the backslash, thats an alternate.
START then RUN, type
OSK and your on screen keyboard will allow a backslash.
or you can use the character map, START then RUN, type
CHARMAP scroll and look for the backslash\reverse solidus, u+005C is the unicode (c3)
Note: Sometimes, depending on operating system, the CTRL P paste function doesnt work in command prompt. It will show ^P instead of what you have copied. If that is the case, you should be able to right click and select paste. Its easier to get it all in the right order in notepad before doing it into CMD.
To run CMD in Admin mode, go to start, select all programs- accessories- right click on Command Prompt and select RUN AS ADMINISTRATOR. (should not be required for a simple resample run.) Be careful not to go messing around in cmd admin if you dont know what you are doing. CMD admin mode allows more functions and changes than regular user CMD mode, thus allowing the curious user who knows-not-what-he-do to really mess up his system. However none of these are as powerful as the hidden admin mode

(Ive said too much!)
see attachments
PS: If this helps, give the glory and praise to God. For His grace grants the knowledge. May His blessings and peace be upon you.