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-01 05:44
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » How to make ping 192.168.1.1 into an EXE file View 2,417 Replies 7
Original Poster Posted 2006-11-01 11:14 ·  中国 广东 深圳 电信
新手上路
Credits 4
Posts 1
Joined 2006-11-01 08:51
19-year member
UID 69134
Gender Male
Status Offline
Excuse me, how to make the ping 192.168.1.1 command into an EXE file, because it's a bit troublesome to use this command frequently!
Floor 2 Posted 2006-11-02 01:33 ·  中国 山东 济南 移动
钻石会员
★★★★★
Credits 10,051
Posts 3,040
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
Wouldn't it be better to make a batch file.
echo ping 192.1
Making a batch file would be better.
echo ping 192.168.1.1 > pingg.bat
简单就是美
Floor 3 Posted 2006-11-03 03:34 ·  中国 江苏 苏州 联通
中级用户
★★
Credits 298
Posts 118
Joined 2006-03-01 13:30
20-year member
UID 51161
Status Offline
The made pingg.bat can be recompiled into pingg.com
Floor 4 Posted 2006-11-03 03:36 ·  中国 浙江 宁波 电信
初级用户
Credits 44
Posts 15
Joined 2006-10-18 12:14
19-year member
UID 66379
Status Offline
Can RAR be used to compress into an EXE file?
刚建的脚本批处理群:81019377
Floor 5 Posted 2007-04-15 12:34 ·  中国 山东 济宁 联通
中级用户
★★★
痴迷DOS者
Credits 456
Posts 570
Joined 2004-10-09 00:00
21-year member
UID 32281
Gender Male
Status Offline
MASMasm 6.11

;Commands to include:
INSCOMMAND="ping 192.168.1.1"

;Main program part:
.model tiny
.data
adcab db COMMAND,0
.code
.startup
mov si,offset adcab
int 2eh ;COMMAND.COM executes the command
.exit 0
end
DOS不是万能的,没有DOS是万万不能的
自古系统谁无死?留取胆清照汗青!uploadImages/20035317345478982.png
Floor 6 Posted 2007-04-15 12:41 ·  中国 山东 济宁 联通
中级用户
★★★
痴迷DOS者
Credits 456
Posts 570
Joined 2004-10-09 00:00
21-year member
UID 32281
Gender Male
Status Offline
DEBUG上
XXXX:0100 DB BE 0A 01 CD 21 B8 00 4C CD 21
XXXX:010A DB 'ping 192,068,1,1',0
DOS不是万能的,没有DOS是万万不能的
自古系统谁无死?留取胆清照汗青!uploadImages/20035317345478982.png
Floor 7 Posted 2008-12-18 17:25 ·  中国 北京 鹏博士BGP
新手上路
Credits 18
Posts 9
Joined 2008-09-16 17:28
17-year member
UID 125788
Gender Male
Status Offline
Calling under DOS:
system("ping 192.168.1.43");
Floor 8 Posted 2008-12-24 17:05 ·  中国 湖北 武汉 电信
新手上路
Credits 4
Posts 2
Joined 2008-05-16 18:54
18-year member
UID 118870
Gender Male
Status Offline
Just compile a batch command.
Forum Jump: