批处理文件:无法使用写字板打开特定文件并保存

时间:2023-01-11 02:09:14

Initially I captured a file using batch file and it is open with Notepad. How do I code the batch file so that it will save with WordPad.

最初我使用批处理文件捕获文件,并使用记事本打开。如何编写批处理文件以便使用写字板保存。

Batch File :

批处理文件:

Remarks:This document is for Linksys for version v4.30.5, the auto sensing part.
"C:\Program Files (x86)\Wireless Guard\wget" "http://192.168.1.254/xslt@PAGE=C_2_0"
copy "xslt@PAGE=C_2_0" "xslt@PAGE=C_2_0.txt"
del "xslt@PAGE=C_2_0"

1 个解决方案

#1


0  

You don't really have to do anything to get it to save with WordPad as such. As previously commented batch files output to plain text so you can open it with WordPad if you wish.

你不需要做任何事情来使用WordPad保存它。如前所述,批处理文件输出为纯文本,因此如果您愿意,可以使用写字板打开它。

You could do this in batch with:

您可以批量执行此操作:

write txtfile.txt

Or to permanently associate WordPad set it as your default txt program in Control Panel.

或者永久关联写字板,将其设置为控制面板中的默认txt程序。

Hope this helps.

希望这可以帮助。

#1


0  

You don't really have to do anything to get it to save with WordPad as such. As previously commented batch files output to plain text so you can open it with WordPad if you wish.

你不需要做任何事情来使用WordPad保存它。如前所述,批处理文件输出为纯文本,因此如果您愿意,可以使用写字板打开它。

You could do this in batch with:

您可以批量执行此操作:

write txtfile.txt

Or to permanently associate WordPad set it as your default txt program in Control Panel.

或者永久关联写字板,将其设置为控制面板中的默认txt程序。

Hope this helps.

希望这可以帮助。