Thats weird. I created a DSD file, changed the NoOfCopies to 2. I then set filedia to 0, entered "-publish" and listed the edited DSD file and it worked.
A while ago, I wanted to automate the publish command (just because) and went about it by writing all of the info to a DSD file (a text file with a DSD extension) and it worked fine.