Search:
Type: Posts; User: wingers
Search:
Search took 0.02 seconds.
-
solved with answer on another forum - https://docs.microsoft.com/en-us/answers/questions/848695/get-username-or-profile-path-of-current-logged-on.html
-
No, doesn't work i'm afraid - when running app as Admin they come back as Administrator and c:\users\administrator rather than wingers and c:\users\wingers
-
Hi
I need to be able to get the username (or profile path) of the currently logged on user from my app which may be running either as admin or a service running under system account
I have...
-
Ignore me - glitch my side, should learn to read properly!!
-
That doesn't seem to work as just returning Nothing
179370
-
Quick related question
I am struggling (for some reason) to be able to retrieve a specifc value from the IEnumerable when matching another value
In english based on image in first post - I want...
-
I hope so, has taken some time, and getting this bit working was hopefully the last major hurdle
-
Yes it displays the tree and then in the background it calculates the sizes of each folder (and its contents) from the information held in the nodes IEnumerable
totalsum =...
-
I am using a third party control - DevExpress TreeList as more customizable for my needs.
It is loading the levels of the filesystem "on demand" so to speak using what DevExpress called Virtual...
-
I think it is because it is looping through that sub many times in my code to then add folder structure to a tree
-
Thanks
Doing it that way seems to be much slower than just adding \ to end of path if not already got one
Running it with your new LINQ code took 21 seconds to run and populate my TreeList,...
-
:)
To explain fully (for future reading) my last comment
The below worked fine when "path" was "C:\" or "C:\Windows\" but doesn't work if it is "C:\Windows" e.g. if no \ on end
Dim dirs As...
-
No problem at all, have spent weeks working with it now and those project and the author were very helpful
Ah yes, sorry forgot I had used it in example project
Oddly enough even though the...
-
Yes so far I have found it to be quite reliable, certainly so much quicker than using any of the System.IO methods. I spent ages testing all of the different ways of enumerating my C: drive, some...
-
Okay from initial testing that may well have solved my problem. How would I amend below so the resulting list is in alphabetical order please?
Dim dirs As List(Of String) =...
-
@Inferrd - sorry posted my explanation at same time as you replied - thanks I will give that a try
-
So to explain further
It correctly gets directories that just have Attributes of Directory e.g.
179357
But it doesn't get those which has multiple Attributes that include Directory e.g.
...
-
I think I did put why it failed - "it is missing some directories where Attributes contains more than just Directory e.g. C:\ProgramData has Attributes shown as "Hidden Or Directory Or...
-
I have an IEnumerable which contains file and directory information - example below of its contents:-
179352
I want to extract specific information from this IEnumerable and am assuming LINQ is...
-
Thanks jmcilhinney - very handy to know, I had stumbled across that latter and it does look good. Also found https://www.treekslicensinglibrary.com/ and...
-
I created an app which I intend to sell, which is not something I have done before, most of my previous tools were freebies, or designed directly for clients internal use.
Can anyone give me...
-
Amended version of original project with ability to show groups as well as containers/OUs - which is something I needed for my project
As per example form checkboxes to set Boolean of true or...
-
Hi
Been using SQLite for a app I have created and getting on okay with it
Just can't find much documentation relating to Async usage of it and wondered if any SQLite experts around here who can...
-
Thank you both very much for your responses - that works perfectly
@jmcilhinney - sorry I didn't read your codebank thread fully - appreciate your time
-
Okay thanks - that makes sense - based on my code above any clues as to how I can perhaps get this working?
-
@techgnome
Yes I get the logic of WHY - just not the HOW to fix it - I will need to be making changes to lots of fields on main form when I finish the app, and instead of just one line i.e....
-
@jmcilhinney
Thanks - yes I had found your article actually when googling, I understand why but still not sure how to fix it - seems a lot of extra code needed just to write to a textbox?!
-
Hi guys
Getting this error when trying to change text on a textbox on my form
"Cross-thread operation not valid: Control 'TextBox1' accessed from a thread other than the thread it was created...
-
Hi
I know this thread is a few years old but I had been searching for code to show IE favorites in a treeview and out of all the ones I tried - yours was the only one which worked perfectly for...
-
Thanks for your reply - yes I thought this was going to be a difficult on - that is why the SDK's from places such as CPUID sell for 1000 euros!
-
Hi
I would like to be able to find a way to retrieve CPU/Motherboard temp/voltages/fan speeds etc - i.e. in the same way as various utils such as HWinfo does
Any clues as to how this can be...
-
gave up trying to understand native wifi API, as seemed to be returning wrong information on some Windows 8.1 machines
So went for my original idea of parsing result from netsh wlan show interface...
-
Right, it appears the reason I am getting multiple results returned, is that the code is showing me encryption state of all networks it can see - where I want to just see encryption type (and SSID,...
-
Think I may have found it - had never use the object browser before, very handy
Thanks again for all your help and pointing me in the right direction, at least I have something to play with now
-
Thanks, that makes sense
Still confused as to why it comes back with four different results for one card (AES,AES,None,AES) - would be nice just to get the one result for the current connection to...
-
Okay that seems to sort of work - but it gives me back 4 results on a laptop with only 1 wireless card/connection and none of them seem to tally with what the connection is - i.e. it comes back AES...
-
Thanks Joacim - for some reason though it was going to be more complex than that - will have a go now!!
-
Another way I could do it perhaps...
The command netsh wlan show interfaces shows the authentication of current connection i.e. WPA2-Personal
So perhaps I could pull the information from this...
-
Thanks for your replies - think I need to do some reading then as looks quite complex - was hoping for an easier way to just pick up security used for current connection, sounds like that isn't going...
-
The app I am creating is to perform "health checks" on my customers PC - it is basically automating a lot of things I check manually - so currently it checks what AV is installed, and whether enabled...
|
Click Here to Expand Forum to Full Width
|