![]() |
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 13:22 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » How to clear a copied file and write new content into it |
| Printable Version 715 / 0 |
| Floor1 xue0808 | Posted 2010-04-16 13:36 |
| 初级用户 Posts 56 Credits 108 | |
|
sj=Int((100 * Rnd) + 1)
Set fso = Wscript.CreateObject("Scripting.FileSystemObject") set c=fso.getfile("C:\ip\ip.txt") w=c.copy("E:\")&sj&(".txt") No matter how I write the second half, it gives an error. My skills still aren't good enough. Please help, experts, thanks. |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |