Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: R: Whats wrong with this code?


Message #1 by "Giovanni Salucci" <g.salucci@n...> on Tue, 30 Jul 2002 17:57:51 +0200
you have to detete files/folder contained in it, before


-----Messaggio originale-----
Da: Arundhati Bopardikar [mailto:Bopardikar@Q...]
Inviato: marted́ 30 luglio 2002 17.47
A: ASP Databases
Oggetto: [asp_databases] Whats wrong with this code?


Hi,

I am trying to delete a folder using ASP filesystemobject with something
like the
following code

	dim Readstr
	dim fldr
	dim fp
	dim FilePath

	FilePath = "C:\Folder1\Abc.txt"
	Readstr = Split(FilePath,"\")

	fldr = Readstr(0) & "\" & Readstr(1)

	set fp = Server.CreateObject("Scripting.FileSystemObject")

	If fp.FolderExists(fldr) Then

		fp.DeleteFile fldr
	End If

	set fp = nothing



However, the script just hangs and does nothing...
can anyone help??

Regards,
Arundhati



  Return to Index