【发布时间】:2014-10-17 18:10:30
【问题描述】:
'我有两个文件
C:\Alexander.txt and C:\Test.vbs
'in C:\Alexander.txt 是数字列表。
234.6656
-123.48872
456.75555
345.56777853
-777.4455666
778.522222245
Etc. in down more.
'在 C:\Test.vbs 中是脚本命令。
WshShell.SendKeys "{TAB}"
WScript.Sleep 1
WshShell.SendKeys "{TAB}"
WScript.Sleep 1
WshShell.SendKeys "360.5"
WScript.Sleep 1
WshShell.SendKeys "{TAB}"
WScript.Sleep 1
WshShell.SendKeys "{TAB}"
WScript.Sleep 1
我想做。
'C:\Alexander.txt 将第一个文本行(行)发送到 C:\Test.vbs 第四行将 360.5 替换为 234.6656
'
'example click 1: 234.6656 Send text to C:\Test.vbs line 4 replace 360.5 with 234.6656
(or another line to be able modify the line by me)
'发送到C:\Test.vbs后删除C:\Alexander.txt
中的第一行(行)'C:\Alexander.txt 将第一个文本行(行)发送到 C:\Test.vbs 第四行,将 234.6656 替换为 -123.48872
'
'example click 2: -123.48872 Send text to C:\Test.vbs line 4 replace 234.6656 with -123.48872
(or another line to be able modify the line by me)
'发送到C:\Test.vbs后删除C:\Alexander.txt
中的第一行(行) Click Your.vbs Send and replace in C:\Test.vbs (one by one (to click mouse)
'example click 1 Your.vbs: 234.6656
'example click 2 Your.vbs: -123.48872
'example click 3 Your.vbs: 456.75555
'example click 4 Your.vbs: 345.56777853
'example click 5 Your.vbs: -777.4455666
'example click 6 Your.vbs: 778.522222245
'example click 7 Your.vbs: Etc. to end last line C:\Alexander.txt**
在 C:\Test.vbs 中替换后删除 C:\Alexander.txt 中的第一行(行)
我希望每次点击鼠标到您的 Your.vbs 以将第一个文本行号 C:\Alexander.txt 发送到 Test.vbs 以替换....
我需要你的帮助 非常感谢您的帮助。
【问题讨论】:
标签: vbscript adsutil.vbs