![]() |
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-04 11:08 |
48,038 topics / 350,123 posts / today 0 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » [Help] Want to use a batch file to add content to Notepad |
| Printable Version 905 / 4 |
| Floor1 instop | Posted 2007-05-04 18:33 |
| 新手上路 Posts 2 Credits 6 | |
|
I want to use a batch file to add content to Notepad
It would be best if it also lets the user choose and enter a specified path The Notepad content is: [sav]----------->this is fixed input vt=specified path file tv=specified path file ................................ For example [sav] vt=c:\1.txt tv=d:\tv\2.txt |
|
| Floor2 slore | Posted 2007-05-04 18:44 |
| 铂金会员 Posts 2,478 Credits 5,212 | |
|
>>Also
set /p |
|
| Floor3 fq1986 | Posted 2007-05-04 18:50 |
| 初级用户 Posts 33 Credits 66 | |
|
I want to know too.. could some expert give some guidance.... many thanks..........
|
|
| Floor4 instop | Posted 2007-05-04 19:13 |
| 新手上路 Posts 2 Credits 6 | |
|
Could post #2 be a bit more specific?
|
|
| Floor5 slore | Posted 2007-05-04 19:33 |
| 铂金会员 Posts 2,478 Credits 5,212 | |
|
@echo off
echo [sav] >T.txt set /p vt=Please enter the path: echo vt=%vt%>>T.txt set /p tv=Please enter the path: echo tv=%tv%>>T.txt |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |