|
bat-zw
金牌会员
      永远的学习者
积分 3105
发帖 1276
注册 2008-3-8
状态 离线
|
『楼 主』:
此贴有误请不要再进!!!
使用 LLM 解释/回答一下
我们在写批处理时往往要用到退格键(backspace),但我相信很多人并不知道怎么在cmd输入退格键""(注中间是个退格键不是空格),我原来也都是从别人的批处理上直接复制过来的。
为了这个问题,我专门在百度上搜了下,终于还是被我找到了输入的方法(虽然也要用复制):在cmd下输入edit进入文本编辑器,然后直接按下键盘上的退格键(backspace),再ctrl+c复制下来再ctrl+v粘贴到需要的地方就可以了。
==============================================
现在实验出了第二种方法(最方便快捷):打开txt直接ctrl+backspace就可以了,对了我的环境是XPSP2。
===================================
对不起大家了,经反复实验,证明我说的两种方法都是错误的。
Last edited by zw19750516 on 2008-5-19 at 09:47 PM ]
When writing batch scripts, we often need to use the backspace key. But I believe many people don't know how to input the backspace character "" (note that it's a backspace key, not a space) in cmd. I used to just copy it from others' batch scripts.
For this problem, I specifically searched on Baidu and finally found the input method (although it still requires copying): Enter edit in cmd to enter the text editor, then directly press the backspace key on the keyboard, then copy with ctrl+c and paste to the place needed with ctrl+v.
==============================================
Now an experimental second method (the most convenient and quick) is found: Open txt and directly press ctrl+backspace. By the way, my environment is XPSP2.
===================================
I'm sorry everyone. After repeated experiments, it's proved that both methods I mentioned are wrong.
Last edited by zw19750516 on 2008-5-19 at 09:47 PM ]
|

批处理之家新域名:www.bathome.net |
|
2008-3-31 15:12 |
|
|
abcd
银牌会员
    
积分 1436
发帖 739
注册 2007-10-11
状态 离线
|
|
2008-3-31 15:17 |
|
|
plp626
银牌会员
     钻石会员
积分 2278
发帖 1020
注册 2007-11-19
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
那个键的Ascii码好像是127
打开记事本 alt+127 然后复制.
The ASCII code of that key seems to be 127. Open Notepad, press alt+127 and then copy.
|

山外有山,人外有人;低调做人,努力做事。
进入网盘(各种工具)~~ 空间~~cmd学习 |
|
2008-3-31 15:17 |
|
|
26933062
银牌会员
    
积分 2268
发帖 879
注册 2006-12-19
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
呵呵,上面说的几种方法得到的都不是退格,只是看上去都是个黑方框,但不是退格。我也一直想有一种快捷的方法得到,但始终没有。。
Hehe, the several methods mentioned above don't get backspace, they just look like black boxes, but they aren't backspace. I've always wanted a quick way to get it, but I still haven't.
|

致精致简! |
|
2008-3-31 16:51 |
|
|
bat-zw
金牌会员
      永远的学习者
积分 3105
发帖 1276
注册 2008-3-8
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
Originally posted by 26933062 at 2008-3-31 16:51:
呵呵,上面说的几种方法得到的都不是退格,只是看上去都是个黑方框,但不是退格。我也一直想有一种快捷的方法得到,但始终没有。。
证明的方法是复制退格然后进cmd先把光标移到后面点再粘贴看看光标是不是向前移动了一格。
我可以保证在XPSP2环境下用第二种方法绝对打出退格!
Originally posted by 26933062 at 2008-3-31 16:51:
Hehe, the several methods mentioned above don't get backspace, just look like a black box, but it's not backspace. I've been wanting a quick way to get it, but never have.
The proof method is to copy backspace then enter cmd, first move the cursor to the back and then paste to see if the cursor moves forward by one grid.
I can guarantee that using the second method in XPSP2 environment definitely types out backspace!
|

批处理之家新域名:www.bathome.net |
|
2008-3-31 17:06 |
|
|
plp626
银牌会员
     钻石会员
积分 2278
发帖 1020
注册 2007-11-19
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
Originally posted by 26933062 at 2008-3-31 04:51 PM:
呵呵,上面说的几种方法得到的都不是退格,只是看上去都是个黑方框,但不是退格。我也一直想有一种快捷的方法得到,但始终没有。。
嗯,确实,那个alt+127是"del"
不过效果差不多
Originally posted by 26933062 at 2008-3-31 04:51 PM:
Hehe, the several methods mentioned above all don't get backspace, just look like a black square, but it's not backspace. I've been wanting to have a quick method to get it, but always haven't.
Hmm, indeed, that alt+127 is "del"
But the effect is similar
|

山外有山,人外有人;低调做人,努力做事。
进入网盘(各种工具)~~ 空间~~cmd学习 |
|
2008-3-31 17:35 |
|
|
26933062
银牌会员
    
积分 2268
发帖 879
注册 2006-12-19
状态 离线
|
 『第 7 楼』:
