Wednesday, March 28, 2012

system.Io function

hi, i want to know whether a file exists are not in a
particular directory.

how to write a function for it in asp.net using vbFile.Exists(path)

HTH

Thanks,

sswalia
MCAD, MCSD, OCA

"rahim" <rahim786@.rediffmail.com> wrote in message
news:059d01c3c523$20c4c700$a601280a@.phx.gbl...
> hi, i want to know whether a file exists are not in a
> particular directory.
> how to write a function for it in asp.net using vb
If System.IO.File.Exists("C:\somefile.txt") then
'it exists
End If

--
Jerry Boone
Analytical Technologies, Inc.
http://www.antech.biz

"rahim" <rahim786@.rediffmail.com> wrote in message
news:059d01c3c523$20c4c700$a601280a@.phx.gbl...
> hi, i want to know whether a file exists are not in a
> particular directory.
> how to write a function for it in asp.net using vb

0 comments:

Post a Comment