F
Fong Tsui
I have some difficulties to execute a command by using system() on
windows.
The command is like "$com1 -load $file1" and there are spaces in the
pathes of com1 and file1. For example, com1 and file1 both are located
in E:\Program Files. What I tried
1) system("$com1 -load $file1");
2) system("\"$com1\" -load \"$file1\");
The error message is "E:\Program is not recognized as an internal or
external command.
Does anybody know what did I do wrong and how to solve this?
Thank you very much,
Fong
windows.
The command is like "$com1 -load $file1" and there are spaces in the
pathes of com1 and file1. For example, com1 and file1 both are located
in E:\Program Files. What I tried
1) system("$com1 -load $file1");
2) system("\"$com1\" -load \"$file1\");
The error message is "E:\Program is not recognized as an internal or
external command.
Does anybody know what did I do wrong and how to solve this?
Thank you very much,
Fong