Ask a Question related to ASP, Design and Development.
-
Jeff Uchtman #1
another objFSO question.
Is there a way to omit files listed if using objFSO to query a folder? I
have it set to list every image in a folder and return name, size, date with
the ability to view or delete the images, but some images should not be
deleted. I would like to omit these name from the query objFSO returns.
Thanks
Jeff
Jeff Uchtman Guest
-
Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good you
<RonGrossi382872@yahoo.com> wrote in message news:1114393703.900419.199790@f14g2000cwb.googlegroups.com... This is the most important question of... -
newB question: related tables question
hello i have a data base with 10 tables, i want to automaticaly creat a row in all of the tables wehen i create in the first one. normal table... -
Manohar Kamath [MVP] #2
Re: another objFSO question.
Since you have to list the file programatically, you could omit files when
you list them:
For Each File in oFolder.Files
' List files only if they are not images
If LCase(Right(File.Name, 4)) <> ".gif" OR LCase(Right(File.Name, 4)) <>
".jpg" then
' Write code to show the files
End If
Next
--
Manohar Kamath
Editor, .netBooks
[url]www.dotnetbooks.com[/url]
"Jeff Uchtman" <uchtman@megavision.com> wrote in message
news:O8U5BkrlDHA.988@TK2MSFTNGP10.phx.gbl...with> Is there a way to omit files listed if using objFSO to query a folder? I
> have it set to list every image in a folder and return name, size, date> the ability to view or delete the images, but some images should not be
> deleted. I would like to omit these name from the query objFSO returns.
>
> Thanks
> Jeff
>
>
Manohar Kamath [MVP] Guest
-
Jeff Uchtman #3
Re: another objFSO question.
Thanks Manohar. Is there anyway to list the files I don't want shown and
draw the exclude from the list as this folder contains other gif's and
jpg's?
Jeff
"Manohar Kamath [MVP]" <mkamath@TAKETHISOUTkamath.com> wrote in message
news:eCoLtBslDHA.2080@TK2MSFTNGP10.phx.gbl...<>> Since you have to list the file programatically, you could omit files when
> you list them:
>
> For Each File in oFolder.Files
> ' List files only if they are not images
> If LCase(Right(File.Name, 4)) <> ".gif" OR LCase(Right(File.Name, 4))I> ".jpg" then
> ' Write code to show the files
> End If
>
> Next
>
> --
> Manohar Kamath
> Editor, .netBooks
> [url]www.dotnetbooks.com[/url]
>
>
> "Jeff Uchtman" <uchtman@megavision.com> wrote in message
> news:O8U5BkrlDHA.988@TK2MSFTNGP10.phx.gbl...> > Is there a way to omit files listed if using objFSO to query a folder?> with> > have it set to list every image in a folder and return name, size, date>> > the ability to view or delete the images, but some images should not be
> > deleted. I would like to omit these name from the query objFSO returns.
> >
> > Thanks
> > Jeff
> >
> >
>
Jeff Uchtman Guest
-
Ken Schaefer #4
Re: another objFSO question.
You could do something like:
a) create a delimited list of files to exclude (eg a comma separated list)
b) for each file, see if InStr(strExcludeList, strFileName) returns > 1 and
if so, exclude the file, else write it out.
Cheers
Ken
"Jeff Uchtman" <uchtman@megavision.com> wrote in message
news:ey7F7HslDHA.684@TK2MSFTNGP09.phx.gbl...
: Thanks Manohar. Is there anyway to list the files I don't want shown and
: draw the exclude from the list as this folder contains other gif's and
: jpg's?
:
: Jeff
:
:
: "Manohar Kamath [MVP]" <mkamath@TAKETHISOUTkamath.com> wrote in message
: news:eCoLtBslDHA.2080@TK2MSFTNGP10.phx.gbl...
: > Since you have to list the file programatically, you could omit files
when
: > you list them:
: >
: > For Each File in oFolder.Files
: > ' List files only if they are not images
: > If LCase(Right(File.Name, 4)) <> ".gif" OR LCase(Right(File.Name,
4))
: <>
: > ".jpg" then
: > ' Write code to show the files
: > End If
: >
: > Next
: >
: > --
: > Manohar Kamath
: > Editor, .netBooks
: > [url]www.dotnetbooks.com[/url]
: >
: >
: > "Jeff Uchtman" <uchtman@megavision.com> wrote in message
: > news:O8U5BkrlDHA.988@TK2MSFTNGP10.phx.gbl...
: > > Is there a way to omit files listed if using objFSO to query a folder?
: I
: > > have it set to list every image in a folder and return name, size,
date
: > with
: > > the ability to view or delete the images, but some images should not
be
: > > deleted. I would like to omit these name from the query objFSO
returns.
: > >
: > > Thanks
: > > Jeff
: > >
: > >
: >
: >
:
:
Ken Schaefer Guest



Reply With Quote

