Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. makefiles in VB.Net

makefiles in VB.Net

Scheduled Pinned Locked Moved Visual Basic
csharp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    I have no idea of make files. is there any sample makefile code available.:confused:

    E 1 Reply Last reply
    0
    • A Anonymous

      I have no idea of make files. is there any sample makefile code available.:confused:

      E Offline
      E Offline
      erikkloeze
      wrote on last edited by
      #2

      I'm using VB 6.0 and I think this method will also work in VB .NET, this method is called the: FSO, the FileSystemObject. Whit this you can create, delete, modify etc. files... But, if you want to make FSO work right, in VB6.0 you'll have to go to Project -> References and then you'll have to select the following: Microsoft Script Control 1.0 and Microsoft Scripting Runtime. Now you can use FSO, two samples: Make a textfile and write into it: Dim fso, file Set fso = CreateObject("Scripting.FileSystemObject") Set file = fso.CreateTextFile("your file.txt or .dat", True) file.Write ("something") file.Close Removing a file: Dim fso, file Set fso = CreateObject("Scripting.FileSystemObject") Set file = fso.GetFile("your file.txt or .dat") file.Delete One thing, you can create any file with any extension (.txt, .dat, .erik) only it'll still be like an NotePad file with an different extension... So making .exe files is no use... I hope I solved your problem !!:laugh: (¯`·._.·[eRiK]·._.·´¯)

      D 1 Reply Last reply
      0
      • E erikkloeze

        I'm using VB 6.0 and I think this method will also work in VB .NET, this method is called the: FSO, the FileSystemObject. Whit this you can create, delete, modify etc. files... But, if you want to make FSO work right, in VB6.0 you'll have to go to Project -> References and then you'll have to select the following: Microsoft Script Control 1.0 and Microsoft Scripting Runtime. Now you can use FSO, two samples: Make a textfile and write into it: Dim fso, file Set fso = CreateObject("Scripting.FileSystemObject") Set file = fso.CreateTextFile("your file.txt or .dat", True) file.Write ("something") file.Close Removing a file: Dim fso, file Set fso = CreateObject("Scripting.FileSystemObject") Set file = fso.GetFile("your file.txt or .dat") file.Delete One thing, you can create any file with any extension (.txt, .dat, .erik) only it'll still be like an NotePad file with an different extension... So making .exe files is no use... I hope I solved your problem !!:laugh: (¯`·._.·[eRiK]·._.·´¯)

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        erikkloeze wrote: Project -> References and then you'll have to select the following: Microsoft Script Control 1.0 and Microsoft Scripting Runtime. Actually, you just need the Microsoft Scripting Runtime to use the File SYstem Object. You don't need the Microsoft Script Control unless your adding scripting support to your application. RageInTheMachine9532

        E 1 Reply Last reply
        0
        • D Dave Kreskowiak

          erikkloeze wrote: Project -> References and then you'll have to select the following: Microsoft Script Control 1.0 and Microsoft Scripting Runtime. Actually, you just need the Microsoft Scripting Runtime to use the File SYstem Object. You don't need the Microsoft Script Control unless your adding scripting support to your application. RageInTheMachine9532

          E Offline
          E Offline
          erikkloeze
          wrote on last edited by
          #4

          You're right, but I didn't exactly know which one you'll have to select, so I just said them all, just to be sure... :rolleyes: (¯`·._.·[eRiK]·._.·´¯)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups