I'm currently facing a very strange problem. I would like to open the Sticky Notes program of Windows 7 (x64), which should be the easiest thing in the world:
This throws a Win32Exception (The system cannot find the file specified, Native Error 2). I tried the fully qualified path (C:\Windows\System32\StikyNot.exe), which didn't work either. Well ... if I copy the path string out of the watch of my debugger, I'm
able to run the application via the run dialog.
So I added a batch file which should call the application for me:
If I run this batch via the explorer, the application pops up correctly. If I start this batch file from my application (which is in the same folder), I'll get an error (Windows cannot find ...).
I can call the calc.exe, which is in the same folder, without any problems. The application is not started from a network share nor has it the same name like the target app (StikyNot or StickyNotes).
What the ____ is going on here?
Thanks in advance,
View Complete Post