Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to delete a file in VB6 without using filesystem obj
Message
From
26/07/2000 10:03:13
 
 
To
26/07/2000 02:34:22
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00396924
Message ID:
00397037
Views:
12
>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
KILL "c:\MyDir\MyFile.ext"
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform