|
Hi, thanks for the reply,i need to determine the time users log on to the domain in an active directory environment.
"Set objUser = GetObject("LDAP://CN=******)
Set objLastLogon = objUser.Get("lastLogonTimestamp")
intLastLogonTime = objLastLogon.HighPart * (2^32) + objLastLogon.LowPart
intLastLogonTime = intLastLogonTime / (60 * 10000000)
intLastLogonTime = intLastLogonTime / 1440
Wscript.Echo "Last logon time: " & intLastLogonTime + #1/1/1601# "
I got this on the microsoft website but it hasn't worked.
|
|
|
|
|
Well, the lastLogonTimestamp property is not replicated between domain controllers very often, measured in days, depending on policy settings! So, each domain controller can have a different value for the same user!!
There is no event the says this value changed either so you'll have to poll each and every user object on each and every domain controller to get an accurate time for each user. This is VERY resource intensive on both the network and the domain controllers. If you do this in a production environment, you have to be VERY careful about how often you poll for this information.
Also, there is a known problem with the lastLogonTimestamp and NTLM authentications... http://support.microsoft.com/default.aspx?scid=kb;en-us;886705[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi there,
I am creating a text file in VB.Net and I am writing arabic characters inside, but my problem is that when I read this text file using vb6 on other machine I read wrong characters , does anybody know why
thanks alot
|
|
|
|
|
they machines doen't have ur arabic font.
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
You have to write the file using the same encoding as the VB6 program will use to read it. Probably UTF8.
---
b { font-weight: normal; }
|
|
|
|
|
hi
thanks for the rply but I am using writexml function and it doesn't have encoding options, so what shall I do
thanks
|
|
|
|
|
Yes, write methods doesn't have any encoding options. You decide the encoding when you open the file.
---
b { font-weight: normal; }
|
|
|
|
|
hi i have database in access and i have problem of convert some fileds to one filed i konw it can be done with VB but i am not sure if it can be done sql
for example if i have culomn with 1,2,3,4,5 so to converted and but it in one filed 1|2|3|4|5
if any body knows what i have to do to make it right
please send me you help and i will be greatfull
|
|
|
|
|
Hi,
Plz specify wat u want to do with ur database.
Do u want to merge multiple fields of ur access database into a single field?
Thanx & Regards.
Success is not a Destination,
... But a Journey !!
-- modified at 4:57 Monday 27th March, 2006
|
|
|
|
|
hi first thinks for your fast reply
exactly that what i want
for example culomn and each filed has number so i need Function to merge this fileds in one filed
thanks again
|
|
|
|
|
How can i save possition of the form to an file like a text then when the form loads that it loads on saved possition!?!?!?
<blink>FeRtoll Software.net
------------
E-Mail me
WebPage
|
|
|
|
|
Please answer quick...
<blink>FeRtoll Software.net
------------
E-Mail me
WebPage
|
|
|
|
|
FeRtoll wrote: Please answer quick...
You do relize that, in a forum environment where the people who answer questions DO NOT GET PAID TO DO SO, this means "Please, graciously ignore my post!"
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Have you looks at your forms' Top, Left, Width, and Height properties? All you ahve to do is save those values to a file or to a registry key. You might want to look into the SaveSetting[^] function for a simple implementation.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
FeRtoll wrote:
f*** you men
For all you forum members out there who have criticised me for being intolerant, have a gander at this guy's response to valid help provided by a respected member of The Code Project. It is further evidence WHY I post the reponses I do.
This post by FeRtoll is blatently OFFENSIVE - even given the differences in English language ability.
FeRtoll, I think you owe Dave an apology.
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
|
|
|
|
|
FeRtoll wrote: no whats that??? i though i need to use location...
You can use Location too, it's the same thing as the Top and Left properties. But problem with it is that you can't write a Location object as a single value to a registry key.
FeRtoll wrote: f*** you men
I've been more than accomodating. I don't get paid to do this, as we all do this on a volunteer basis. I have no idea what I did to trigger a response like this. So, in response to this very insulting statement, you've made my black-list. In the spirit of a very funny episode of Seinfeld, "NO SOUP FOR YOU!" Have a nice life...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Well steve said that i own u an apology hovewer i dont speek english good...
welll man sorry buth i wanted that answer quick and i havent sleep in the end i have used top left buth i was nerwous and you answered me like i dont know basics... sorry men i will controll my self!!! i am realy sorry i dont want to fight becose this site, this forum is the best one and i like this site. the problem was that i have to make an app for school and i wanted to do it quickly buth i stucked and then i have a question and i know i can save with top left buth i wanted how to save location point... well men sorry in the end i have completed the app...
Really sorrrrrrrrrrrrrrrrrrry smile man !!!
i hope u understand me...
<blink>FeRtoll Software.net
------------
E-Mail me
WebPage
|
|
|
|
|
Hi FeRtoll,
I know you dont speak english good, but I hope you can understand this.
Almost every post that you have made so far at CodeProject has been "Urgent" one way or another.
Take a look for yourself[^]
We understand that sometimes, especially with school/work, things are urgent to you - but that does not mean they are urgent to us! We are here on our spare time, often at work ourselves, and we can only answer you when WE get time... not when YOU need it.
You have been inpolite for no reason, and certainly not because you could not speak the language. I would not be surprised if you see less answers to your questions from now onwards.
Take a look at this -How to get answers to your questions.[^]
-- modified at 8:35 Tuesday 28th March, 2006
|
|
|
|
|
J4amieC wrote: Almost every post that you have made so far at CodeProject has been "Urgent" one way or another.
Take a look for yourself[^]
lol don't u see that all are (re) replays... maybe 2 orm 3 are my questions that are urgent
<blink>FeRtoll Software.net
------------
E-Mail me
WebPage
|
|
|
|
|
|
J4amieC wrote: Urgent[^]
This i was answering to men, i dont know him buth i tried to help him is that bad???
J4amieC wrote: Please help me!!!!!!![^]
is a crime to ask help from someone?
J4amieC wrote: Not urgent, but a 1 line question[^]
Seample and short question... the answer should be Yes...No... that someone answered "yes" i would ask him how!!! that someone answered "no" i will not answer nothing and i would know that its not possible and i would vote for message who posted me no with "5"... Well kill me... buth newer mind i found answers on my questions, eighter on this website and another BUTH I DONT WANT TO FIGHT BECOSE THIS IS THE BEST WEB SITE AND BEST VB.NET PROGRAMERS HERE I REALY LIKE THIS...
J4amieC wrote: Help me I have 10 days to finish.[^]
This one i finished on time... why? becose i told the people that i have ten days to finish it and then they realy helped me... u think i lie that i didnt have 10 days of time to finish it? i did i dont lie, well one man thinks that i lie and he will not answer the other one had that situation and help me third one dont have time fourth wanna help and so on i sad not on this site buth on others ya...
J4amieC wrote: I know alot of the results on the link I posted were in the same thread, but a large proportion of your posts are either "Urgent" or show total disregard for the ettiquette (look it up) of this and every technical forum ive ever visited.
well i want to help everyone is it bad if i go to help someone? he has problem i try to help him if he dont agree with it ok vote for me "0" i dont care i tried to help...
J4amieC wrote: You are officially blacklisted, not least because of this post but because when given advice you throw it back every time!
well thats not true!!! Maybe i wrote something that you didnt understand good becose i dont write english werry good!... Buth newer mind
wohhhhhhhh
<blink>FeRtoll Software.net
------------
E-Mail me
WebPage
-- modified at 11:14 Tuesday 28th March, 2006
|
|
|
|
|
I'm new to vb.net...and can't figure out how to get the selected date put into a var.
please help...
TIA
--==[[ Joe ]]==--
|
|
|
|
|
Dim oRng As SelectionRange
oRng = MC.SelectionRange
MsgBox(oRng.ToString)
Or just
MsgBox (MC.SelectionRange.ToString)
Where MC is the name of the control
"If i was king cigarettes would be free."
|
|
|
|
|
autoredraw is not supported in .net
how to go about this problem
ty in advance
maytel
|
|
|
|