Click here to Skip to main content
15,916,600 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: All I want to do is open a .pdf in Acrobat Pin
Onderack31-Jan-06 5:26
Onderack31-Jan-06 5:26 
GeneralRe: All I want to do is open a .pdf in Acrobat Pin
Dave Kreskowiak31-Jan-06 5:29
mveDave Kreskowiak31-Jan-06 5:29 
AnswerRe: All I want to do is open a .pdf in Acrobat Pin
Dave Kreskowiak31-Jan-06 5:26
mveDave Kreskowiak31-Jan-06 5:26 
GeneralRe: All I want to do is open a .pdf in Acrobat Pin
oakleaf31-Jan-06 7:11
oakleaf31-Jan-06 7:11 
GeneralRe: All I want to do is open a .pdf in Acrobat Pin
Dave Kreskowiak31-Jan-06 7:27
mveDave Kreskowiak31-Jan-06 7:27 
QuestionUrgent help in converting C code to VB.Net Pin
JUNEYT31-Jan-06 3:19
JUNEYT31-Jan-06 3:19 
AnswerRe: Urgent help in converting C code to VB.Net Pin
progload31-Jan-06 20:38
progload31-Jan-06 20:38 
QuestionAD login Pin
racebit31-Jan-06 3:03
racebit31-Jan-06 3:03 
Greetings All!

I have a newbie question here that I hope someone can help me with. My best friend google turned up no results for this question with a very simple answer im sure.D'Oh! | :doh:

Currently I have a logon script i'm placing in my Active Directory to log times clocked in and time clocked out based on logins and logouts on the domain. the script I currently have is as follows.

Dim objNet<br />
On Error Resume Next <br />
<br />
Set objNet = CreateObject("WScript.NetWork") <br />
<br />
	<br />
Dim strInfo<br />
strInfo = "User Name is     " & objNet.UserName & vbCRLF & _<br />
          "Computer Name is " & objNet.ComputerName & vbCRLF & _<br />
          "Domain Name is   " & objNet.UserDomain<br />
	  <br />
<br />
<br />
Dim TextFile<br />
Dim FSO <br />
Dim Current<br />
	Set FSO = CreateObject("Scripting.FileSystemObject")<br />
	Set TextFile = FSO.OpenTextFile("C:\Work\blahj.txt", 2, True)<br />
<br />
<br />
TextFile.Writeline strInfo<br />
<br />
Set TextFile = Nothing<br />
Set FSO	= Nothing<br />
<br />
<br />
<br />
<br />
<br />
<br />
Set objNet = Nothing                    'Destroy the Object to free the Memory


It works great, and eventually i will have it write to a sql database. But for now, my question is this
How do I call the date and time? Is there a function to do this?

I just need something that would look like this
dim strTime<br />
strTime = *function that calls time & date*

Anyone got the answer?
thanks!

"A child of five would understand this! Send someone to fetch a child of five!"-Groucho Marx
Hack. -n. "A clever solution to an interesting problem."
AnswerRe: AD login Pin
Dave Kreskowiak31-Jan-06 4:40
mveDave Kreskowiak31-Jan-06 4:40 
QuestionUrgent - - systray & message Pin
Madni Abbasi31-Jan-06 2:27
Madni Abbasi31-Jan-06 2:27 
AnswerRe: Urgent - - systray & message Pin
jasonpb31-Jan-06 18:16
jasonpb31-Jan-06 18:16 
GeneralRe: Urgent - - systray & message Pin
mAreValo1-Feb-06 11:12
mAreValo1-Feb-06 11:12 
QuestionMenu Item Name? Pin
Rana Muhammad Javed Khan31-Jan-06 1:57
Rana Muhammad Javed Khan31-Jan-06 1:57 
AnswerRe: Menu Item Name? Pin
JUNEYT31-Jan-06 3:14
JUNEYT31-Jan-06 3:14 
GeneralRe: Menu Item Name? Pin
Rana Muhammad Javed Khan31-Jan-06 17:40
Rana Muhammad Javed Khan31-Jan-06 17:40 
GeneralRe: Menu Item Name? Pin
JUNEYT31-Jan-06 22:00
JUNEYT31-Jan-06 22:00 
GeneralRe: Menu Item Name? Pin
Rana Muhammad Javed Khan31-Jan-06 23:48
Rana Muhammad Javed Khan31-Jan-06 23:48 
GeneralRe: Menu Item Name? Pin
Dave Kreskowiak1-Feb-06 5:06
mveDave Kreskowiak1-Feb-06 5:06 
GeneralRe: Menu Item Name? Pin
Rana Muhammad Javed Khan1-Feb-06 19:53
Rana Muhammad Javed Khan1-Feb-06 19:53 
QuestionVB 6.0 Pin
D.N.31-Jan-06 1:21
D.N.31-Jan-06 1:21 
AnswerRe: VB 6.0 Pin
Rana Muhammad Javed Khan31-Jan-06 1:54
Rana Muhammad Javed Khan31-Jan-06 1:54 
QuestionChanging DLL source file paths!!! Pin
Devraj Raut31-Jan-06 0:35
Devraj Raut31-Jan-06 0:35 
AnswerRe: Changing DLL source file paths!!! Pin
Dave Kreskowiak31-Jan-06 4:37
mveDave Kreskowiak31-Jan-06 4:37 
GeneralRe: Changing DLL source file paths!!! Pin
Devraj Raut31-Jan-06 4:40
Devraj Raut31-Jan-06 4:40 
GeneralRe: Changing DLL source file paths!!! Pin
Dave Kreskowiak31-Jan-06 6:48
mveDave Kreskowiak31-Jan-06 6:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.