I want to make a batch file with the path and commands i used
I want to make a batch file from the below given procedure.. my original directory was C:/Users/Suvin..I changed the Directory to C:/AnimationApp.. After this i setted the path as set path=C:\bada\1.0.0开发者_StackOverflowb3\Tools\Toolchains\Win32\bin%path%C:\bada\1.0.0b3\Include..Then i setted the environmenat variables as set CPLUS_INCLUDE_PATH=C:\bada\1.0.0b3\Include.. after this is executed my commands to make an executable file from commnd prompt. Now could any body help me that how to make a batch file from above procedure. Thanks
Open a new file and call it something with a .bat
extension. Add the below text as the command you wish to execute and execute the file by typing the name on the command line.
pushd C:\AnimationApp
set PATH=C:\bada\1.0.0b3\Tools\Toolchains\Win32\bin%path%C:\bada\1.0.0b3\Include
set CPLUS_INCLUDE_PATH=C:\bada\1.0.0b3\Include
call <command to execute on command line>
Here is a link for batch file commands.
For a batch file like the one you described, you can simply enter all of the commands you used manually, one on each line.
just create a new file witha. .bat extension, and type the commands exactly as you typed them on the command line.
DOS/Windows batch files are just sequences of commands. There are some special constructs you can use such as GOTO and REM that are not usual commands and useful for batch files.
So you would just enter your commands in a text file as such:
REM My cool batch
REM 2010.09.04
cd C:\AnimationApp
And so on and so forth. If you have a more specific question, please clarify.
精彩评论