VB 6.0如何在代码中删除文件? [英] VB 6.0 how to delete a file in the code?

查看:347
本文介绍了VB 6.0如何在代码中删除文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道VB 6.0的删除代码是什么。就像我想在C:\驱动器上删除一个名为text3.txt的文件一样,摆脱它的代码是什么。


只是想得到这样的信息我没有。


谢谢


Yoda

i would like to know what the delete code would be for VB 6.0. like if i want to delete a file called text3.txt on the C:\ drive, what would be the code to get rid of it.

just trying to get so information i don''t have.

Thanks

Yoda

推荐答案

你可能正在寻找输出方法,前提是您希望从文本文件中清除数据。这是Yoda吗?


提示:追加写入文件的底部
You may be looking for the Output method here, provided you are hoping to clear data from a text file. Is this it Yoda?

Hint: Append writes to the bottom of the file



i想知道VB 6.0的删除代码是什么。就像我想在C:\驱动器上删除一个名为text3.txt的文件一样,摆脱它的代码是什么。


只是想得到这样的信息我没有。


谢谢


Yoda
i would like to know what the delete code would be for VB 6.0. like if i want to delete a file called text3.txt on the C:\ drive, what would be the code to get rid of it.

just trying to get so information i don''t have.

Thanks

Yoda



唯一比得到系统对象更短的事情是使用kill命令,这将删除文件,即使文件正在使用中

The only thing shorter than getting the system object involved, is to use the kill command, this will delete the file even if the file is in use

展开 | 选择 | Wrap | 行号


好建议,Devon ......
Good advice, Devon...


这篇关于VB 6.0如何在代码中删除文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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