Results 1 to 3 of 3

Thread: Quick VB question that is driving me.....

  1. #1
    Bj
    Bj is offline
    Variable Bitrate
    Join Date
    Aug 2000
    Location
    Perth W.A Australia
    Posts
    290

    Post Quick VB question that is driving me.....

    WTF doesn't this code here :

    Const ForReading = 1, ForWriting = 2, ForAppending = 3
    Set fs = CreateObject("Scripting.FileSystemObject")
    Set f = fs.OpenTextFile("c:\windows\system.ini", 2)
    f.Write (myreadini)
    f.Close

    work under Windows95? It works under win98/ME/2000 but not 95. Is there something I'm missing?

    Bj
    BjBlaster! Car MP3 & Carputer!
    bjblaster.com

    "The solution to one problem is only the beginning of another"

  2. #2
    Retired Admin Aaron Cake's Avatar
    Join Date
    Jan 2000
    Location
    London, Ontario, Canada
    Posts
    2,464

    Cool

    Windows 95 does not come with VBScripting support, and therefore doesn't have the FileSystemObject. You will need to download the Windows Scripting Host from the MS site.
    Player: Pentium 166MMX, Amptron 598LMR MB w/onboard Sound, Video, LAN, 10.2 Gig Fujitsu Laptop HD, Arise 865 DC-DC Converter, Lexan Case, Custom Software w/Voice Interface, MS Access Based Playlists
    Car: 1986 Mazda RX-7 Turbo (highly modded), 1978 RX-7 Beater (Dead, parting out), 2001 Honda Insight
    "If one more body-kitted, cut-spring-lowered, farty-exhausted Civic revs on me at an intersection, I swear I'm going to get out of my car and cram their ridiculous double-decker aluminium wing firmly up their rump."

  3. #3
    Bj
    Bj is offline
    Variable Bitrate
    Join Date
    Aug 2000
    Location
    Perth W.A Australia
    Posts
    290

    Smile

    Thanks Aaron! I didn't know that.

    Bj
    BjBlaster! Car MP3 & Carputer!
    bjblaster.com

    "The solution to one problem is only the beginning of another"

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •