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. Thank you for your help!
... View more
I'm using a variable in the ShellExecute, so there's not an actual filename. ShellExecute(Handle, 'open', PChar(FileNameVariable), nil, nil, SW_SHOWNORMAL) ;
... View more
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? Thanks, David
... View more