473,797 Members | 3,162 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FileSystemObjec t

Hi

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

Brendan
Nov 17 '05 #1
6 2239
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.Collin s@_RemoveThis_S ingularity.co.u k> wrote in
message news:Oa******** ******@TK2MSFTN GP15.phx.gbl...
Hi

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

Brendan

Nov 17 '05 #2
Am trying to use FileSystemObjec t 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*********@gm ail.com> wrote in message
news:Qr******** ***********@fe0 4.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.Collin s@_RemoveThis_S ingularity.co.u k> wrote in message news:Oa******** ******@TK2MSFTN GP15.phx.gbl...
Hi

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

the
FileSystemObjec t?

Brendan


Nov 17 '05 #3
The FileSystemObjec t 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.Collin s@_RemoveThis_S ingularity.co.u k> wrote in
message news:e8******** ******@TK2MSFTN GP09.phx.gbl...
Am trying to use FileSystemObjec t 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*********@gm ail.com> wrote in message
news:Qr******** ***********@fe0 4.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.Collin s@_RemoveThis_S ingularity.co.u k> wrote

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

the
> FileSystemObjec t?
>
> Brendan
>
>



Nov 17 '05 #4
Willy

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

Brendan
"Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in message
news:OW******** ******@TK2MSFTN GP14.phx.gbl...
The FileSystemObjec t 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.Collin s@_RemoveThis_S ingularity.co.u k> wrote in message news:e8******** ******@TK2MSFTN GP09.phx.gbl...
Am trying to use FileSystemObjec t 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*********@gm ail.com> wrote in message
news:Qr******** ***********@fe0 4.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.Collin s@_RemoveThis_S ingularity.co.u k> wrote
in
message news:Oa******** ******@TK2MSFTN GP15.phx.gbl...
> Hi
>
> Does anyone know of another way to check if a file exists without

using the
> FileSystemObjec t?
>
> Brendan
>
>



Nov 17 '05 #5
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.Collin s@_RemoveThis_S ingularity.co.u k> wrote in
message news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Willy

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

Brendan
"Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in message
news:OW******** ******@TK2MSFTN GP14.phx.gbl...
The FileSystemObjec t 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.Collin s@_RemoveThis_S ingularity.co.u k> wrote

in
message news:e8******** ******@TK2MSFTN GP09.phx.gbl...
> Am trying to use FileSystemObjec t 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*********@gm ail.com> wrote in message
> news:Qr******** ***********@fe0 4.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.Collin s@_RemoveThis_S ingularity.co.u k> wrote > in
>> message news:Oa******** ******@TK2MSFTN GP15.phx.gbl...
>> > Hi
>> >
>> > Does anyone know of another way to check if a file exists without using >> the
>> > FileSystemObjec t?
>> >
>> > Brendan
>> >
>> >
>>
>>
>
>



Nov 17 '05 #6
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******** ******@TK2MSFTN GP12.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.Collin s@_RemoveThis_S ingularity.co.u k> wrote in message news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Willy

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

Brendan
"Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in message
news:OW******** ******@TK2MSFTN GP14.phx.gbl...
The FileSystemObjec t 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.Collin s@_RemoveThis_S ingularity.co.u k>
wrote in
message news:e8******** ******@TK2MSFTN GP09.phx.gbl...
> Am trying to use FileSystemObjec t 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*********@gm ail.com> wrote in message
> news:Qr******** ***********@fe0 4.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.Collin s@_RemoveThis_S ingularity.co.u k>

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

using
>> the
>> > FileSystemObjec t?
>> >
>> > Brendan
>> >
>> >
>>
>>
>
>



Nov 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3853
by: Marcelo Rizzo | last post by:
I am trying to get the name of a file with a specific extension (tmw) from several different directories. The problem I am having is that the program stops working on the second pass with an run time error 76. The paths are valid. I tested them and there is a file with the extension specified. Any help is appreciated Marcelo Rizzo
5
4065
by: John Dewbert | last post by:
*** post for FREE via your newsreader at post.newsfeed.com *** Hello, I have trouble passing a folder object (from a FileSystemObject) to a sub procedure. Consider the following code: =================================
3
6845
by: Wayfarer | last post by:
Hi, I've got a freebie hosting mirror of my production personal website (sounds kinda grandiose, doesn't it?) at http://journeys.webhostme.com/. At the production website I was using Scripting.FileSystemObject to get the date that the file was last modified and to read/write a counter text file for the number of hits that the whole site had. The freebie has a kind of half-ass*d FileSystemObject, but it has no GetFile method. Is there...
3
2122
by: Steve | last post by:
Hi all, FileSystemObject question... I'm trying to check if files exist or not, but the files are not sitting on the same server as our Intranet. Basically we have about 5000 photos in a directory on our database server, and they must stay there. I want to use the FileSystemObject (running on our Intranet server) to check if a photo is there, if so display it, if not
2
2181
by: Sean S - Perth, WA | last post by:
Hi all, If I create a FileSystemObject Object is it appropriate to reuse it to perform operations on different files/folders? Or should I create a new FileSystemObject Object for each file and folder? -- Sean.
9
3929
by: kermit | last post by:
I keep seeing that you can use the FileSystemObject in either VB script, or Javascript on an aspx page. I added a refrence to the scrrun.dll I added importing namespaces for 'System.Object', 'Scripting', 'Scripting.FileSystemObject', and a few others However, when I try to create the fso object I keep receiving an error. 'ActiveX component can't create object: 'Scripting.FileSystemObject'
2
4042
by: Luis Esteban Valencia | last post by:
I'm trying to write a little VB.NET script in an ASP.NET web page that will create folders, move files, etc... pretty much everything you can expect to do using the FileSystemObject library. Is this possible in .NET? If so, how do I do it? I've tried:
1
17148
by: G Gerard | last post by:
Hello I am using the FileSystemObject to copy files on a computer Dim MyObject as Object
3
1861
by: nagmvs | last post by:
hello I have a problem with FileSystemObject in Vb Suppose i want to declare as Dim fs As New FileSystemObject, when i type New After that i can't see FileSystemObject in derived DropDownList. When running my code compiler error coming is like User defined type not defined. before projects r running successfully with using FileSystemObject.
12
5930
lee123
by: lee123 | last post by:
why is this so hard to do. i have alot of books that have exaples of how to do these things but when i try the exaples they never work i have a previous post on "copying files" some of the other guys help on this one and i tried to do the same thing with the "movefile" but it never worked as you can see the "filesystemobject" is hard to accomplish for me because this "Movefolder" event falls in this category the code i have i have used for the...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9537
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9066
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7560
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3750
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2934
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.