![]() |
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-12 06:28 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » Question about getting values from a loop variable |
| Printable Version 797 / 2 |
| Floor1 54lyp | Posted 2009-08-14 00:45 |
| 初级用户 Posts 16 Credits 36 | |
|
I want to implement the following:
for /f "delims=" %%i in (list.txt) do echo ....... list.txt: d:\aaa\ccc d:\sfks\ksj e:\ttt What I want is to take the content after the last \ in each line that is read, like this: ccc d:\aaa\ccc ksj d:\sfks\ksj ttt e:\ttt Asking any expert who knows to help |
|
| Floor2 qinchun36 | Posted 2009-08-14 01:26 |
| 高级用户 Posts 400 Credits 609 | |
| Floor3 54lyp | Posted 2009-08-14 01:31 |
| 初级用户 Posts 16 Credits 36 | |
|
Hehe, got it working now. Many thanks, expert qinchun36.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |