makefiles in VB.Net
-
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]·._.·´¯) -
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]·._.·´¯)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
-
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
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]·._.·´¯)