如何在vb.net中安全地删除usb? [英] how to safely remove usb in vb.net?

查看:93
本文介绍了如何在vb.net中安全地删除usb?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:我们如何安全地删除vb.net中的USB设备?


例如,在vb.net应用程序中,我们从usb设备打开一些文件,

之后,我们想要安全地删除它没有从任务栏上手动完成。


我们怎么做?任何人都可以帮助我吗?


-

通过DotNetMonster.com发布消息
http://www.dotnetmonster.com/Uwe/For...b-net/200712 / 1

question: how do we safely remove a USB device in vb.net?

for example, in the vb.net application, we open some files from a usb device,
and after that, we want to "safely remove" it without doing it manually from
the taskbar.

how do we do it? can anyone help me?

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...b-net/200712/1

推荐答案

" prism via DotNetMonster.com" < u40064 @ uweschrieb
"prism via DotNetMonster.com" <u40064@uweschrieb

问题:我们如何安全地删除vb.net中的USB设备?


例如,在vb.net应用程序中,我们从

usb设备打开一些文件,之后,我们想要安全地删除没有

从任务栏手动完成它。


我们怎么做?谁能帮我?
question: how do we safely remove a USB device in vb.net?

for example, in the vb.net application, we open some files from a
usb device, and after that, we want to "safely remove" it without
doing it manually from the taskbar.

how do we do it? can anyone help me?



VB没有关键字。 VB.Net提供对托管的

程序集和本机dll(平台调用)的访问。在框架组中询问,查看

是否有工具/库或MSDN库win32部分。

Armin


VB does not have a keyword for this. VB.Net offers access to managed
assemblies and native dlls (platform invoke). Ask in a framework group, look
for a tool/library or in the MSDN library win32 section.
Armin


> VB没有关键字。 VB.Net提供对托管
>VB does not have a keyword for this. VB.Net offers access to managed

>程序集和本机dll(平台调用)的访问。在框架组中询问,查看
工具/库或MSDN库win32部分。

Armin
>assemblies and native dlls (platform invoke). Ask in a framework group, look
for a tool/library or in the MSDN library win32 section.

Armin



ok 。感谢您的提示!


-

通过DotNetMonster.com发布消息
http://www.dotnetmonster.com/Uwe/For...b-net/200712 / 1


ok. thanks for the tip!

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...b-net/200712/1


我在开发的VB6应用程序中遇到了同样的问题。我通过炮轰

解决了我在这里找到的外部程序deveject.exe
ftp://ftp.heise.de/pub/ct/listings/0316-208.zip 存档随附

C源代码,如果您有

时间,可以对其进行反向工程以运行本机。为了我的目的,只需将微小的(44Kb)命令行

应用程序放在与我的应用程序相同的目录中,并使用

适当的命令将shell()放到它线args。我花了将近一整天的时间编写了代码,这些代码在我偶然发现之前几乎可以工作。已经在我的应用程序中运行了
,以及所有几乎正常工作的代码。删除了10

分钟,从那时起就没有回头了。


Ron W


" prism通过DotNetMonster.com < u40064 @ uwewrote in message

news:7d5c8b71c9fc6 @ uwe ...
I had this same issue with a VB6 app I developed. I solved it by shelling
to an external program deveject.exe I found here
ftp://ftp.heise.de/pub/ct/listings/0316-208.zip The archive comes with the
C source code so you can reverse-engineer it to run native if you have the
time. For my purpose it was enough to put the tiny (44Kb) command line
application in the same directory as my app and just shell() to it with the
appropriate command line args. I had spent nearly an entire day writing
code that almost worked before I stumbled across deveject. Had deveject
working in my app, and all of the "almost working code" deleted in 10
minutes, haven''t looked back since.

Ron W

"prism via DotNetMonster.com" <u40064@uwewrote in message
news:7d5c8b71c9fc6@uwe...

问题:我们如何安全地移除USB设备vb.net?


例如,在vb.net应用程序中,我们从usb

设备打开一些文件,

之后,我们想要安全地删除它没有手动操作

来自

任务栏。


我们怎么做?任何人都可以帮助我吗?


-

通过DotNetMonster.com发布消息
http://www.dotnetmonster.com/Uwe/For...b-net/200712 / 1



这篇关于如何在vb.net中安全地删除usb?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