中国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-29 08:05
47,816 topics / 349,916 posts / today 0 new / 48,265 members
DOS批处理 & 脚本技术(批处理室) » Batch processing to display consecutive letters?
Printable Version  4,888 / 20
Floor1 online365 Posted 2007-01-09 17:32
初级用户 Posts 75 Credits 182
For example, if I enter "af", it displays:

a
b
c
d
e
f

Each letter occupies one line. I wonder if it can be achieved..
Floor2 qasa Posted 2007-01-09 17:38
高级用户 Posts 311 Credits 959 From 广东-LianJiang
I think it should not work, unless characters can be converted into numbers to run, and then numbers are converted back to letters after running. This is the same principle as the post I previously posted about ASCII code and conversion between letters and numbers.
Floor3 PPdos Posted 2007-01-09 18:12
高级用户 Posts 268 Credits 783
Floor4 namejm Posted 2007-01-10 00:18
荣誉版主 Posts 1,737 Credits 5,226 From 成都
The following is the translated content:

The demonstration code is as follows (no fault tolerance detection is done):
Floor5 youxi01 Posted 2007-01-10 02:09
高级用户 Posts 247 Credits 846 From 湖南==》广东
Let's play too^_^
Floor6 youxi01 Posted 2007-01-10 02:21
高级用户 Posts 247 Credits 846 From 湖南==》广东
There is another one that is easier to understand:

Floor7 online365 Posted 2007-01-10 07:55
初级用户 Posts 75 Credits 182
Thank you, both.. ^_^
Floor8 PPdos Posted 2007-01-10 09:05
高级用户 Posts 268 Credits 783
@echo off
:begin
set /p a="Old rules, hee hee :"
set str=a b c d e f g h i j k l m n o p q r s t u v w x y z
for %%i in (%str%) do echo %%i|findstr [%a:~0,1%-%a:~-1%]
goto:begin
Floor9 namejm Posted 2007-01-10 09:31
荣誉版主 Posts 1,737 Credits 5,226 From 成都
Then I'll come to another paragraph:



Simplify it further.

[ Last edited by namejm on 2007-1-9 at 08:35 PM ]
Floor10 jmz573515 Posted 2007-01-10 22:38
银牌会员 Posts 464 Credits 1,212
Join in the fun
Floor11 youxi01 Posted 2007-01-11 02:26
高级用户 Posts 247 Credits 846 From 湖南==》广东
Originally posted by jmz573515 at 2007-1-10 10:38 PM:
Join in the fun
Floor12 jmz573515 Posted 2007-01-11 02:57
银牌会员 Posts 464 Credits 1,212
I also hope the friend on the 11th floor can give some guidance. I'm just a beginner in VBS and don't know much about it. Thanks!
Floor13 huzixuan Posted 2007-02-04 08:52
高级用户 Posts 219 Credits 537 From 芜湖
Today I finally understood the code on the 5th floor of the boss.
Floor14 vkill Posted 2007-02-04 10:41
金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽
Can the ASCII code be useful?
Floor15 namejm Posted 2007-02-04 10:57
荣誉版主 Posts 1,737 Credits 5,226 From 成都
Used to process ASCII code?
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023