Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing system time and date of windows 95
Message
From
13/01/1999 21:39:07
 
 
To
13/01/1999 21:20:02
Victor Lapid
Phil. Long Distance Tel. Co.
Manila, Philippines
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00175747
Message ID:
00175752
Views:
27
>How would i change the system time and date of windows 95 using VFP?
>

There are a couple of ways to do this; you can invoke the DOS DATE command via run or an API call, or better, you would have to use a Win32 API call (SetSystemTime() and SetLocalTime() can both do this, and both take a pointer to a SYSTEMTIME structure, which has to be created programmatically in a string. The difference between the two is whether the SYSTEMTIME structure contains a date/time based on GMT/UTC, or one based on the local date/time setting established by Windows); there should be examples in the FAQ under Win32 API, as well as a couple of recent threads on the subject.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform