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-12 15:13
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Problem] Let the batch processing determine by itself whether it is run by double - clicking View 3,043 Replies 20
Floor 16 Posted 2009-10-12 19:10 ·  中国 广东 东莞 电信
银牌会员
★★★
批处理编程迷
Credits 1,916
Posts 752
Joined 2008-12-28 04:30
17-year member
UID 135147
Gender Male
From 广西
Status Offline
Still not perfect, the one on floor 12 is cracked:

cmd /c ""D:\myfiles\Desktop\bat\test3.bat" "
精简
=> 个人网志
Floor 17 Posted 2009-10-12 19:16 ·  中国 陕西 西安 电信
银牌会员
★★★★
钻石会员
Credits 2,278
Posts 1,020
Joined 2007-11-19 13:34
18-year member
UID 103127
Gender Male
Status Offline
Originally posted by netbenton at 2009-10-12 07:10 PM:
Still not perfect, the one on floor 12 is cracked:

cmd /c ""D:\myfiles\Desktop\bat\test3.bat" "


There is an update on floor 14, you can test it
山外有山,人外有人;低调做人,努力做事。

进入网盘(各种工具)~~ 空间~~cmd学习
Floor 18 Posted 2009-10-12 19:38 ·  中国 广东 东莞 电信
银牌会员
★★★
批处理编程迷
Credits 1,916
Posts 752
Joined 2008-12-28 04:30
17-year member
UID 135147
Gender Male
From 广西
Status Offline
The person on floor 14 has also cracked it. Try entering in the command line according to the method of floor 16.

Result:
"Double-click"
精简
=> 个人网志
Floor 19 Posted 2009-10-12 20:23 ·  中国 陕西 西安 电信
银牌会员
★★★★
钻石会员
Credits 2,278
Posts 1,020
Joined 2007-11-19 13:34
18-year member
UID 103127
Gender Male
Status Offline
Originally posted by netbenton at 2009-10-12 07:38 PM:
The person on floor 14 also cracked it.
Try entering it in the command line according to the method on floor 16,

Result:
"Double-click"

I'm convinced, you're specifically looking for bugs.
But having said that, who would enter it like this? Not to mention cmd/c, but also putting "" in front of the file name
山外有山,人外有人;低调做人,努力做事。

进入网盘(各种工具)~~ 空间~~cmd学习
Floor 20 Posted 2009-10-14 14:57 ·  中国 广东 深圳 电信
新手上路
Credits 18
Posts 18
Joined 2009-07-27 08:53
17-year member
UID 149450
Gender Male
Status Offline
Originally posted by plp626 at 2009-10-12 20:23:


I'm convinced, you're specifically looking for bugs
But having said that, who would input like this, not to mention cmd/c, but also with "" before the file name


It's not to argue with you, but there's an example:
I added an A.vbs script in the startup item, and its function is just to hide the window and call B.bat. Because B.bat is in the programfiles directory, and the directory name has spaces, so I'm used to adding double quotes when calling it.

When I just saw this post, I was thinking, can I use this to enhance the security of B.bat, that is, it can only be called through A.vbs, and even cannot be executed directly in CMD.
Floor 21 Posted 2009-10-23 22:26 ·  中国 云南 玉溪 电信
新手上路
Credits 14
Posts 13
Joined 2009-07-06 12:21
17-year member
UID 148847
Gender Female
Status Offline
I really admire you, the one on the 2nd floor.
天行健 君子以自强不息
Forum Jump: