westin444 Posted March 4, 2009 Author Share Posted March 4, 2009 Ok, i've been studying winsock in vb6 quite a bit now. I'm making a vb6 program that can be embeded into the source for a personal messaging system. I am using the .INI module that eclipse uses, but I need one for creating ini files. If anyone knows the script for this it would be greatly appreciated. :)Oh, and i'm using VB6 :sign10: Link to comment Share on other sites More sharing options...
DrNova Posted March 4, 2009 Share Posted March 4, 2009 considering eclipse can create .ini files, try looking through the source for that section Link to comment Share on other sites More sharing options...
westin444 Posted March 4, 2009 Author Share Posted March 4, 2009 I have found ones that will write to an EXISTING ini file, but none that can create… Link to comment Share on other sites More sharing options...
anasky Posted March 4, 2009 Share Posted March 4, 2009 In Eclipse:Call WriteINI(blablabla)It will create one if it doesn't exists… Link to comment Share on other sites More sharing options...
westin444 Posted March 5, 2009 Author Share Posted March 5, 2009 ok, I want to create it in the following folder.The name of the folder will be a string,note: **Whoto** and **folderdet** are both strings containing info.```WriteINI(app.path & "\inboxs\" & whoto & "\" & filedet & ".ini\")``` Link to comment Share on other sites More sharing options...
Warconn Posted March 5, 2009 Share Posted March 5, 2009 I'm not sure if writeini will make a folder but I do have a mkdir snippet somewhere ill post it here tommarrow I'm away from my comp now. Link to comment Share on other sites More sharing options...
anasky Posted March 5, 2009 Share Posted March 5, 2009 @[BS:> westin444 link=topic=39847.msg388750#msg388750 date=1236221200]> ok, I want to create it in the following folder.> > The name of the folder will be a string,> note: **Whoto** and **folderdet** are both strings containing info.> ```> WriteINI(app.path & "\inboxs\" & whoto & "\" & filedet & ".ini\")> ```I'm sorry, but… that's only the path...Call WriteINI("test", "subtext", 1, (App.Path & "\inboxs\" & whoto & "\" & filedet & ".ini\")) Link to comment Share on other sites More sharing options...
Lanphrost Posted March 5, 2009 Share Posted March 5, 2009 If you run windows when you first save save as 'file'.ini if you don't need the program to make the .ini (it depends how the source is made)Otherwise this post is useless X3 Link to comment Share on other sites More sharing options...
Warconn Posted March 5, 2009 Share Posted March 5, 2009 inorder to create the folder with the name, before you use the writeini, run```call mkdir$(app.path & "\inboxs\" & whoto & "\")```then put the write ini below that..l.thats the best way i could think of atleast Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now