By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,694 Members | 1,270 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,694 IT Pros & Developers. It's quick & easy.

FileSystemObject

P: n/a
Hi

Does anyone know of another way to check if a file exists without using the
FileSystemObject?

Brendan
Nov 17 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Do you mean like System.IO.File.Exists( string fileName )?

--
Regards,

Tim Haughton

Agitek
http://agitek.co.uk
http://blogitek.com/timhaughton

"Singularity.co.uk" <Brendan.Collins@_RemoveThis_Singularity.co.uk> wrote in
message news:Oa**************@TK2MSFTNGP15.phx.gbl...
Hi

Does anyone know of another way to check if a file exists without using the FileSystemObject?

Brendan

Nov 17 '05 #2

P: n/a
Am trying to use FileSystemObject to check if a file exists on a remote
server, but am having trouble with the permissions. So I was wondering if
anyone has an alternative method of checking if a file exists.

"Tim Haughton" <ti*********@gmail.com> wrote in message
news:Qr*******************@fe04.news.easynews.com. ..
Do you mean like System.IO.File.Exists( string fileName )?

--
Regards,

Tim Haughton

Agitek
http://agitek.co.uk
http://blogitek.com/timhaughton

"Singularity.co.uk" <Brendan.Collins@_RemoveThis_Singularity.co.uk> wrote in message news:Oa**************@TK2MSFTNGP15.phx.gbl...
Hi

Does anyone know of another way to check if a file exists without using

the
FileSystemObject?

Brendan


Nov 17 '05 #3

P: n/a
The FileSystemObject is a scripting library COM object, it has nothing to do
with .NET.
Use the framework IO classes as Tim told you.

Willy.
"Singularity.co.uk" <Brendan.Collins@_RemoveThis_Singularity.co.uk> wrote in
message news:e8**************@TK2MSFTNGP09.phx.gbl...
Am trying to use FileSystemObject to check if a file exists on a remote
server, but am having trouble with the permissions. So I was wondering if
anyone has an alternative method of checking if a file exists.

"Tim Haughton" <ti*********@gmail.com> wrote in message
news:Qr*******************@fe04.news.easynews.com. ..
Do you mean like System.IO.File.Exists( string fileName )?

--
Regards,

Tim Haughton

Agitek
http://agitek.co.uk
http://blogitek.com/timhaughton

"Singularity.co.uk" <Brendan.Collins@_RemoveThis_Singularity.co.uk> wrote

in
message news:Oa**************@TK2MSFTNGP15.phx.gbl...
> Hi
>
> Does anyone know of another way to check if a file exists without using

the
> FileSystemObject?
>
> Brendan
>
>



Nov 17 '05 #4

P: n/a
Willy

I am using the IO class, but through coding in Classic Asp, I am just used
to calling it the FileSystemObject. Sorry for any confusion caused.

Brendan
"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:OW**************@TK2MSFTNGP14.phx.gbl...
The FileSystemObject is a scripting library COM object, it has nothing to do with .NET.
Use the framework IO classes as Tim told you.

Willy.
"Singularity.co.uk" <Brendan.Collins@_RemoveThis_Singularity.co.uk> wrote in message news:e8**************@TK2MSFTNGP09.phx.gbl...
Am trying to use FileSystemObject to check if a file exists on a remote
server, but am having trouble with the permissions. So I was wondering if anyone has an alternative method of checking if a file exists.

"Tim Haughton" <ti*********@gmail.com> wrote in message
news:Qr*******************@fe04.news.easynews.com. ..
Do you mean like System.IO.File.Exists( string fileName )?

--
Regards,

Tim Haughton

Agitek
http://agitek.co.uk
http://blogitek.com/timhaughton

"Singularity.co.uk" <Brendan.Collins@_RemoveThis_Singularity.co.uk> wrote
in
message news:Oa**************@TK2MSFTNGP15.phx.gbl...
> Hi
>
> Does anyone know of another way to check if a file exists without

