Home All Groups Group Topic Archive Search About

FileSystem Object error

Author
22 Oct 2005 8:41 PM
Elmo Watson
Apparently I have a problem on my computer - every time one of my apps has
this line:
CreateObject("Scripting.FileSystemObject")

the app crashes - -

What can I reinstall to get this working correctly?

Author
22 Oct 2005 8:54 PM
Mike Williams
"Elmo Watson" <sputnik@nospam.yahoo.com> wrote in message
news:O05Yvj01FHA.3188@TK2MSFTNGP14.phx.gbl...

> Apparently I have a problem on my computer - every time one of
> my apps has this line:
> CreateObject("Scripting.FileSystemObject")
> the app crashes - -
> What can I reinstall to get this working correctly?

Get rid of the apps! Scripting won't work on my system either, or on the
systems of thousands of others who have quite sensibly disabled it! Use
standard VB File I/O instead.

Mike
Author
22 Oct 2005 10:21 PM
Elmo Watson
I've never used it - - can you send me to a web page that gives samples on
how to use it?


Show quoteHide quote
"Mike Williams" <M***@WhiskyAndCoke.com> wrote in message
news:dje8tg$mji$1@newsg4.svr.pol.co.uk...
> "Elmo Watson" <sputnik@nospam.yahoo.com> wrote in message
> news:O05Yvj01FHA.3188@TK2MSFTNGP14.phx.gbl...
>
> > Apparently I have a problem on my computer - every time one of
> > my apps has this line:
> > CreateObject("Scripting.FileSystemObject")
> > the app crashes - -
> > What can I reinstall to get this working correctly?
>
> Get rid of the apps! Scripting won't work on my system either, or on the
> systems of thousands of others who have quite sensibly disabled it! Use
> standard VB File I/O instead.
>
> Mike
>
>
>
Author
23 Oct 2005 3:14 AM
Michael Cole
Elmo Watson wrote:
> I've never used it - - can you send me to a web page that gives
> samples on how to use it?

How about you just look in the VB Help - thats what its there for.

Start by looking up "FreeFile" in Help, and then go from there.

Show quoteHide quote
>
>
> "Mike Williams" <M***@WhiskyAndCoke.com> wrote in message
> news:dje8tg$mji$1@newsg4.svr.pol.co.uk...
>> "Elmo Watson" <sputnik@nospam.yahoo.com> wrote in message
>> news:O05Yvj01FHA.3188@TK2MSFTNGP14.phx.gbl...
>>
>>> Apparently I have a problem on my computer - every time one of
>>> my apps has this line:
>>> CreateObject("Scripting.FileSystemObject")
>>> the app crashes - -
>>> What can I reinstall to get this working correctly?
>>
>> Get rid of the apps! Scripting won't work on my system either, or on
>> the systems of thousands of others who have quite sensibly disabled
>> it! Use standard VB File I/O instead.
>>
>> Mike

--
Regards,

Michael Cole
Author
25 Oct 2005 4:39 PM
Elmo Watson
So - how do you create a folder with VB File I/O? - - I can see lots of
info - but not that.


Show quoteHide quote
"Michael Cole" <no***@hansen.com> wrote in message
news:eIUBV$31FHA.3780@TK2MSFTNGP12.phx.gbl...
> Elmo Watson wrote:
>> I've never used it - - can you send me to a web page that gives
>> samples on how to use it?
>
> How about you just look in the VB Help - thats what its there for.
>
> Start by looking up "FreeFile" in Help, and then go from there.
>
>>
>>
>> "Mike Williams" <M***@WhiskyAndCoke.com> wrote in message
>> news:dje8tg$mji$1@newsg4.svr.pol.co.uk...
>>> "Elmo Watson" <sputnik@nospam.yahoo.com> wrote in message
>>> news:O05Yvj01FHA.3188@TK2MSFTNGP14.phx.gbl...
>>>
>>>> Apparently I have a problem on my computer - every time one of
>>>> my apps has this line:
>>>> CreateObject("Scripting.FileSystemObject")
>>>> the app crashes - -
>>>> What can I reinstall to get this working correctly?
>>>
>>> Get rid of the apps! Scripting won't work on my system either, or on
>>> the systems of thousands of others who have quite sensibly disabled
>>> it! Use standard VB File I/O instead.
>>>
>>> Mike
>
> --
> Regards,
>
> Michael Cole
>
>
Author
25 Oct 2005 4:46 PM
Bob Butler
"Elmo Watson" <sputnik75043@No.Spam.Yahho.com> wrote in message
news:uaGcmKY2FHA.472@TK2MSFTNGP15.phx.gbl
> So - how do you create a folder with VB File I/O? - - I can see lots
> of info - but not that.

mkdir

--
Reply to the group so all can participate
VB.Net: "Fool me once..."
Author
25 Oct 2005 4:51 PM
Rick Rothstein [MVP - Visual Basic]
> So - how do you create a folder with VB File I/O? - -
> I can see lots of info - but not that.

To create a folder in VB6 or earlier, use the built-in MkDir
Statement.

Rick
Author
22 Oct 2005 9:01 PM
David Wier
Try Windows Scripting Host

Show quoteHide quote
"Elmo Watson" <sputnik@nospam.yahoo.com> wrote in message
news:O05Yvj01FHA.3188@TK2MSFTNGP14.phx.gbl...
> Apparently I have a problem on my computer - every time one of my apps has
> this line:
> CreateObject("Scripting.FileSystemObject")
>
> the app crashes - -
>
> What can I reinstall to get this working correctly?
>
>
Author
23 Oct 2005 10:36 AM
Max Kudrenko
Elmo,

You can check the following information:

Working With Files (File System Objects)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconmanipulatingfiles.asp

Processing Files with Older File I/O Statements and Functions
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconprocessingfiles.asp

Hope this helps,

Max Kudrenko
Brainbench MVP Program for Visual Basic
www.brainbench.com


Elmo Watson wrote:
Show quoteHide quote
> Apparently I have a problem on my computer - every time one of my apps has
> this line:
> CreateObject("Scripting.FileSystemObject")
>
> the app crashes - -
>
> What can I reinstall to get this working correctly?
Author
23 Oct 2005 6:07 PM
Ken Halter
"Max Kudrenko" <vb_***@hotmail.com> wrote in message
news:1130063807.795764.154920@g47g2000cwa.googlegroups.com...
>
> Processing Files with Older File I/O Statements and Functions
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconprocessingfiles.asp
>
> Hope this helps,
>
> Max Kudrenko
> Brainbench MVP Program for Visual Basic
> www.brainbench.com

The name of that article should be... "Processing Files much faster, with
more reliability using the Older, fully debugged File I/O Statements and
Functions"

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Please keep all discussions in the groups..
Author
24 Oct 2005 1:06 PM
Max Kudrenko
Let it be so, Ken. It's just that having several ways to accomplish a
task is generally better than being limited to just one route. But yes,
I agree that all those OO attempts look rather unimpressive and
inappropriate in VB and often the BASIC legacy is the most realiable
means to do what you need.

Max Kudrenko
Brainbench MVP Program for Visual Basic
www.brainbench.com


Ken Halter wrote:
Show quoteHide quote
> "Max Kudrenko" <vb_***@hotmail.com> wrote in message
> news:1130063807.795764.154920@g47g2000cwa.googlegroups.com...
> >
> > Processing Files with Older File I/O Statements and Functions
> > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconprocessingfiles.asp
> >
> > Hope this helps,
> >
> > Max Kudrenko
> > Brainbench MVP Program for Visual Basic
> > www.brainbench.com
>
> The name of that article should be... "Processing Files much faster, with
> more reliability using the Older, fully debugged File I/O Statements and
> Functions"
>
> --
> Ken Halter - MS-MVP-VB - http://www.vbsight.com
> DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
> Please keep all discussions in the groups..
Author
24 Oct 2005 1:11 PM
Bob Butler
"Max Kudrenko" <vb_***@hotmail.com> wrote in message
news:1130159175.202217.61210@g44g2000cwa.googlegroups.com
> Let it be so, Ken. It's just that having several ways to accomplish a
> task is generally better than being limited to just one route. But
> yes, I agree that all those OO attempts look rather unimpressive and
> inappropriate in VB and often the BASIC legacy is the most realiable
> means to do what you need.

