Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting PC time from Time Server in VFP6 SP3
Message
From
12/04/2000 21:54:48
 
 
To
12/04/2000 15:11:27
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00358785
Message ID:
00359074
Views:
13
>I think we figured out a way to do it.
>
>I created a batch file called gps_time.bat with the following contents:
> c:\windows\net time \\gpsclock /set /yes
>
>Checked the "Close on Exit" property
>
>Changed our VFP calling routine to
>
>run /n7 x:\foxv\startup\gps_time.bat
>
>Hey, presto - no DOS window!
>
>If anyone has a neater solution I would be deligheted to hear from you

Download API_APPRUN, or use any of a half-dozen API calls like ShellExecute, or use Wscript.Shell's Run method, and never have these kinds of problems...
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