I have a Delphi application that calls ShellExecute on a .mxd file. It works fine in XP, but when trying to run on Win 7, ArcMap throws the error "Could not find file C:\users\username\My Documents\filename.mxd.mxd". I'm not passing the filename with 2 .mxd's at the end. Anyone have any ideas?
Typing it in at the command prompt didn't work, so I moved the file to a path with no spaces and it works. Just amazes me how this works in XP but not 7. Oh well.
wow, shell... old school windows 7 structures program files differently as well as user folders... (x86 for starters) so USERNAME is going to be a different path... As richard states, should work, try throwing the MXD is a simple folder path to test.