Author Topic: How to automatically set up a project and add some files to it  (Read 2840 times)

lusu2004

  • Community Member
  • Posts: 39
  • Hero Points: 1
Hi Expert,

    I would like to know how to automatically create a project (c/c++) and add some source code files to the project then exit,  I'm a LINUX user so would like to write a cron job to do such work at night, and when I reach office, I can just start vs to continue my works with latest source file.

Thanks,
Louis

chrisant

  • Senior Community Member
  • Posts: 1410
  • Hero Points: 131
Re: How to automatically set up a project and add some files to it
« Reply #1 on: August 31, 2010, 05:29:24 pm »
Creating a workspace and/or project can be done outside of SE easily enough by copying a template empty workspace/project file and updating the workspace file to point at the right project file.  Take a look at the VPJ and VPW files, they are user-readable XML.

Adding files to a project and tagging them is more complex, but here is a macro with code for how to do that.

Launching SE and telling it to run a macro is simple, look up the "Invocation Options" in the Help, and look for the -p flag.

lusu2004

  • Community Member
  • Posts: 39
  • Hero Points: 1
Re: How to automatically set up a project and add some files to it
« Reply #2 on: September 02, 2010, 02:39:31 am »
thanks you, chrisant!!!