开发者

Bat file includes

Can one bat file be included in another? I have variables set in one bat file and want to include the other commands by calling a second bat file. I know about the call command. Is the开发者_JAVA技巧re an include command that is saying execute the remainder of the bat file from what is contained in that second bat file?


If you have a file variablefile.bat along the lines of

set var1 = value
set var2 = value

then you can add the line

call variablefile.bat

to another file to import the variables. You can access the variables as usual.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