Hi all,
Here is a little program:
// Snippet on
#include <stdlib.h>
#include <iostream>
int main(int argc, char **argv)
{
char *command = "\"C:\\Program Files\\PSPad\\PSPad.exe\" \"c:\\file
whitespace.txt\"";
std::cout << command << std::endl;
system(command);
return 0;
}
// snippet off
It just says that 'C:\Program' is not a valid command. But when I
type:
"C:\Program Files\PSPad\PSPad.exe" "c:\file whitespace.txt"
in a dos command prompt, it works. For some reasons I don't want to
use the 8 characters version (C:\Progra~1) which actually works.
Any idea?
JD