Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

RE: FN-FORUM: ASP Help

date posted 10th August 2004 16:38

Physical paths only

I can't remember if you can use wildcards

Damon

-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of Paul
Cooper
Sent: 10 August 2004 17:25
To: FN-FORUM / [EMAIL REMOVED]
Subject: FN-FORUM: ASP Help


Hi

I have a set of files in a specific folder that are named like this...

MedicalMeeting_f1_85.pdf
MedicalMeeting_f2_85.pdf
MedicalMeeting_f1_87.pdf
MedicalMeeting_f2_87.pdf

The Number at the end is my ID.

So when it comes to deleting these files I hoped this would work...

dim fs
Set fs=Server.CreateObject("Scripting.FileSystemObject")

if fs.FileExists("/vpo/documentlibrary/medicalmeetings/MedicalMeeting_f1_" &

strID & ".doc") then

fs.DeleteFile("/vpo/documentlibrary/medicalmeetings/MedicalMeeting_f1_" &
strID & ".doc")

end if
set fs=nothing

But it's not working. Can you use virtual paths with FileExist & DeleteFile

or do I have to use a physical path. Also some files will be PDFs, others
DOCs etc. How can I use a wildcard for the last bit? IE

fs.DeleteFile("/vpo/documentlibrary/medicalmeetings/MedicalMeeting_f1_" &
strID & "*")

TIA
Paul

Paul Cooper
Internet Developer
Intex Design
http://www.intexdesign.net

_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today!
http://www.msn.co.uk/messenger


--
Freelancers, contractors earn more with Prosperity4
Call 0870 870 4414 or visit www.prosperity4.com
and benefit from Inland Revenue approved expenses today.

To advertise here: http://www.freelancers.net/advertising.html



Messages by Day
August 31st 2004
August 30th 2004
August 29th 2004
August 28th 2004
August 27th 2004
August 26th 2004
August 25th 2004
August 24th 2004
August 23rd 2004
August 22nd 2004
August 21st 2004
August 20th 2004
August 19th 2004
August 18th 2004
August 17th 2004
August 16th 2004
August 15th 2004
August 14th 2004
August 13th 2004
August 12th 2004
August 11th 2004
August 10th 2004
August 9th 2004
August 8th 2004
August 7th 2004
August 6th 2004
August 5th 2004
August 4th 2004
August 3rd 2004
August 2nd 2004
August 1st 2004


Messages by Month
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000