LOL. That is how it works. When you drag a file onto an executable, the executable is launched with the file's full path as argument (as in, command line argument).
PhotoShop (and many, many other programs) know how to launch themselves and open the file given as argument.
I don't know what your "test.exe" is, but there is no magical ability given to executables to open random files. Just like, if you drag and drop a Word file on PhotoShop, it won't work, since PS doesn't know how to open Word files.
It also doesn't work if your program doesn't bother to understand command-line arguments.
I couldn't understand what you want but you can simply open .PSD file in windows if photoshop is already install it will be open.
If you want to open .JPG file in photoshop, first you choose the photoshop as a default program for .JPG
1 2 3 4 5 6 7
usingnamespace std;
#include <iostream>
main()
{
system("c:\\123.psd"); // path of file in quotes
}
If you are looking anything else just tell me clearly.
Its based on droplets which require you to drag and drop a file onto it to execute a automated program.
Duoas even if that is how it works it doesnt work. Like I said in my post it might be a PS issue it throws a file not found error after PS launches it doesnt do this for png files.