中国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-01 22:12
48,037 topics / 350,122 posts / today 2 new / 48,250 members
DOS批处理 & 脚本技术(批处理室) » Protecting a CMD file
Printable Version  1,057 / 8
Floor1 chainliq Posted 2006-07-18 06:04
高级用户 Posts 244 Credits 635 From 广西贵港
@start \\game\\data$


Save the above as a CMD file, but if you right-click it and choose Edit, you can still see what's inside. Does anyone have any way to make it no longer show up under Edit when right-clicking? I just don't want other people to see it, hehe. I work at an internet cafe. It's also a way to leave myself a backup plan. Right?~
Floor2 electronixtar Posted 2006-07-18 08:43
铂金会员 Posts 2,672 Credits 7,493
Write it in C, then don't use bat, that will do~~~
Floor3 namejm Posted 2006-07-18 13:42
荣誉版主 Posts 1,737 Credits 5,226 From 成都
  Use QuickBFC to convert the bat file into an exe file.
Floor4 chainliq Posted 2006-07-19 05:06
高级用户 Posts 244 Credits 635 From 广西贵港
No, ~~!
Same thing, it can't be converted, or after converting it won't work!~
Floor5 namejm Posted 2006-07-19 13:38
荣誉版主 Posts 1,737 Credits 5,226 From 成都
  So is it that it can't be converted, or that after converting it won't work?
Floor6 chainliq Posted 2006-07-19 19:42
高级用户 Posts 244 Credits 635 From 广西贵港
Yeah, you got it right, after converting it won't work. It says it's code the CPU can't recognize!
Floor7 namejm Posted 2006-07-19 19:49
荣誉版主 Posts 1,737 Credits 5,226 From 成都
  Maybe the \\ and $ symbols are a bit strange, so QuickBFC can't convert them correctly.
Floor8 chainliq Posted 2006-07-19 19:59
高级用户 Posts 244 Credits 635 From 广西贵港
Then is there any better way??
Please, everybody, show what you can do~
Floor9 3742668 Posted 2006-07-19 23:09
荣誉版主 Posts 718 Credits 2,013
Without converting the .bat, how can I prevent others from viewing or modifying its contents?
But the question you're asking is
make it no longer show up under Edit when right-clicking

which doesn't seem very consistent with the title. If you want the "Edit" menu not to appear on the right-click menu, you can delete "Edit" for bat files under "File Types" in "Folder Options"; or directly modify the registry. The two methods lead to the same result, but editing the registry is a bit more complicated.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023