我有很多个文件夹 文件夹下的文件名都一样
假设有三个文件夹(wena wen1 wenabc)
这三个文件夹下分别都有 (index.php 和 new.php)
index.php 和 new.php 这两个文件都有一行数据为 $cityid='XX';
比如
wena下的 index.php 中 $cityid=180;new.php 中 $cityid=23;
wen1下的 index.php 中 $cityid=181;new.php 中 $cityid=23;
wenabc下的 index.php 中 $cityid=182;new.php 中 $cityid=23;
改为
wena下的 index.php 中 $cityid=180;new.php 中 $cityid=180;
wen1下的 index.php 中 $cityid=181;new.php 中 $cityid=181;
wenabc下的 index.php 中 $cityid=182;new.php 中 $cityid=182;
其它的文件夹以此类推
.bat 从一个文件取值赋给另一个文件
答案:1 悬赏:30
解决时间 2021-02-03 19:41
- 提问者网友:小姐请专情
- 2021-02-03 08:40
最佳答案
- 二级知识专家网友:懂得ㄋ、沉默
- 2021-02-03 10:16
第一个bat内容:(其中 2.bat 是第二个bat的名字。自己改)
@echo off
set /p a=<Value.txt
2.bat %a%
pause
第二个bat引用例子:
echo -id1=%1, -id2=%2, -id3=%3, -id4=%4
@echo off
set /p a=<Value.txt
2.bat %a%
pause
第二个bat引用例子:
echo -id1=%1, -id2=%2, -id3=%3, -id4=%4
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