Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
How to delete a file in VB6 without using filesystem object?
Hi! I need some help. A friend of mine is developing an application in VB6 that creates a text file with some info in it extracted from a database. The problem is that there are times when the database is empty and the system is left with a text file that contains nothing in it. How do we delete this file? We're thinking of issuing a command similar to the dos Delete command, e.g. (run at dos prompt) c:\del mytext.txt
Any ideas how to do this? Someone suggested using shell command but we don't know how. Would greatly appreciate any sample code. Thanks!
Ramon Carlos
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement