|
The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024
|
|
[Date Prev][Date
Next][Thread Prev][Thread Next][Date
Index][Thread Index]
[OT] - (Sorry) - vbscript question
chaps, sorry for the OT, but this is annoying me now...
anyone give me a quick & dirty method to determine via vbscript under
WSH
whether a path points to a file or a directory?
is there a way to determine the type just from a path spec without having
to
"Set" an instance of the object in question? - because as far as
I can see,
properties like the <object>.attributes can only be used against an
instantiated object (ie one that has been "Set" to a filesystem
object), -
however, to instantiate it as a filesystem object I have to already know
whether its a file or a folder! (using the getfile or the getfolder
method)
There must be a simple way to do this, but I'm blowed if I can see it at
the
moment!
TIA
Paul G. (sitting in the office typing code with gloves on 'cos it's so
cold!)
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
Yahoo! Groups
Sponsor |
ADVERTISEMENT
| |
|
http://www.automatedhome.co.uk
Post message: ukha_d@xxxxxxx
Subscribe: ukha_d-subscribe@xxxxxxx
Unsubscribe: ukha_d-unsubscribe@xxxxxxx
List owner: ukha_d-owner@xxxxxxx
List of UKHA Groups here - http://groups.yahoo.com/group/UKHA_Grouplists/
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Home |
Main Index |
Thread Index
|
|