@svucic wrote:
Wel, I'm using (setq DirPath (acet-ui-pickdir)) to get the path to a folder which I'm passing to an external program.
And the path that i'm passing to the program should be like this:
\"C:\\Users\\Srdjan\\Documents\\test.csv\"
Example of executing external program:
(dos_execute "program -input:\"C:\\Users\\Something\\Desktop\\Something\" -output:\"C:\\Users\\Something\\Desktop\\Something\" -definition:\"C:\\Users\\Something\\Desktop\\Something\"" 0)
Try something like this...
(setq filepath "C:\\Users\\Something\\Desktop\\Something")
(setq filepathquited (strcat "\"" filepath "\""))
(setq depars (strcat "program"
" -input:" filepathquited
" -output:" filepathquited
" -definition:" filepathquited))
(dos_execute depars 0)
Or, it may be more obvious without variables...
(dos_execute (strcat "program"
" -input:" "\"" filepath "\""
" -output:" "\"" filepath "\""
" -definition:" "\"" filepath "\"")
0)