IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#19085 - 05/06/08 11:21 AM VBScript
joslaps Offline
Junior Member

Registered: 04/17/08
Posts: 1
Loc: Universit
What's wrong with this script.
I have a error message.

' Suppression des fichiers
set fs = CreateObject("Scripting.FileSystemObject")
x = ("c:/Donnees/da/da2da4/transfert/da2revisees/*")
set a = fs.deleteFile(x)

Thanks!

Top
#19086 - 05/06/08 04:22 PM Re: VBScript
Anonymous
Unregistered


Hi,
You need to declare your variable first. You need to release it when you are done.

Code:
Dim FSO 
Set FSO = CreateObject("Scripting.FileSystemObject")
x = ("c:\testfile*.ZIP")
FSO.deleteFile(x)
set FSO = nothing
Hope this helps
Maxime
Team OL

Top