![]() |
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-09-26 03:38 |
47,813 topics / 349,918 posts / today 0 new / 48,275 members |
| DOS批处理 & 脚本技术(批处理室) » [Share] Super Powerful Tool for Converting Web Pages to Text in the Command Line |
| Printable Version 10,310 / 37 |
| Floor16 HUNRYBECKY | Posted 2006-12-03 02:51 |
| 银牌会员 Posts 442 Credits 1,179 | |
|
There is no need for translation as the content contains code and the relevant text is already in a form that can be presented directly. The provided text is a batch script related to the SendTo+ tool, and the Chinese part in the comments is about the author and some information, but the main code part is in English-like structure in terms of commands. So the output remains as the original text content:
无奈何斑竹的东西不错,我在YAHOO看到了他的SENDTO+全是批处理编写的,不错哈。不知道使用什么加密的,能否告诉我?因为你的加密好象没有什么效果。 cls ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: SendTo+ -V0.1 --TextToClip.cmd :: 无奈何@cn-dos.net - 2006-8-18 - mail:wunaihe@gmail.com ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: @echo off setlocal if not DEFINED SendTo+ call :parent "%~dp0..\" type "%~f1" | "%Sendto+%\CMD\winclip.exe" -c goto :EOF :parent ::获取文件父目录 set "SendTo+=%~dp1" set "SendTo+=%SendTo+:~0,-1%" goto :EOF |
|
| Floor17 mqycn | Posted 2007-04-06 09:18 |
| 新手上路 Posts 3 Credits 8 | |
| Floor18 flandy | Posted 2007-04-28 22:47 |
| 初级用户 Posts 40 Credits 94 | |
| Floor19 sunjiang0 | Posted 2007-05-12 05:26 |
| 新手上路 Posts 4 Credits 6 | |
|
I don't know what it's used for
|
|
| Floor20 honghunter | Posted 2007-05-12 09:39 |
| 中级用户 Posts 135 Credits 321 | |
|
This is definitely a good thing, which solved the big problem I encountered before. However, the几位 upstairs, translating posts like this is really a bit strange.
|
|
| Floor21 ddjk | Posted 2007-07-12 23:13 |
| 新手上路 Posts 7 Credits 14 From 广州 | |
|
Thank the moderator for providing such a good tool
|
|
| Floor22 zyfcxp | Posted 2007-09-07 18:26 |
| 初级用户 Posts 24 Credits 41 | |
|
Thank the moderator for providing such a good tool
|
|
| Floor23 cooray | Posted 2007-09-08 22:40 |
| 初级用户 Posts 34 Credits 71 | |
|
It's really good, and I'm really grateful ^_^
|
|
| Floor24 952268849 | Posted 2009-01-27 23:30 |
| 新手上路 Posts 1 Credits 1 From hn | |
|
Nice
|
|
| Floor25 liu3157551 | Posted 2010-01-05 12:53 |
| 中级用户 Posts 164 Credits 259 | |
|
Found some good stuff. Collected it
|
|
| Floor26 sexfio | Posted 2010-01-15 01:53 |
| 社区乞丐 Posts 45 Credits -27 | |
|
On Error Resume Next
sTitle="html2txt" GetHtmlFileName: 'Output: HtmlFileName, including the full file path 'Get the file from parameters or dialog box If WScript.Arguments.Count=0 Then Set objDialog = CreateObject("UserAccounts.CommonDialog") objDialog.Filter = "HTML source files|*.html;*.htm|All files|*.*" objDialog.ShowOpen HtmlFileName = objDialog.FileName If Len(HtmlFileName)=0 Then wscript.Quit End If Else If Len(WScript.Arguments(0).Length)> 3 Then HtmlFileName = WScript.Arguments(0) End If End If 'Validate if the file is valid Set fso =CreateObject("scripting.FileSystemObject") If fso.FileExists(HtmlFileName)=False Then MsgBox "File does not exist!",vbOKOnly, sTitle WScript.Quit End If If Not Left(fso.GetFile(HtmlFileName).Type ,4) = "HTML" Then MsgBox "Please do not select a non-HTML file!",vbOKOnly, sTitle WScript.Quit End If Set HtmlFile=fso.GetFile(HtmlFileName) ConvertHtmlToTxt: 'Get the file extension i=UBound(Split(HtmlFileName,".")) ext=Split(HtmlFileName,".")(i) SaveName=Left (HtmlFileName,Len(HtmlFileName)-Len(ext)-1 Set oHtml=CreateObject ("internetexplorer.application") oHtml.Navigate HtmlFileName oHtml.Document.execCommand "saveas","true",SaveName & ".txt" oHtml.Quit WScript.Quit |
|
| Floor27 fresco | Posted 2010-01-30 21:35 |
| 新手上路 Posts 1 Credits 1 | |
|
Just needed this tool. Thanks for sharing
|
|
| Floor28 szoyj | Posted 2010-01-31 16:40 |
| 新手上路 Posts 3 Credits 4 | |
|
Nice stuff, thanks~
|
|
| Floor29 huangyushun | Posted 2010-02-01 20:52 |
| 新手上路 Posts 3 Credits 7 From 第二天堂 | |
|
I grass Recently so bored to death
|
|
| Floor30 gshccr | Posted 2010-06-25 20:48 |
| 新手上路 Posts 1 Credits 1 | |
| Prev 1 2 3 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |