如何从任务列表中隐藏独立exe?

编程入门 行业动态 更新时间:2024-10-10 21:21:42
本文介绍了如何从任务列表中隐藏独立exe?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我希望听到您的消息,这是一种不好的做法,并同意;)

I expect to hear from you that this is a bad practice and agree ;)

喜欢这样做的唯一原因是不要以锁定的文件结尾,如果用户从任务管理器"中杀死我的进程会发生什么.或者,如果您有更好的主意,请请不要着急投票!作为编程的新手,我没有更好的主意.如果您建议我以其他形式重新提问,也许可以,但是现在我很乐意按原样答复我的问题.

The only reason to like to do so is to not end with locked files, what would happen if the user kill my process from the Task Manager. Or if you have a better idea, Please do not rush to downvote! As new to programming at all I have not better idea. If you suggest me to re-ask my question in different form, probably will do, but for now I'll gald to get a reply on my question as is.

尝试使用 App.TaskVisible 属性并将其设置为False,并在我的Sub Main过程中执行此操作,但这不起作用.

What am try is to use App.TaskVisible property and set it to False, and did this inside my Sub Main procedure, but that not work.

请记住,VB6有点新(感谢您的理解!),并且我第一次尝试使用该属性,所以我承认我做错了什么.使用App.TaskVisible看起来是如此简单自然,我很乐意告诉我如何正确使用它.

Bear in mind that am a bit new to VB6 (Thank you in advance for your understanding!) and I try that property for a first time, so I admit that I do something wrong. It's looks so simple and natural to use App.TaskVisible, and I'll glad to tell me how to use it properly.

我所拥有的是一个标准EXE应用程序,该应用程序没有任何形式或接口,仅在后台执行文件I/O操作,还没有弹出任何对话框(如果重要的话),它将错误(如果有的话)记录到文件中,因此没有任何用户交互.该应用程序将在命令提示符下或通过批处理文件独立运行.

What I have is a Standard EXE application that has no forms or any interfaces, just perform file i/o operations on the background, nor yet popup any dialogs (if that important), it log errors (if any) to file, so no any user interaction. The app will run standalone form the command prompt or via batch file.

我对该属性进行了很多搜索,但是我发现的唯一一个示例在Form_Load事件中使用了此属性,并且没有任何废话,也根本无法工作.

I search a lot about this property, but the only one example I found used this property inside Form_Load event and that make no nonsense and no way to work at all.

我也寻找任何说明此属性是否折旧的信息,但没有发现任何信息.还要寻找任何未记录的限制,却一无所获.

I seek as well for any info that say whether this property is depreciated or not, and found nothing. Also seek for any undocumented restrictions, and found nothing too.

当然,最终目标是最重要的,但我会很高兴和 将按顺序感谢您的建议:

Of course, the final goal is the most important, but I'll glad and will appreciate your suggestions in that order:

  • 最好使用App.TaskVisible属性.
  • 任何其他替代方法.
  • 最糟糕的是,告诉我这根本不可能.
  • 如果(是否喜欢)答案为#3,我将询问如何防止锁定文件,但这将是一个单独的主题.

    If (like or not) the answer is #3, I'll ask about how to prevent locked files, but this will be an separate topic.

    谢谢

    推荐答案

    您曾经能够从Windows 9x(95到ME)的Ctrl + Alt + Del任务列表中隐藏应用程序,但这是不可能的基于NT的Windows版本(包括Windows 2000以来的所有Windows版本).

    You used to be able to hide an application from the Ctrl+Alt+Del task list in Windows 9x (95 to ME), however that wasn't possible in NT-based Windows versions (which includes all Windows versions since Windows 2000).

    如果您担心如果在I/O操作过程中杀死程序,磁盘上的文件可能最终会损坏,那么您可能要使用某种形式的事务数据库. SQLite非常擅长事务处理(它 ACID 兼容).

    If you're worried that files on disk may end up being corrupted if your program is killed in the middle of an I/O operation, you'll probably want to use some form of transactional database. SQLite is great at transactions (it is ACID-compliant).

    更多推荐

    如何从任务列表中隐藏独立exe?

    本文发布于:2023-11-13 04:30:50,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1583433.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:独立   列表中   exe

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!