简体   繁体   中英

How can i create .bat file to run "devenv" command with VS2012 Developer Command Prompt?

i want to run this code to rebuild my project every X minutes

devenv /rebuild Debug "C:\\inetpub\\wwwroot\\myProject\\Project.sln"

Now i can run this command only in Developer Command Prompt for VS2012, my question is, can i create .bat file to run this through Developer command prompt, if yes, what is the code lines that i need to write in .bat file?

There is a batch file called: vsVars32.bat .

Call that from your .bat file and it will setup the environment.

(Note there are other 'flavors' of the file, I think that is the correct one).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM