|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
FileSystem Object errorApparently 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? "Elmo Watson" <sputnik@nospam.yahoo.com> wrote in message Get rid of the apps! Scripting won't work on my system either, or on the 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? systems of thousands of others who have quite sensibly disabled it! Use standard VB File I/O instead. Mike 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 > > > Elmo Watson wrote:
> I've never used it - - can you send me to a web page that gives How about you just look in the VB Help - thats what its there for.> samples on how to use it? 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 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 > > "Elmo Watson" <sputnik75043@No.Spam.Yahho.com> wrote in message mkdirnews: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. -- Reply to the group so all can participate VB.Net: "Fool me once..." > So - how do you create a folder with VB File I/O? - - To create a folder in VB6 or earlier, use the built-in MkDir> I can see lots of info - but not that. Statement. Rick 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? > > 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? "Max Kudrenko" <vb_***@hotmail.com> wrote in message The name of that article should be... "Processing Files much faster, with 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 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.. 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.. "Max Kudrenko" <vb_***@hotmail.com> wrote in message It's not so much that it is an OO attempt as it is a poorly implemented OOnews: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. attempt. -- Reply to the group so all can participate VB.Net: "Fool me once..." "Max Kudrenko" <vb_***@hotmail.com> wrote in message FSO's more like Eeeew Eeeew than it is OO.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 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.. 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.. "Max Kudrenko" <vb_***@hotmail.com> wrote in message It says that about the FileSystemLib, not FSO. FSO *is* "the Scriptingnews: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". 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..." 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? > > |
|||||||||||||||||||||||