When I launch following code on my computer it is works fine
string target = e.Link.LinkData as string;
target = System.IO.Directory.GetCurrentDirectory() + target;
System.Diagnostics.Process.Start(target);
target – non-absolute path to file. Files is exists.
on clear Virtual Machine exception “Can not find specific file” is produced.
Any suggestions?
Update
I underline that on my computer works fine.
Why it doesn’t works on another computer
The first thing I would do, to try and get to the bottom of this, is to verify the exact path that is reported when it fails.
Amend your code to something like this (note I’ve switched to using Path.Combine as mentioned by another poster):
Run this on the system that fails. Is the fully qualified path really what you expected it to be?
If no – you’ve got to the cause.
If yes, then start investigating things like permissions. Does the user executing this have permission to access or execute the file, or the folder it is in?
Post back any progress…