![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-05 06:47 |
48,038 topics / 350,123 posts / today 0 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » [Help] How to pass environment variables to another BAT |
| Printable Version 973 / 3 |
| Floor1 zhoushijay | Posted 2007-03-27 03:26 |
| 高级用户 Posts 375 Credits 845 | |
|
For example:
Contents of 11.bat: echo off set a =12 start "" "22.bat" When 22.bat opens, how can %a% become 12? In other words, how can the environment variable from 11.bat be passed to 22.BAT Requirement: 22.BAT must be opened in a new window, so the CALL command cannot be used |
|
| Floor2 Climbing | Posted 2007-03-27 04:26 |
| 铂金会员 Posts 2,753 Credits 6,962 From 河北保定 | |
| Floor3 vk | Posted 2007-03-27 07:23 |
| 中级用户 Posts 86 Credits 218 | |
| Floor4 bd123456789 | Posted 2007-06-30 09:30 |
| 中级用户 Posts 216 Credits 360 | |
|
Then, how can I use CALL to pass the variable from 11.bat into 22.bat?
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |