中国DOS联盟论坛

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 04:18
48,038 topics / 350,123 posts / today 0 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » Copy path to clipboard → VBS version
Printable Version  2,974 / 15
Floor1 baomaboy Posted 2007-03-18 10:46
银牌会员 Posts 554 Credits 1,513
I forgot where I got the PathCopyEx.DLL file. After registration, there will be an additional item "Copy Path to Clipboard" in the right-click menu. It is indeed very convenient and quick in daily path copying operations. Later, I imitated 4 other versions of "Copy Path to Clipboard" with the same function.

①Original PathCopyEx_DLL. As long as PathCopyEx.DLL is registered, the right-click menu will appear.
http://zhenlove.com.cn/cndos/fileup/files/PathCopyEx_DLL.rar

②PathCopyEx_Excel.rar, imitated version. The disadvantage is that it requires EXCEL support.
http://zhenlove.com.cn/cndos/fileup/files/PathCopyEx_Excel.rar

③PathCopyEx_IE.rar, imitated version. The disadvantage is that it requires IE support.
http://zhenlove.com.cn/cndos/fileup/files/PathCopyEx_IE.rar

④PathCopyEx_Notepad.rar, imitated version. The advantage is that no additional support programs need to be installed. Only Notepad function and wscript are needed, which are both system-built-in and installed by default. The disadvantage is that a Notepad window flashes during the operation.
http://zhenlove.com.cn/cndos/fileup/files/PathCopyEx_Notepad.rar

⑤PathCopyEx_Winclip.rar, imitated version. The disadvantage is that it requires third-party Winclip support.
http://zhenlove.com.cn/cndos/fileup/files/PathCopyEx_Winclip.rar




[ Last edited by baomaboy on 2007-3-18 at 10:50 AM ]
Floor2 electronixtar Posted 2007-03-18 12:39
铂金会员 Posts 2,672 Credits 7,493
Still the IE version is the most enjoyable. I've always used it.
Floor3 baomaboy Posted 2007-03-18 12:48
银牌会员 Posts 554 Credits 1,513
Originally posted by electronixtar at 2007-3-18 12:39:
The IE version is the most enjoyable. I've been using it all the time.


Brother electronixtar, have you ever encountered this situation when using the IE version?

I have installed Maxthon and set it as the default. When I have a Maxthon window open and then run the copy path in the IE version, it will open a blank Maxthon window (about:blank). Each run opens one, which is really frustrating.
Floor4 electronixtar Posted 2007-03-18 12:51
铂金会员 Posts 2,672 Credits 7,493
Originally posted by baomaboy at 2007-3-18 12:48:


Have you ever encountered this situation with the IE version, Brother electronixtar?

When I have Maxthon installed and it's the default, when I run the IE version to copy the path while the Maxthon window is open, it will open a blank Maxthon window (about:blank). One run opens one, which is really annoying.


Of course, I have encountered it. Solutions:
1. Modify the configuration file of MT.

2. Use other objects. But there is currently no mature method for the time being. If you are interested, you can search the forum for "htmlfile" and "about:blank" in full text.
Floor5 baomaboy Posted 2007-03-18 12:54
银牌会员 Posts 554 Credits 1,513
Originally posted by electronixtar at 2007-3-18 12:51:

Of course I encountered it. Solutions:
1. Modify the configuration file of MT.

2. Use other objects. But there is currently no mature method for the time being. Brother, if you are interested, you can search the forum for "htmlfile" and "about:blank" throughout the text


I see there were already solutions. Thank you, brother.
Floor6 zh159 Posted 2007-03-18 12:56
金牌会员 Posts 1,467 Credits 3,687
I can't download the file, post an IE version for me to see
Floor7 electronixtar Posted 2007-03-18 12:59
铂金会员 Posts 2,672 Credits 7,493
http://www.cn-dos.net/forum/viewthread.php?tid=24064

http://www.cn-dos.net/forum/viewthread.php?tid=22649

http://www.cn-dos.net/forum/viewthread.php?tid=20933


Also, you can join this group: 34021244. There are all extremely powerful people in it. Among them, 9527's WMI and ADSI have reached a profound level. We should learn a lot from him about VBS. 9527 and the former kevin1986 are both quite powerful. The former moderator in the forum, 3742668, is also a master among masters. Unfortunately, he is not online now...
Floor8 zh159 Posted 2007-03-18 13:25
金牌会员 Posts 1,467 Credits 3,687
Brother electronixtar, I can't download the file for uploading the system here. Post an IE version for me to take a look.
Floor9 baomaboy Posted 2007-03-18 13:28
银牌会员 Posts 554 Credits 1,513

electronixtar brother, I can't download the file to upload the system here. Post an IE version for me to see.

Set objIE = CreateObject("InternetExplorer.Application")
objIE.Navigate("about:blank")
str = objIE.document.parentwindow.clipboardData.GetData("text")
WScript.Echo str
Floor10 zh159 Posted 2007-03-18 13:35
金牌会员 Posts 1,467 Credits 3,687
Is this to display the clipboard content?
Floor11 baomaboy Posted 2007-03-18 13:41
银牌会员 Posts 554 Credits 1,513
Originally posted by zh159 at 2007-3-18 13:35:
Is this to display the clipboard content?

objIE.document.parentwindow.clipboardData.SetData "text", strCopy

strCopy is the obtained string
Floor12 baomaboy Posted 2007-04-13 13:46
银牌会员 Posts 554 Credits 1,513
Winclip version
Floor13 baomaboy Posted 2007-04-13 13:48
银牌会员 Posts 554 Credits 1,513
Notepa version
Floor14 baomaboy Posted 2007-04-13 13:50
银牌会员 Posts 554 Credits 1,513
IE version
Floor15 baomaboy Posted 2007-04-13 13:51
银牌会员 Posts 554 Credits 1,513
Excel Version
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023