Thomas
Guest
|
Post by Thomas on Jan 4, 2017 23:46:08 GMT
I have made a Visual Basic OS with Multiple User sign in but can not figure out how to give them difderent desktops and programs,
Many Thanks, Thomas
|
|
|
Post by G Softwares on Jan 5, 2017 8:26:47 GMT
Create a system of multiple folders with user's files such as Documents, Pictures, Music, etc. and also some files containing strings that your OS can read and transform them in settings, e.g.: there's for every user the file "colorskin.txt" that contains the word "red", the system must read that file and if is written "red" the displayed color is red, or if is written "blue" the displayed color is blue, etc. Make this system also for other settings (such as Browser's home page, Username, Password, or whatever you want).
|
|
Junior Member
|
Post by antfusa on Jan 7, 2017 22:32:13 GMT
Im tackling the same issue, im using custom files to house the info and used a parse command to sift through the material
|
|
Junior Member
|
Post by antfusa on Jan 7, 2017 22:32:39 GMT
Listboxes and custom text files can do the trick
|
|
New Member
|
Post by gizidda74 on Jan 15, 2017 0:03:59 GMT
I use this approach: upon registration: - the software creates a folder for each user with this syntax: userID+role+password (e.g.: alexa001sky) - a series of subfolders are created: documents, received files, customization, media
upon login: - the software checks if a folder that contains userID and password exists. In this case, it splits the string to get the role (e.g.: a001) - it loads from the subfolders all the settings - loads the role into a system variable called 'permissions'. - depending on the role it hides the applications a certain role must not access
|
|
Junior Member
|
Post by antfusa on Jan 15, 2017 4:56:20 GMT
I use this approach: upon registration: - the software creates a folder for each user with this syntax: userID+role+password (e.g.: alexa001sky) - a series of subfolders are created: documents, received files, customization, media upon login: - the software checks if a folder that contains userID and password exists. In this case, it splits the string to get the role (e.g.: a001) - it loads from the subfolders all the settings - loads the role into a system variable called 'permissions'. - depending on the role it hides the applications a certain role must not access Neat. We have also developing something similar and a similar for an admin to do it remotely both are going well. Our system simply utilizes folders available on the system but we may implement a similar folder system. Our only issue is that if you browse for something. How can you contain it in a folder set and not the whole pc? Anyone know?
|
|
New Member
|
Post by gizidda74 on Jan 16, 2017 7:18:09 GMT
I use this approach: upon registration: - the software creates a folder for each user with this syntax: userID+role+password (e.g.: alexa001sky) - a series of subfolders are created: documents, received files, customization, media upon login: - the software checks if a folder that contains userID and password exists. In this case, it splits the string to get the role (e.g.: a001) - it loads from the subfolders all the settings - loads the role into a system variable called 'permissions'. - depending on the role it hides the applications a certain role must not access Neat. We have also developing something similar and a similar for an admin to do it remotely both are going well. Our system simply utilizes folders available on the system but we may implement a similar folder system. Our only issue is that if you browse for something. How can you contain it in a folder set and not the whole pc? Anyone know? Yes there is a simple procedure where you define an InitialDirectory that contains the base path which the user is authorized in. Then, on every program that needs browsing, you check if the opened folder starts with thinitial directory. This is an example for a RTF word processor to save a rtf file: Dim dlg As New SaveFileDialog, fName As String = String.Empty Do With dlg .Title = "Save File" .Filter = "Rich text files (*.rtf)|*.rtf" .AddExtension = True .DefaultExt = "rtf" .InitialDirectory = “c:OSrootuserID+role+password” 'you decide what the OSroot is If .ShowDialog = Windows.Forms.DialogResult.OK Then If Not .FileName.StartsWith(.InitialDirectory) Then MessageBox.Show("You cannot change the target destination", "Warning!", MessageBoxButtons.OK, MessageBoxIcon.Warning) Else fName = .FileName RichTextBox1.SaveFile(fName, RichTextBoxStreamType.RichText) Exit Do End If Else Exit Sub End If Loop The same procedure can be used on opening files.
|
|
Junior Member
|
Post by antfusa on Jan 16, 2017 23:29:04 GMT
Oh yeah.lol i forget about initial directory.lol
|
|
Junior Member
|
Post by antfusa on Jan 19, 2017 6:59:07 GMT
I just came up with a more elaborate method, but we just figured out how to create multiple accounts and delete them/edit them, and change accounts as well as set account permissions. Now we are working on a server version for business use (ie. Remote configuration to client pc)
|
|
Junior Member
|
Post by antfusa on Jan 27, 2017 13:57:19 GMT
When you create a user profile system thats so robust and complicated you cant remember how it works.lol
|
|