使用 LLM 解释/回答一下
Originally posted by zw19750516 at 2008-3-31 17:06:
证明的方法是复制退格然后进cmd先把光标移到后面点再粘贴看看光标是不是向前移动了一格。
我可以保证在XPSP2环境下用第二种方法绝对打出退格!
以下代码用的是退格,显示结果应该是一排英文字母,看不见汉字。
用你的方法试试?
:
@echo off
setlocal enabledelayedexpansion
set "退格="
set "var=证明是否是复制退格"
set/p=%var%<nul
for /l %%a in (1 1 20) do set /p=!退格!<nul
set/p=ierythgfdkjghfdsiygsdfghsfdg
pause>nul
Originally posted by zw19750516 at 2008-3-31 17:06:
The proof method is to copy the backspace and then enter cmd, first move the cursor to the back point, and then paste to see if the cursor moves forward by one grid.
I can guarantee that the second method will definitely type the backspace in the XPSP2 environment!
The following code uses backspace, and the display result should be a row of English letters, and Chinese characters are not visible.
Try it with your method?
:
@echo off
setlocal enabledelayedexpansion
set "backspace="
set "var=Is the proof copying backspace"
set/p=%var%<nul
for /l %%a in (1 1 20) do set /p=!backspace!<nul
set/p=ierythgfdkjghfdsiygsdfghsfdg
pause>nul
|

致精致简! |
|
2008-3-31 18:02 |
|
|
yangjiang
初级用户
 
积分 92
发帖 49
注册 2006-10-22
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
呵呵,又学习了一招,谢谢
Hehe, learned another trick again, thanks
|
|
2008-3-31 19:49 |
|
|
plp626
银牌会员
     钻石会员
积分 2278
发帖 1020
注册 2007-11-19
状态 离线
|
|
2008-4-1 12:19 |
|
|
Climbing
铂金会员
       网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
其实也好输入,随便打开一个16进制的编辑器,例如UE,然后切换到16进制模式,输入一个08就行了。
楼主所讲的在记事本中Ctrl+BS输入的是0x7F,也就是127,这个应该是DEL键,不是退格键,试验环境:中文XP SP2。
Actually, it's also easy to input. Just open any hex editor, such as UE, then switch to hex mode and input a 08.
What the LZ described about inputting Ctrl+BS in Notepad is 0x7F, which is 127, and this should be the DEL key, not the backspace key. Test environment: Chinese XP SP2.
|

偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|
2008-4-1 14:22 |
|
|
Shinaterry
初级用户
 
积分 97
发帖 51
注册 2008-3-19
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
学习! Ctrl+BackSpace 不是..
Study! Ctrl+BackSpace is not..
|
|
2008-4-2 15:19 |
|
|
p1509101
中级用户
   海浪人生
积分 206
发帖 103
注册 2007-7-4
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
..........................
Please provide the specific Chinese text that needs to be translated. Without the Chinese content, I can't perform the translation.
|
|
2008-4-3 16:47 |
|
|
xtanbmy
初级用户
 
积分 47
发帖 31
注册 2008-3-17
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
真的学习了。以前我也不知道。
Really learned. I didn't know before.
|
|
2008-4-7 19:23 |
|
|
plp626
银牌会员
     钻石会员
积分 2278
发帖 1020
注册 2007-11-19
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
为了这个问题,我专门在百度上搜了下,终于还是被我找到了输入的方法(虽然也要用复制):在cmd下输入edit进入文本编辑器,然后直接按下键盘上的退格键(backspace),再ctrl+c复制下来再ctrl+v粘贴到需要的地方就可以了。
你的第一种方法也不行呀!
我试过了,如果我那里说的不对,请楼主指出:
在edit下按backspace得不到任何可见字符,如果光标左边有字符,它只会删去左边的字符。
还有在edit下是不能用ctr+c直接复制到记事本上,
For this problem, I specifically searched on Baidu and finally found the input method (although copying is also required): Enter edit in cmd to enter the text editor, then directly press the backspace key on the keyboard, then ctrl+c to copy and then ctrl+v to paste to the place you need.
Your first method doesn't work either!
I tried it. If what I said is incorrect, please point it out by the owner:
Pressing backspace under edit doesn't get any visible characters. If there are characters to the left of the cursor, it will only delete the characters to the left.
Also, under edit, you can't directly use ctrl+c to copy to Notepad,
|

山外有山,人外有人;低调做人,努力做事。
进入网盘(各种工具)~~ 空间~~cmd学习 |
|
2008-4-12 16:29 |
|
|
106942397
初级用户
 
积分 29
发帖 15
注册 2008-4-23
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
用Notepad++按ALT+8
是退格符,后复制到文本中...
用文本按ALT+8
只是实行操作
Press ALT+8 in Notepad++ to get the backspace character, then copy it into the text... Pressing ALT+8 in text just performs the operation
|
|
2008-4-25 10:52 |
|