Try so:
(vl-file-copy
(strcat setupfolder "\\" DEPARTEMENT "\\test.txt")
(strcat (getenv "tmp") "\\test.txt")
) ;_ vl-file-copy
(setq filetemp (open (strcat (getenv "tmp") "\\test.txt") "w"))
(close filetemp)
thanks...ElpanovEvgeniy
But If I understand your code..
You copy the test.txt file from network to local...and than see if we can open from there !!?
hmm...not realy what i need...
But you give me some hint...
(setq filetemp (strcat setupfolder "\\" DEPARTEMENT "\\test.txt"))
(setq Fre (vl-file-copy currentexistingfile filetemp))
(if Fre
(progn
(vl-file-delete filetemp).....
Thanks...
I have lurn another think....again...