如何防止.exe在CD或USB端口上运行 [英] How to prevent .exe running on CD or USB port
本文介绍了如何防止.exe在CD或USB端口上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨。
Exe应该只运行PC。
Exe不能从CD或USB端口运行。
有没有办法检查它是目录还是CD或端口?
我可以使用文件系统对象来解决这个问题吗?
问候,
Prakash.s
Hi.
Exe should run only PC.
Exe should not run from either CD or USB port.
Is there a way to check whether it is directory or CD or port?
Can I use File system object to solve this problem?
Regards,
Prakash.s
推荐答案
对于CD,请关注此Microsoft链接:
http://support.microsoft.com/kb/155217
对于USB,请关注以下链接:
http://features.engadget.com/2004/06...un-on-windows/
For CD follow this Microsoft Link:
http://support.microsoft.com/kb/155217
For USB follow thia link:
http://features.engadget.com/2004/06...un-on-windows/
我认为FileSystemObject会告诉你一个驱动器类型,所以你可以在允许任何事情发生之前检查它。具体来说,请转到您的文档并查看 DriveType 属性。
I think the FileSystemObject will tell you a drive type, so you might be able to check that before allowing anything to happen. Specifically, go to your documentation and check out the DriveType property.
我认为FileSystemObject会告诉您驱动器类型,因此您可以在允许任何事情发生之前检查它。具体来说,请转到您的文档并查看 DriveType 属性。
I think the FileSystemObject will tell you a drive type, so you might be able to check that before allowing anything to happen. Specifically, go to your documentation and check out the DriveType property.
我没有阅读文件系统对象.....蚂蚁认为存在差异问题
I did not read the Filesystem Object.....ant thought a diff problem
这篇关于如何防止.exe在CD或USB端口上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文