Documentation ftype content

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Oct 18, 2008
265
1
#1
Hello – my amd w7 os was effected by MS January patch, but for the most part I was able to recover – but I did come across an issue.

I was at the tcc command prompt, and type info.txt – which normally would run notepad to show the text file, but I got a strange message that notepad.exe was not found – which did not make any sense since I could see notepad.exe –

I then looked at the reference for notepad via the ftype command and its full path was using %systemroot% and not c:\windows as part of the full filepath – I then notices that the “not found” issue was only with the entries in ftype that were use %systemroot% –

so do the paths saved via ftype have to be absolute paths – thus not containing any environment variables?
 
Aug 23, 2010
110
2
#2
Yes, all paths in associations must be absolute. The filename passed to the association will also be absolute, if executed via explorer.
Overall, you should prefer absolute paths weherever possible.