Posted By

organicit on 12/27/10


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

deiby
bug5


Create skeleton web project


 / Published in: DOS Batch
 

  1. echo off
  2. mkdir NewProject
  3. cd NewProject
  4. mkdir css
  5. mkdir img
  6. copy /y NUL index.php >NUL
  7. copy /y NUL js\app.js >NUL
  8. copy /y NUL css\default.css >NUL

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: teddyzetterlund on December 28, 2010

All the mkdir hackery can be shortened to: mkdir NewProject/{js,css,img}; Not sure how copy /y works but in OSX terminal you could do this: touch index.html js/app.js css/default.css

Summary: mkdir NewProject/{js,css,img}; cd NewProject; touch index.html js/app.js css/default.css

Posted By: brunogama on December 28, 2010

I think you could use the echo command as well to do the empty files:

echo "" > js\app.js

You need to login to post a comment.