Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wscript.shell and windows 98
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00587161
Message ID:
00587184
Views:
22
>I am seeing different behavior for a run command using wscript.shell in windows 95 and windows 98 and windows 2000 in a VFP 7 application.
>
>I set the dos window to close automatically in the wscript command. It closes automatically in win 95 and win2000 but not in win 98
>
>Code looks like this:
>
>lcTimeServer='lanfin-nts-pfs1'
>lcRun = "net time \\" + lcTimeServer + " /set /y"
>
>o = CREATEOBJECT('wscript.shell')
>o.Run(lcRun, 1, .T.)
>RELEASE o
>
>
>Any suggestions??

Are the versions of the WSH all the same?
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform