Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting PC time from Time Server in VFP6 SP3
Message
De
12/04/2000 21:54:48
 
 
À
12/04/2000 15:11:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00358785
Message ID:
00359074
Vues:
14
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform