alot of the problem was with all of the backward slashes. They need return characters. That said I ended up making a string. Here is what I used.
myNumPhoto=app.document.presentationPath; s=myNumPhoto.slice(0,42) s.toString(); s=s+"imaging"; deleteF="RD /S /Q "+s; addF="MD "+s; app.system(deleteF); app.system(addF);
I had to delete the folder then add it back in on the PC because the RD command does not except wildcard characters.