Well what your asking, or how to do it, isn't clear. In C code, WinAPI, or batch file, each would be different. Since I'm most familiar with WinAPI I risk posting some code that would be more suited to the windows forum:
Code:
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main(int argc, char *argv[])
{
TCHAR szCurrentDirectory[MAX_PATH];
GetCurrentDirectory(MAX_PATH, szCurrentDirectory);
SetCurrentDirectory("e:\\projects\\old\\cm8kpersonedit\\release");
ShellExecute(NULL, "open", "CM8KPersonalityEditor.exe", NULL, NULL, SW_SHOWNORMAL);
SetCurrentDirectory(szCurrentDirectory);
printf("Press 'Enter' to continue . . . ");
getchar( );
return 0;
}
It seems a wasted of effort to change directories though as a path to the file can be specified.
Regards,
Brian