using the
> FileSystemObject?
>
> Brendan
>
>



Nov 17 '05 #5

P: n/a
I see, if your problem is permissions related you will have to solve this
first, no other method exist that potentially could bypass the security
system.

Willy.

"Singularity.co.uk" <Brendan.Collins@_RemoveThis_Singularity.co.uk> wrote in
message news:%2****************@TK2MSFTNGP09.phx.gbl...
Willy

I am using the IO class, but through coding in Classic Asp, I am just used
to calling it the FileSystemObject. Sorry for any confusion caused.

Brendan
"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:OW**************@TK2MSFTNGP14.phx.gbl...
The FileSystemObject is a scripting library COM object, it has nothing to

do
with .NET.
Use the framework IO classes as Tim told you.

Willy.
"Singularity.co.uk" <Brendan.Collins@_RemoveThis_Singularity.co.uk> wrote

in
message news:e8**************@TK2MSFTNGP09.phx.gbl...
> Am trying to use FileSystemObject to check if a file exists on a remote
> server, but am having trouble with the permissions. So I was wondering if > anyone has an alternative method of checking if a file exists.
>
>
>
> "Tim Haughton" <ti*********@gmail.com> wrote in message
> news:Qr*******************@fe04.news.easynews.com. ..
>> Do you mean like System.IO.File.Exists( string fileName )?
>>
>> --
>> Regards,
>>
>> Tim Haughton
>>
>> Agitek
>> http://agitek.co.uk
>> http://blogitek.com/timhaughton
>>
>> "Singularity.co.uk" <Brendan.Collins@_RemoveThis_Singularity.co.uk> wrote > in
>> message news:Oa**************@TK2MSFTNGP15.phx.gbl...
>> > Hi
>> >
>> > Does anyone know of another way to check if a file exists without using >> the
>> > FileSystemObject?
>> >
>> > Brendan
>> >
>> >
>>
>>
>
>



Nov 17 '05 #6

P: n/a
Thanks for the help. Will just try and change all the different setting
until one works!!!
"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:uy**************@TK2MSFTNGP12.phx.gbl...
I see, if your problem is permissions related you will have to solve this
first, no other method exist that potentially could bypass the security
system.

Willy.

"Singularity.co.uk" <Brendan.Collins@_RemoveThis_Singularity.co.uk> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl...
Willy

I am using the IO class, but through coding in Classic Asp, I am just used to calling it the FileSystemObject. Sorry for any confusion caused.

Brendan
"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:OW**************@TK2MSFTNGP14.phx.gbl...
The FileSystemObject is a scripting library COM object, it has nothing to
do
with .NET.
Use the framework IO classes as Tim told you.

Willy.
"Singularity.co.uk" <Brendan.Collins@_RemoveThis_Singularity.co.uk>
wrote in
message news:e8**************@TK2MSFTNGP09.phx.gbl...
> Am trying to use FileSystemObject to check if a file exists on a
remote > server, but am having trouble with the permissions. So I was

wondering if
> anyone has an alternative method of checking if a file exists.
>
>
>
> "Tim Haughton" <ti*********@gmail.com> wrote in message
> news:Qr*******************@fe04.news.easynews.com. ..
>> Do you mean like System.IO.File.Exists( string fileName )?
>>
>> --
>> Regards,
>>
>> Tim Haughton
>>
>> Agitek
>> http://agitek.co.uk
>> http://blogitek.com/timhaughton
>>
>> "Singularity.co.uk" <Brendan.Collins@_RemoveThis_Singularity.co.uk>

wrote
> in
>> message news:Oa**************@TK2MSFTNGP15.phx.gbl...
>> > Hi
>> >
>> > Does anyone know of another way to check if a file exists without

using
>> the
>> > FileSystemObject?
>> >
>> > Brendan
>> >
>> >
>>
>>
>
>



Nov 17 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.