Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Kill command

Status
Not open for further replies.

HaworthBantam

Programmer
Jan 31, 2002
132
GB
This question relates more to VB Script than VB5 or 6 but hopefully someone out there can help me.

To delete a known Word document within VB I normally use the Kill command. However, within Outlook VB Script the Kill command generates an error - Type Mismatch. The script help within Outlook is next to useless.

Any help with where I'm going wrong would be very much appreciated.

Thanks.
 
---------------------------------
Dim fs
Set fs = CreateObject("Scripting.FileSystemObject")
fs.deletefile "c:\testfile.txt"
---------------------------------- Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top