Hello,

I'm trying to auto-generate do-files by copy/pasting from datasets created by the do-file this question pertains to.

I want this as a variable value in the dataset in row 8:
Code:
cap mkdir "`projectfolder'/`projectname' QC"
I tried to do this with this line of code:
Code:
replace preface = `"cap mkdir "`projectfolder'/`projectname' QC""'  if _n ==8
However, as you might guess, I get this value:
Code:
cap mkdir "/ QC"
How do I fix this?

Thank you, brilliant Statalist!

v.14.2