China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-08 07:46
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to clear the clipboard using DOS commands? View 1,535 Replies 8
Original Poster Posted 2008-03-13 13:34 ·  中国 广东 肇庆 电信
新手上路
Credits 14
Posts 7
Joined 2007-12-17 15:56
18-year member
UID 105937
Gender Male
Status Offline
I'm a rookie, and I ask a weak question. How to clear the clipboard with a DOS command? Or a batch script?
Floor 2 Posted 2008-03-13 13:58 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
DOS? CMD bar!
This question is still weak
Search for the keyword "clipboard"
第一高手 第二高手

Floor 3 Posted 2008-03-13 15:11 ·  中国 广东 肇庆 电信
新手上路
Credits 14
Posts 7
Joined 2007-12-17 15:56
18-year member
UID 105937
Gender Male
Status Offline
I'm sorry, please don't deduct my points. Also, you spoke vaguely and deducted others' points.

[ Last edited by crab914 on 2008-3-13 at 03:13 PM ]
Floor 4 Posted 2008-03-13 15:43 ·  中国 浙江 温州 电信
中级用户
★★
Credits 458
Posts 196
Joined 2006-10-05 12:04
19-year member
UID 64614
Status Offline
Floor 5 Posted 2008-03-13 15:56 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
Posting the same question twice, should it be deducted!

Your answer is in this section and is a topic replied to today, should it be deducted!
http://www.cn-dos.net/forum/viewthread.php?tid=37094&fpage=2
Make a slight modification
@echo off
>tmp.vbs echo Set objIE = CreateObject("InternetExplorer.Application")
>>tmp.vbs echo objIE.Navigate("about:blank")
>>tmp.vbs echo objIE.document.parentwindow.clipboardData.SetData "text", ""
>>tmp.vbs echo objIE.Quit
Cscript.exe //nologo tmp.vbs
del tmp.vbs
pause
第一高手 第二高手

Floor 6 Posted 2008-03-13 22:19 ·  中国 广东 肇庆 电信
新手上路
Credits 14
Posts 7
Joined 2007-12-17 15:56
18-year member
UID 105937
Gender Male
Status Offline
Sorry, I'm a first-time registrant today and not very clear about the rules here. Please be lenient with me as it's my first offense. Thanks in advance for the code.
Floor 7 Posted 2008-03-13 22:36 ·  中国 广东 肇庆 电信
新手上路
Credits 14
Posts 7
Joined 2007-12-17 15:56
18-year member
UID 105937
Gender Male
Status Offline
Lao, what does this mean? Can you explain it?
Floor 8 Posted 2008-04-21 17:53 ·  中国 辽宁 锦州 电信
初级用户
Credits 64
Posts 46
Joined 2008-04-21 14:54
18-year member
UID 116504
Gender Male
Status Offline
Thanks to the LZ's question and the moderator's answer, it's useful.

The dialogue is also quite interesting, heh heh!
Floor 9 Posted 2008-04-22 20:21 ·  中国 河南 郑州 联通
新手上路
Credits 11
Posts 6
Joined 2008-04-17 13:13
18-year member
UID 116143
Gender Male
From 山西晋城
Status Offline
Thanks
Forum Jump: