Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Restarting print spooler
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01154502
Message ID:
01154834
Views:
7
You're welcome.

>I used your code and it works like a charm. It even works nicely when Citrix is running.
>Thanks!
>
>Regards,
>
>Ron Brahma
>
>>
>>oShell = CREATEOBJECT("Shell.Application")
>>lcService = "Spooler"
>>* Stop service
>>IF oShell.IsServiceRunning(lcService)
>>	oShell.ServiceStop(lcService,.F.)
>>ENDIF
>>* Start service
>>IF NOT oShell.IsServiceRunning(lcService)
>>	oShell.ServiceStart(lcService,.T.)
>>ENDIF	
>>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform