|
-
Aug 31st, 2000, 08:01 AM
#1
Thread Starter
Hyperactive Member
Does anyone know what file is the time stored in? Time and date, i thought it was the timedate.cpl file but its not, if you know please let me know. I want the cpu the program is running on to have the same time as another, so when it starts up it would just take that file. So if you can help just let me know.
-RaY
VB .Net 2010 (Ultimate)
-
Aug 31st, 2000, 08:04 AM
#2
Monday Morning Lunatic
Just use the Time and Date keywords:
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 31st, 2000, 08:18 AM
#3
Or if you want both, you can use the Now keyword.
-
Aug 31st, 2000, 08:27 AM
#4
_______
<?>
Dim ret As Long
ret = Shell("rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,/f")
if you just want to change it
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Aug 31st, 2000, 08:50 AM
#5
Thread Starter
Hyperactive Member
Ok
Lets say if i do that show now function and i get the information to a text file. I know how to read info from the text file but how would i get it to change the current time on a cpu to the one in the text file? Keep in mind i got vb3 so can't use any 32 bit dll's or files. Any suggestions?
-RaY
VB .Net 2010 (Ultimate)
-
Aug 31st, 2000, 09:05 AM
#6
Frenzied Member
Altering System Date, time
Use this code to Alter the System Date & Time, I believe without any DLL's, API's or so
http://www.vb-world.net/tips/tip495.html
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Aug 31st, 2000, 10:39 AM
#7
Hyperactive Member
Format
just use the Format function:
Code:
Temp = Format(Date, "dddd dd mmmm yyyy", vbMonday, vbFirstJan1)
Temp = Temp & Format(Time, " hh:mm:ss")
msgbox Temp
WP
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|