Originally posted by plp626 at 2009-10-12 20:23:
我服了,你专门找bug
可话说回来,谁会这样输入,cmd/c 不说,还要在文件明前带""
不是和你抬杠哈,但有个实例就是:
我在启动项里面加了个A.vbs脚本,作用就只是隐藏窗口调用B.bat,因为B.bat在programfiles目录下,目录名带空格,所以调用的时候我习惯加上双引号。
刚看到这个帖子的时候我就在想,可不可以借鉴来加强B.bat的安全性,即只能通过A.vbs来调用B.bat,甚至直接在CMD下面也不能执行。
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.