It's not so much that it is an OO attempt as it is a poorly implemented OO
attempt.

--
Reply to the group so all can participate
VB.Net: "Fool me once..."
Author
24 Oct 2005 2:48 PM
Ken Halter
"Max Kudrenko" <vb_***@hotmail.com> wrote in message
news:1130159175.202217.61210@g44g2000cwa.googlegroups.com...
> Let it be so, Ken. It's just that having several ways to accomplish a
> task is generally better than being limited to just one route. But yes,
> I agree that all those OO attempts look rather unimpressive and
> inappropriate in VB and often the BASIC legacy is the most realiable
> means to do what you need.
>
> Max Kudrenko
> Brainbench MVP Program for Visual Basic
> www.brainbench.com

FSO's more like Eeeew Eeeew than it is OO.

Here's some OO for ya' if you want.
http://www.killervb.com/FileSystemLib.aspx

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Please keep all discussions in the groups..
Author
24 Oct 2005 3:25 PM
Max Kudrenko
Ken,

No, I don't. I do the OO in more appropriate environments. But even the
site you refer to has something good to say about FSO: "it does share
some of the good qualities of the Scripting Runtime's
FileSystemObject".

Hope this helps,

Max Kudrenko
Brainbench MVP Program for Visual Basic
www.brainbench.com

Ken Halter wrote:
Show quoteHide quote
> "Max Kudrenko" <vb_***@hotmail.com> wrote in message
> news:1130159175.202217.61210@g44g2000cwa.googlegroups.com...
> > Let it be so, Ken. It's just that having several ways to accomplish a
> > task is generally better than being limited to just one route. But yes,
> > I agree that all those OO attempts look rather unimpressive and
> > inappropriate in VB and often the BASIC legacy is the most realiable
> > means to do what you need.
> >
> > Max Kudrenko
> > Brainbench MVP Program for Visual Basic
> > www.brainbench.com
>
> FSO's more like Eeeew Eeeew than it is OO.
>
> Here's some OO for ya' if you want.
> http://www.killervb.com/FileSystemLib.aspx
>
> --
> Ken Halter - MS-MVP-VB - http://www.vbsight.com
> DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
> Please keep all discussions in the groups..
Author
24 Oct 2005 3:51 PM
Bob Butler
"Max Kudrenko" <vb_***@hotmail.com> wrote in message
news:1130167529.211534.47890@g47g2000cwa.googlegroups.com
> Ken,
>
> No, I don't. I do the OO in more appropriate environments. But even
> the site you refer to has something good to say about FSO: "it does
> share some of the good qualities of the Scripting Runtime's
> FileSystemObject".

It says that about the FileSystemLib, not FSO.  FSO *is* "the Scripting
Runtime's
FileSystemObject".  The FSO may have a decent interface but the
implementation makes it less-than-desirable in VB application.

--
Reply to the group so all can participate
VB.Net: "Fool me once..."
Author
24 Oct 2005 4:17 PM
vbexp
FSO is slower than VB6's File I/O statements as others suggested. The only
place where FSO might be useful is in VBScript as it doesn't support VB6's
File I/O statements.

There was a page in MSDN explaining the differences, but I can't find it
now. The one below shows the difference between VBA and VBScript:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vtoriFeatureInformation.asp


Show quoteHide quote
"Elmo Watson" <sputnik@nospam.yahoo.com> wrote in message
news:O05Yvj01FHA.3188@TK2MSFTNGP14.phx.gbl...
> Apparently I have a problem on my computer - every time one of my apps has
> this line:
> CreateObject("Scripting.FileSystemObject")
>
> the app crashes - -
>
> What can I reinstall to get this working correctly?
>
>