中国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-09 05:16
47,811 topics / 349,895 posts / today 0 new / 48,253 members
DOS批处理 & 脚本技术(批处理室) » This post has errors, please don't enter again!!!
Printable Version  2,985 / 21
Floor1 bat-zw Posted 2008-03-31 15:12
金牌会员 Posts 1,276 Credits 3,105
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 ]
Floor2 abcd Posted 2008-03-31 15:17
银牌会员 Posts 739 Credits 1,436
Floor3 plp626 Posted 2008-03-31 15:17
银牌会员 Posts 1,020 Credits 2,278
The ASCII code of that key seems to be 127. Open Notepad, press alt+127 and then copy.
Floor4 26933062 Posted 2008-03-31 16:51
银牌会员 Posts 879 Credits 2,268
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.
Floor5 bat-zw Posted 2008-03-31 17:06
金牌会员 Posts 1,276 Credits 3,105
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!
Floor6 plp626 Posted 2008-03-31 17:35
银牌会员 Posts 1,020 Credits 2,278
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
Floor7 26933062 Posted 2008-03-31 18:02
银牌会员 Posts 879 Credits 2,268
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?
:
Floor8 yangjiang Posted 2008-03-31 19:49
初级用户 Posts 49 Credits 92
Hehe, learned another trick again, thanks
Floor9 plp626 Posted 2008-04-01 12:19
银牌会员 Posts 1,020 Credits 2,278
It's really that without communication, progress is hard to make
Floor10 Climbing Posted 2008-04-01 14:22
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
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.
Floor11 Shinaterry Posted 2008-04-02 15:19
初级用户 Posts 51 Credits 97
Study! Ctrl+BackSpace is not..
Floor12 p1509101 Posted 2008-04-03 16:47
中级用户 Posts 103 Credits 206
Please provide the specific Chinese text that needs to be translated. Without the Chinese content, I can't perform the translation.
Floor13 xtanbmy Posted 2008-04-07 19:23
初级用户 Posts 31 Credits 47
Really learned. I didn't know before.
Floor14 plp626 Posted 2008-04-12 16:29
银牌会员 Posts 1,020 Credits 2,278
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,
Floor15 106942397 Posted 2008-04-25 10:52
初级用户 Posts 15 Credits 29
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
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023